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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x34]
cmp eax, dword [ecx + 8]
jbe 0x541339
sub esp, 0xb4
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x24]
mov edx, dword [ecx + 0x20]
test edx, edx
jne 0x541303
lea eax, [0x664420]
mov dword [esp], eax
call fcn.00409a20
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x24]
mov edx, dword [esp + 4]
mov ebx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jle 0x54104f
mov dword [esp + 0x80], edx
mov dword [esp + 0x50], ecx
xor ebp, ebp
jmp 0x540ff5
mov ebx, dword [esp + 0x48]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x4c]
cmp edx, ecx
jge 0x5412cc
mov dword [esp + 0x48], edx
movzx ecx, word [eax + edx*2]
mov ebx, dword [esp + 0xbc]
mov ebp, dword [ebx + 0x14]
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 0x10]
mov word [esp], cx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
call fcn.00534ca0
movzx eax, byte [esp + 0x10]
test al, al
je 0x540ef1
mov eax, 1
test al, al
je 0x5412c0
mov eax, dword [esp + 0xbc]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x541295
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 4]
mov ebx, dword [ecx]
test edx, edx
jle 0x540fcf
mov dword [esp + 0x4c], edx
xor ebp, ebp
jmp 0x540f8a
add ebx, 0xc
mov edx, dword [esp + 0xbc]
mov edx, esi
mov ebp, eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x34], ebp
mov esi, edx
mov edx, dword [ebx + 8]
mov edi, edx
mov edx, dword [ebx + 4]
mov dword [esp + 0x40], edx
mov edx, dword [ebx]
mov dword [esp + 0x68], edx
mov edx, dword [ecx + 0x2c]
test ebp, ebp
jne 0x541139
test edx, edx
je 0x541139
mov edi, edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
test edx, edx
jg 0x541085
lea eax, [ebp + 1]
cmp eax, esi
jl 0x540f75
mov eax, dword [esp + 0x38]
inc eax
mov edx, dword [esp + 0x50]
cmp eax, edx
jge 0x54104f
mov ebx, dword [esp + 0x7c]
add ebx, 0x30
mov ecx, edx
mov edx, dword [esp + 0x80]
mov ebp, eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x38], ebp
lea edi, [esp + 0x84]
mov esi, ebx
call fcn.0044d628
mov ecx, dword [0x8a6100]
test ecx, ecx
jne 0x5412d3
mov edi, edx
lea esi, [esp + 0x84]
call fcn.0044d628
movzx ecx, word [eax + 0x20]
mov word [esp], cx
mov dword [esp + 4], edx
call fcn.00531630
mov eax, dword [esp + 8]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x4c], ecx
xor edx, edx
jmp 0x540f00
lea eax, [0x664420]
mov dword [esp], eax
call fcn.00409a20
mov eax, dword [esp + 4]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
add esp, 0xb4
ret
mov dword [esp + 0x48], edx
mov dword [esp + 0x70], edi
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
jmp 0x5410ae
mov edx, dword [esp + 0x6c]
add edx, 0xc
mov edi, dword [esp + 0x70]
mov dword [esp + 0x44], eax
mov eax, edx
mov dword [esp + 0x6c], eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
nop
mov ebp, dword [edi + 0x38]
mov esi, dword [edi + 0x34]
mov edi, dword [edi + 0x30]
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
call fcn.00401fe0
movzx eax, byte [esp + 0x18]
test al, al
jne 0x54110e
mov eax, dword [esp + 0x44]
inc eax
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jl 0x54109d
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x4c]
jmp 0x540fc8
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
add esp, 0xb4
ret
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp + 8], edi
call fcn.00522e60
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x541182
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x4c]
mov edx, eax
mov eax, dword [esp + 0xbc]
jmp 0x540fb9
mov dword [esp + 0x64], ecx
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
mov byte [esp + 4], 0x50
call fcn.00538680
nop
mov eax, dword [esp + 0x38]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp + 8], 0xa
call fcn.00457a30
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x5c], edx
mov ebx, dword [esp + 0x64]
mov dword [esp], ebx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp], 0
lea edx, [0x694779]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x33
mov edx, dword [esp + 0x5c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
lea edx, [0x683f75]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
call fcn.0043c1e0
nop
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x60], ecx
lea edx, [0x64cca0]
mov dword [esp], edx
call fcn.00409a20
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x30]
mov dword [edi + 4], eax
mov eax, dword [0x8a6100]
test eax, eax
jne 0x54128a
mov eax, dword [esp + 0x60]
mov dword [edi], eax
mov dword [esp + 0xc0], 0
lea eax, [0x6e5880]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], edi
add esp, 0xb4
ret
mov eax, dword [esp + 0x60]
call fcn.0044d090
jmp 0x541264
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
add esp, 0xb4
ret
mov ecx, dword [esp + 0x80]
jmp 0x540fcf
xor eax, eax
jmp 0x540f43
lea eax, [0x664420]
mov dword [esp], eax
mov dword [esp + 4], edx
lea eax, [esp + 0x84]
mov dword [esp + 8], eax
call fcn.0040f580
mov eax, dword [esp + 0xb8]
mov edx, dword [esp + 0x80]
jmp 0x541027
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 4]
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], ecx
add esp, 0xb4
ret
call fcn.0044b940
jmp fcn.00540e80