Function at 0x518840
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x57b250
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [esp + 0x94]
mov ebx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x8c]
mov esi, dword [esp + 0x90]
push ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], eax
call fcn.0045e0f0
add esp, 4
mov edi, eax
lea eax, [esp + 0x40]
mov ecx, edi
push eax
call fcn.004674a0
cmp dword [esp + 0x50], 0
mov dword [esp + 0x80], 0
jne 0x5188c6
mov byte [esp + 0x16], 0
jmp 0x5188d3
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x10]
call eax
mov byte [esp + 0x16], al
push ebx
call fcn.0045de70
add esp, 4
lea ecx, [esp + 0x58]
mov edx, dword [eax]
push ecx
push 0x44ec52
push 0x44ec38
mov ecx, eax
call dword [edx + 0x1c]
mov ebx, dword [esp + 0x1c]
mov ecx, esi
push ebx
mov dword [esp + 0x1c], ebp
call fcn.00519cb0
test al, al
jne 0x51896e
cmp byte [esi + 4], al
jne 0x518940
mov ecx, dword [esi]
test ecx, ecx
je 0x518936
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x518927
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jle 0x518927
movzx eax, byte [edx]
jmp 0x51892c
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x518936
mov byte [esi + 5], al
jmp 0x51893c
mov dword [esi], 0
mov byte [esi + 4], 1
mov al, byte [esi + 5]
mov ecx, esi
cmp al, byte [esp + 0x6f]
jne 0x518951
mov byte [ebp], 0x2b
jmp 0x518962
call fcn.00515d80
cmp al, byte [esp + 0x6e]
jne 0x51896e
mov byte [ebp], 0x2d
mov ecx, esi
lea eax, [ebp + 1]
mov dword [esp + 0x18], eax
call fcn.00515dd0
mov ebp, dword [esp + 0x98]
and ebp, 0xe00
cmp ebp, 0x400
jne 0x51898a
mov ebp, 8
jmp 0x5189a0
cmp ebp, 0x800
jne 0x518999
mov ebp, 0x10
jmp 0x5189a0
neg ebp
sbb ebp, ebp
and ebp, 0xa
push ebx
mov ecx, esi
mov dword [esp + 0x9c], ebp
mov byte [esp + 0x19], 0
mov byte [esp + 0x1b], 0
call fcn.00519cb0
test al, al
jne 0x518a6b
cmp byte [esi + 4], al
jne 0x5189fb
mov ecx, dword [esi]
test ecx, ecx
je 0x5189f1
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x5189e2
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jle 0x5189e2
movzx eax, byte [edx]
jmp 0x5189e7
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x5189f1
mov byte [esi + 5], al
jmp 0x5189f7
mov dword [esi], 0
mov byte [esi + 4], 1
mov al, byte [esi + 5]
cmp al, byte [esp + 0x58]
jne 0x518a6b
mov ecx, esi
mov byte [esp + 0x15], 1
call fcn.00515dd0
push ebx
mov ecx, esi
call fcn.00519cb0
test al, al
jne 0x518a59
mov ecx, esi
call fcn.00515d80
cmp al, byte [esp + 0x71]
je 0x518a36
mov ecx, esi
call fcn.00515d80
cmp al, byte [esp + 0x70]
jne 0x518a59
test ebp, ebp
je 0x518a3f
cmp ebp, 0x10
jne 0x518a59
mov ebp, 0x10
mov byte [esp + 0x15], 0
mov ecx, esi
mov dword [esp + 0x98], ebp
call fcn.00515dd0
jmp 0x518a74
test ebp, ebp
jne 0x518a6f
mov ebp, 8
mov dword [esp + 0x98], ebp
jmp 0x518a74
test ebp, ebp
je 0x518a89
cmp ebp, 0xa
je 0x518a89
mov ecx, 8
mov eax, 0x16
cmp ebp, ecx
cmove eax, ecx
mov dword [esp + 0x20], eax
jmp 0x518a91
mov dword [esp + 0x20], 0xa
mov al, byte [esp + 0x15]
mov ebx, 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x28], al
mov dword [esp + 0x38], 1
mov byte [esp + 0x29], 0
push dword [esp + 0x1c]
mov ecx, esi
mov byte [esp + 0x84], 1
xor edi, edi
call fcn.00519cb0
test al, al
jne 0x518c81
mov ebp, dword [esp + 0x28]
cmp byte [esi + 4], 0
jne 0x518b0b
mov ecx, dword [esi]
test ecx, ecx
je 0x518b01
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x518af2
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jle 0x518af2
movzx eax, byte [edx]
jmp 0x518af7
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x518b01
mov byte [esi + 5], al
jmp 0x518b07
mov dword [esi], 0
mov byte [esi + 4], 1
mov cl, byte [esp + 0x58]
lea eax, [esp + 0x58]
mov dl, byte [esi + 5]
test cl, cl
je 0x518b2c
lea ebx, [ebx]
cmp cl, dl
je 0x518b2c
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x518b20
lea ecx, [esp + 0x58]
sub eax, ecx
cmp eax, dword [esp + 0x20]
jae 0x518b8c
cmp byte [esp + 0x17], 0
mov ecx, dword [esp + 0x18]
mov al, byte [eax + 0x44ec38]
mov byte [ecx], al
jne 0x518b4f
cmp al, 0x30
je 0x518b64
mov edx, dword [esp + 0x24]
lea eax, [edx + 0x1f]
cmp ecx, eax
jae 0x518b64
inc ecx
mov byte [esp + 0x17], 1
mov dword [esp + 0x18], ecx
cmp ebx, 0x10
mov byte [esp + 0x15], 1
lea eax, [esp + 0x28]
cmovae eax, ebp
cmp byte [eax + edi], 0x7f
je 0x518c06
cmp ebx, 0x10
lea eax, [esp + 0x28]
cmovae eax, ebp
inc byte [eax + edi]
jmp 0x518bfe
cmp ebx, 0x10
lea eax, [esp + 0x28]
cmovae eax, ebp
cmp byte [eax + edi], 0
je 0x518c5c
mov al, byte [esp + 0x16]
test al, al
je 0x518c5c
cmp byte [esi + 4], 0
jne 0x518beb
mov ecx, dword [esi]
test ecx, ecx
je 0x518bdd
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x518bce
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jle 0x518bce
movzx eax, byte [edx]
jmp 0x518bd3
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x518bdd
mov byte [esi + 5], al
jmp 0x518be3
mov dword [esi], 0
mov al, byte [esp + 0x16]
mov byte [esi + 4], 1
cmp byte [esi + 5], al
jne 0x518c5c
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004abe60
inc edi
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x28]
mov ecx, dword [esi]
test ecx, ecx
je 0x518c3f
mov eax, dword [ecx + 0x1c]
cmp dword [eax], 0
je 0x518c2f
mov edx, dword [ecx + 0x2c]
mov eax, dword [edx]
test eax, eax
jle 0x518c2f
dec eax
mov dword [edx], eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
movzx eax, byte [edx]
jmp 0x518c34
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp eax, 0xffffffff
je 0x518c3f
mov byte [esi + 4], 0
jmp 0x518c49
mov dword [esi], 0
mov byte [esi + 4], 1
push dword [esp + 0x1c]
mov ecx, esi
call fcn.00519cb0
test al, al
je 0x518ad0
mov ebp, dword [esp + 0x98]
test edi, edi
je 0x518c81
cmp ebx, 0x10
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
cmp byte [eax + edi], 0
jle 0x518c7c
inc edi
jmp 0x518c81
mov byte [esp + 0x15], 0
mov esi, dword [esp + 0x54]
lea edx, [esp + 0x40]
mov ebx, dword [esp + 0x40]
cmp esi, 0x10
cmovae edx, ebx
cmp byte [esp + 0x15], 0
je 0x518cf1
lea ebx, [ebx]
test edi, edi
je 0x518ce0
mov cl, byte [edx]
cmp cl, 0x7f
je 0x518ce0
dec edi
je 0x518cc1
cmp dword [esp + 0x3c], 0x10
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
cmp cl, byte [eax + edi]
jne 0x518cf1
test edi, edi
jne 0x518cd7
cmp dword [esp + 0x3c], 0x10
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
cmp cl, byte [eax]
jl 0x518cf1
cmp byte [edx + 1], 0
jle 0x518ca0
inc edx
jmp 0x518ca0
cmp byte [esp + 0x17], 0
mov eax, dword [esp + 0x18]
jne 0x518cf5
mov byte [eax], 0x30
inc eax
jmp 0x518cf5
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x3c], 0x10
mov byte [eax], 0
jb 0x518d13
push dword [esp + 0x28]
call fcn.00549eaf
mov esi, dword [esp + 0x58]
add esp, 4
mov ebx, dword [esp + 0x40]
cmp esi, 0x10
jb 0x518d21
push ebx
call fcn.00549eaf
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0054a992
add esp, 0x70
ret