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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x51840f
sub esp, 0x60
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x70]
mov dword [esp + 8], edx
mov ebx, dword [0xc54f2c]
mov ebp, dword [0xc54f30]
mov esi, dword [0xc54f28]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebp
call fcn.004cb6d0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x518157
mov eax, dword [esp + 0x64]
movzx ecx, byte [eax + 5]
test cl, cl
je 0x518141
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ecx, dword [ecx + 0x10]
mov ebx, dword [esp + 0x68]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0xc], ebx
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x64]
mov byte [ebx + 4], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ecx
add esp, 0x60
ret
movzx ecx, byte [eax + 4]
test cl, cl
je 0x5180f7
mov dword [esp], eax
call fcn.0051bc80
mov eax, dword [esp + 0x64]
jmp 0x5180f7
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 8], ecx
mov ecx, dword [0xc54f30]
mov edx, dword [0xc54f2c]
mov ebx, dword [0xc54f28]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
inc eax
mov dword [esp + 0x18], eax
call fcn.004cbe10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x64]
movzx ebx, byte [edx + 5]
test bl, bl
je 0x5182b2
test ecx, ecx
jle 0x5182ab
xor ebx, ebx
xor ebp, ebp
jmp 0x5181d1
mov esi, dword [esp + 0x5c]
add esi, 0xc
mov ebx, eax
mov ebp, edx
mov edx, dword [esp + 0x64]
mov eax, esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x28], ebx
mov esi, dword [eax]
mov edi, dword [eax + 8]
mov eax, dword [eax + 4]
test ebx, ebx
jg 0x51824c
mov dword [esp + 0x4c], ebp
mov ecx, dword [edx + 8]
mov ebx, dword [edx + 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp], ebx
call ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x4c]
add edx, dword [esp + 0x10]
test ecx, ecx
jne 0x51823c
mov eax, dword [esp + 0x28]
inc eax
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jl 0x5181c0
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x60
ret
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x60
ret
mov dword [esp + 0x58], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x38], eax
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov eax, dword [eax + 0x14]
mov byte [esp + 4], 0x20
mov dword [esp], ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x518297
mov ecx, dword [esp + 0x48]
lea ebp, [ecx + 1]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x3c]
jmp 0x5181e5
mov edx, dword [esp + 0x48]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x60
ret
xor edx, edx
jmp 0x518224
mov dword [esp + 0x50], eax
test ecx, ecx
jle 0x518401
mov ebx, eax
xor ebp, ebp
xor esi, esi
jmp 0x5182db
mov edi, dword [esp + 0x5c]
add edi, 0xc
mov ebx, dword [esp + 0x50]
mov ebp, eax
mov esi, edx
mov edx, dword [esp + 0x64]
mov eax, edi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x4c], esi
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
movzx ecx, byte [edx + 4]
test cl, cl
jne 0x5183d8
mov ecx, dword [edx + 8]
mov ebp, dword [edx + 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp], ebp
call ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x4c]
add edx, dword [esp + 0x10]
test eax, eax
jne 0x5183c8
mov eax, dword [esp + 0x2c]
inc eax
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jl 0x518376
jl 0x5182c6
lea eax, [ecx - 1]
cmp eax, ecx
jae 0x518408
lea eax, [ecx + ecx*2]
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + eax*4 - 8]
test eax, eax
sete al
mov ecx, dword [esp + 0x64]
mov byte [ecx + 4], al
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x60
ret
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ecx, dword [ecx + 0x14]
mov byte [esp + 4], 0xa
mov dword [esp], edx
call ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test eax, eax
jne 0x5183b4
mov ebx, dword [esp + 0x48]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jmp 0x51833a
mov edx, dword [esp + 0x48]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x60
ret
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x60
ret
mov dword [esp + 0x54], edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], eax
mov dword [esp], edx
call fcn.0051bc80
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x54]
jmp 0x5182fb
xor edx, edx
jmp 0x51833c
call fcn.00426770
ud2
call fcn.0044b100
jmp fcn.00518090