Function at 0x6588b9e6
Capabilities:
Accept command line arguments
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28c
mov dword [ebp - 0x184], 0x658db3c0
mov dword [ebp - 0x180], 0x6592f0ba
lea eax, [ebp - 0x17c]
lea edx, [ebp - 0x18]
mov dword [eax], edx
mov edx, 0x6588c866
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x19c]
mov dword [esp], eax
call fcn.658e7610
mov eax, dword [ebp + 8]
add eax, 0x88
mov dword [esp], eax
mov dword [ebp - 0x198], 0xffffffff
call fcn.659123c8
mov eax, dword [ebp + 8]
add eax, 0x8c
mov dword [esp], eax
mov dword [ebp - 0x198], 0x1a
call fcn.659123c8
mov eax, dword [ebp + 8]
add eax, 0x90
mov dword [esp], eax
mov dword [ebp - 0x198], 0x19
call fcn.659123c8
mov eax, dword [ebp + 8]
add eax, 0x98
mov dword [esp], eax
mov dword [ebp - 0x198], 0x18
call fcn.659123c8
mov eax, dword [ebp + 8]
mov byte [eax + 0x26], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x27], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x2d], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x2e], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x28], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x29], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x2a], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x2b], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x2c], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x70], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x2f], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x3c], 1
mov eax, dword [ebp + 8]
mov byte [eax + 0x3d], 1
mov eax, dword [ebp + 8]
mov byte [eax + 0x3e], 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x78], 0
mov dword [eax + 0x7c], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x80], 0
mov dword [eax + 0x84], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x9c], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0xa0], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0xb0], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0xb4], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x4c], 0
mov dword [esp + 4], 0x65934050
mov eax, dword [ebp + 8]
add eax, 0x8c
mov dword [esp], eax
mov dword [ebp - 0x198], 0x17
call fcn.659129e8
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov edx, eax
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x128]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
test eax, eax
jne 0x6588bc9f
lea eax, [ebp - 0x148]
mov dword [esp], eax
call fcn.65908a24
lea eax, [ebp - 0x148]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Tibiantis_client_was_unable_to_get_current_module_
lea eax, [ebp - 0x138]
mov dword [esp], eax
mov dword [ebp - 0x198], 0x16
call fcn.65912068
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
add eax, 0x88
mov dword [esp], eax
mov dword [ebp - 0x198], 0x15
call fcn.65912a28
jmp 0x6588bc4c
lea eax, [ebp - 0x138]
mov dword [esp], eax
mov dword [ebp - 0x198], 0x16
call fcn.65912888
jmp 0x6588bc91
lea eax, [ebp - 0x148]
mov dword [esp], eax
call fcn.65908a54
lea eax, [ebp - 0x128]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
add eax, 0x90
mov dword [esp], eax
mov dword [ebp - 0x198], 0x17
call fcn.659129e8
lea eax, [ebp - 0x148]
mov dword [ebp - 0x1ac], eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x5c
mov eax, dword [ebp + 8]
add eax, 0x90
mov dword [esp], eax
call fcn.658f5bf4
inc eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
add eax, 0x90
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x1ac]
mov dword [esp], edx
call fcn.658f6384
sub esp, 4
lea eax, [ebp - 0x148]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
add eax, 0x90
mov dword [esp], eax
mov dword [ebp - 0x198], 0x14
call fcn.65912a28
jmp 0x6588bd74
lea eax, [ebp - 0x148]
mov dword [esp], eax
mov dword [ebp - 0x198], 0x17
call fcn.65912888
mov dword [esp], 0x68
call fcn.658dc7d0
mov dword [ebp - 0x1b4], eax
mov edx, dword [ebp - 0x1b4]
mov dword [esp], edx
mov dword [ebp - 0x198], 0x13
call fcn.658b463a
jmp 0x6588bde3
mov ecx, dword [ebp - 0x1b4]
mov dword [0x6593a308], ecx
mov dword [esp], 0x2c
mov dword [ebp - 0x198], 0x17
call fcn.658dc7d0
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x1bc]
mov dword [esp], eax
mov dword [ebp - 0x198], 0x12
call fcn.658c39ea
jmp 0x6588be50
mov edx, dword [ebp - 0x1bc]
mov dword [0x6593a30c], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c4], ecx
mov dword [esp], 0x3c60
mov dword [ebp - 0x198], 0x17
call fcn.658dc7d0
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x1c8]
mov dword [esp], eax
mov dword [ebp - 0x198], 0x11
call fcn.65895db0
jmp 0x6588bec6
mov ecx, dword [ebp - 0x1c8]
mov edx, dword [ebp - 0x1c4]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1d0], eax
mov dword [esp], 0xa8
mov dword [ebp - 0x198], 0x17
call fcn.658dc7d0
mov dword [ebp - 0x1d4], eax
mov edx, dword [ebp - 0x1d4]
mov dword [esp], edx
mov dword [ebp - 0x198], 0x10
call fcn.65898c50
jmp 0x6588bf3e
mov eax, dword [ebp - 0x1d4]
mov ecx, dword [ebp - 0x1d0]
mov dword [ecx + 8], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1dc], edx
mov dword [esp], 0x70
mov dword [ebp - 0x198], 0x17
call fcn.658dc7d0
mov dword [ebp - 0x1e0], eax
mov ecx, dword [ebp - 0x1e0]
mov dword [esp], ecx
mov dword [ebp - 0x198], 0xf
call fcn.658a04ca
jmp 0x6588bfb7
mov edx, dword [ebp - 0x1e0]
mov eax, dword [ebp - 0x1dc]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1e8], ecx
mov dword [esp], 0x7c
mov dword [ebp - 0x198], 0x17
call fcn.658dc7d0
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1ec]
mov dword [esp], eax
mov dword [ebp - 0x198], 0xe
call fcn.6589f210
jmp 0x6588c030
mov ecx, dword [ebp - 0x1ec]
mov edx, dword [ebp - 0x1e8]
mov dword [edx + 0x10], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1f4], eax
mov dword [esp], 0x68
mov dword [ebp - 0x198], 0x17
call fcn.658dc7d0
mov dword [ebp - 0x1f8], eax
mov edx, dword [ebp - 0x1f8]
mov dword [esp], edx
mov dword [ebp - 0x198], 0xd
call fcn.658a3540
jmp 0x6588c0a9
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [ebp - 0x1f4]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x200], edx
mov dword [esp], 0x8c
mov dword [ebp - 0x198], 0x17
call fcn.658dc7d0
mov dword [ebp - 0x204], eax
mov ecx, dword [ebp - 0x204]
mov dword [esp], ecx
mov dword [ebp - 0x198], 0xc
call fcn.6589d460
jmp 0x6588c122
mov edx, dword [ebp - 0x204]
mov eax, dword [ebp - 0x200]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20c], ecx
mov dword [esp], 0xc
mov dword [ebp - 0x198], 0x17
call fcn.658dc7d0
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x210]
mov dword [esp], eax
mov dword [ebp - 0x198], 0xb
call fcn.658b6158
jmp 0x6588c19b
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x20c]
mov dword [edx + 0x50], ecx
mov eax, dword [ebp + 8]
mov byte [eax + 0x25c], 0
mov dword [ebp - 0x198], 0x17
call sub.KERNEL32.dll_GetCommandLineW
mov edx, eax
lea eax, [ebp - 0x14c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.SHELL32.DLL_CommandLineToArgvW
sub esp, 8
mov dword [ebp - 0x150], eax
call sub.KERNEL32.dll_GetCommandLineW
mov edx, eax
lea eax, [ebp - 0x154]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.SHELL32.DLL_CommandLineToArgvW
sub esp, 8
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x154]
shl eax, 2
mov dword [esp], eax
call fcn.658dfba0
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x160], 0
mov eax, dword [ebp - 0x160]
cmp eax, dword [ebp - 0x154]
jge 0x6588c30e
mov eax, dword [ebp - 0x160]
lea edx, [eax*4]
mov eax, dword [ebp - 0x158]
mov eax, dword [edx + eax]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x160]
shl eax, 2
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x164]
inc eax
mov dword [esp], eax
mov dword [ebp - 0x198], 0x17
call fcn.658dfba0
mov edx, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x21c]
mov dword [edx + ecx], eax
mov dword [ebp - 0x168], 0
mov eax, dword [ebp - 0x168]
cmp eax, dword [ebp - 0x164]
jg 0x6588c301
mov eax, dword [ebp - 0x160]
lea edx, [eax*4]
mov eax, dword [ebp - 0x15c]
mov eax, dword [edx + eax]
mov esi, dword [ebp - 0x168]
add esi, eax
mov eax, dword [ebp - 0x160]
lea ecx, [eax*4]
mov ebx, dword [ebp - 0x158]
mov eax, dword [ebp - 0x168]
lea edx, [eax + eax]
mov eax, dword [ecx + ebx]
movzx eax, word [edx + eax]
mov byte [esi], al
lea eax, [ebp - 0x168]
inc dword [eax]
jmp 0x6588c2a6
lea eax, [ebp - 0x160]
inc dword [eax]
jmp 0x6588c223
mov eax, dword [ebp - 0x158]
mov dword [esp], eax
mov dword [ebp - 0x198], 0x17
call sub.KERNEL32.dll_LocalFree
sub esp, 4
cmp dword [ebp - 0x154], 1
jle 0x6588c34d
mov eax, dword [ebp - 0x15c]
add eax, 4
cmp dword [eax], str._cam
jne 0x6588c34d
mov eax, dword [ebp + 8]
mov byte [eax + 0x25c], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x220], eax
mov dword [esp], 0x5c
mov dword [ebp - 0x198], 0x17
call fcn.658dc7d0
mov dword [ebp - 0x224], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1e
mov edx, dword [ebp - 0x224]
mov dword [esp], edx
mov dword [ebp - 0x198], 0xa
call fcn.658ab978
jmp 0x6588c3c7
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x220]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x22c], edx
mov dword [esp], 0x5c
mov dword [ebp - 0x198], 0x17
call fcn.658dc7d0
mov dword [ebp - 0x230], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov ecx, dword [ebp - 0x230]
mov dword [esp], ecx
mov dword [ebp - 0x198], 9
call fcn.658ab978
jmp 0x6588c450
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x22c]
mov dword [eax + 0x58], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x58]
mov dword [esp + 4], eax
mov eax, dword [0x6593a30c]
mov dword [esp], eax
mov dword [ebp - 0x198], 0x17
call fcn.658c3d54
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x238], ecx
lea eax, [ebp - 0x138]
mov dword [esp], eax
call fcn.65908a24
lea eax, [ebp - 0x138]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Stop
lea eax, [ebp - 0x148]
mov dword [esp], eax
mov dword [ebp - 0x198], 8
call fcn.65912068
lea eax, [ebp - 0x148]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xffffffc8
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x6588a758
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x58]
mov dword [esp], eax
mov dword [ebp - 0x198], 7
call fcn.658abd42
mov edx, dword [ebp - 0x238]
mov dword [edx + 0x60], eax
jmp 0x6588c550
lea eax, [ebp - 0x148]
mov dword [esp], eax
mov dword [ebp - 0x198], 8
call fcn.65912888
jmp 0x6588c595
lea eax, [ebp - 0x138]
mov dword [esp], eax
call fcn.65908a54
lea eax, [ebp - 0x138]
mov dword [esp], eax
call fcn.65908a24
lea eax, [ebp - 0x138]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Options
lea eax, [ebp - 0x148]
mov dword [esp], eax
mov dword [ebp - 0x198], 6
call fcn.65912068
lea eax, [ebp - 0x148]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xffffffe0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x6588a7c4
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x58]
mov dword [esp], eax
mov dword [ebp - 0x198], 5
call fcn.658abd42
jmp 0x6588c661
lea eax, [ebp - 0x148]
mov dword [esp], eax
mov dword [ebp - 0x198], 6
call fcn.65912888
jmp 0x6588c6a6
lea eax, [ebp - 0x138]
mov dword [esp], eax
call fcn.65908a54
lea eax, [ebp - 0x138]
mov dword [esp], eax
call fcn.65908a24
lea eax, [ebp - 0x138]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Help
lea eax, [ebp - 0x148]
mov dword [esp], eax
mov dword [ebp - 0x198], 4
call fcn.65912068
lea eax, [ebp - 0x148]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xfffffff8
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x6588a7dc
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x58]
mov dword [esp], eax
mov dword [ebp - 0x198], 3
call fcn.658abd42
jmp 0x6588c772
lea eax, [ebp - 0x148]
mov dword [esp], eax
mov dword [ebp - 0x198], 4
call fcn.65912888
jmp 0x6588c7b7
lea eax, [ebp - 0x138]
mov dword [esp], eax
call fcn.65908a54
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x254], ecx
lea eax, [ebp - 0x138]
mov dword [esp], eax
call fcn.65908a24
lea eax, [ebp - 0x138]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6593426e
lea eax, [ebp - 0x148]
mov dword [esp], eax
mov dword [ebp - 0x198], 2
call fcn.65912068
lea eax, [ebp - 0x148]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xffffff7a
mov dword [esp + 0x10], 0x1e
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x6588a704
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x58]
mov dword [esp], eax
mov dword [ebp - 0x198], 1
call fcn.658abd42
mov edx, dword [ebp - 0x254]
mov dword [edx + 0x64], eax
jmp 0x6588c9f8
lea eax, [ebp - 0x148]
mov dword [esp], eax
mov dword [ebp - 0x198], 2
call fcn.65912888
jmp 0x6588ca3a
lea eax, [ebp - 0x138]
mov dword [esp], eax
call fcn.65908a54
mov dword [esp + 0xc], 0xc
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0x16
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x64]
mov dword [esp], eax
mov dword [ebp - 0x198], 0x17
call fcn.658ab5f8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x58]
mov dword [esp], eax
call fcn.658abf5c
jmp 0x6588cb6b
lea eax, [ebp - 0x19c]
mov dword [esp], eax
call fcn.658e76f0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret