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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x60]
cmp eax, dword [ecx + 8]
jbe 0x540a43
sub esp, 0xe0
lea eax, [0x6767c0]
mov dword [esp], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00438de0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x8c], eax
mov ecx, dword [esp + 0xec]
test ecx, ecx
jg 0x5408fc
mov ebx, dword [esp + 0xe4]
mov ebp, dword [ebx + 0x24]
movzx esi, byte [ebp + 0x4c]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x54068f
lea edi, [esp + 0x98]
xor eax, eax
call fcn.0044d18b
nop
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x5408f1
mov eax, dword [ecx]
mov edx, ecx
call eax
lea edi, [esp + 0x98]
mov esi, esp
call fcn.0044d66e
nop
call fcn.0040a500
mov eax, dword [esp]
mov dword [esp + 0x88], eax
call fcn.0040a500
mov eax, dword [esp]
mov dword [esp + 0x84], eax
lea ecx, [0x65b800]
mov dword [esp], ecx
call fcn.00409a20
mov edi, dword [esp + 4]
mov eax, dword [0x8a6100]
test eax, eax
jne 0x5408c9
mov ecx, dword [esp + 0x88]
mov dword [edi], ecx
mov ecx, dword [esp + 0x84]
mov dword [edi + 4], ecx
mov dword [esp + 0x68], edi
lea edi, [esp + 0xac]
xor eax, eax
call fcn.0044d183
mov ecx, dword [esp + 0xe4]
mov edx, dword [ecx + 0x24]
mov edx, dword [edx + 0x2c]
mov dword [esp + 0xb8], edx
lea edi, [esp + 0xbc]
lea esi, [esp + 0x98]
call fcn.0044d66e
mov ecx, dword [esp + 0xe4]
mov edx, dword [ecx + 0x24]
mov ebx, dword [edx + 0x40]
mov edx, dword [edx + 0x3c]
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], ebx
mov edx, dword [esp + 0x68]
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0xec]
xor eax, eax
jmp 0x5405f4
inc eax
cmp eax, ebx
jge 0x540631
mov ebp, dword [edx + eax*4]
test eax, eax
je 0x5405f3
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
mov dword [esp + 4], ebp
call fcn.005190a0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0xec]
jmp 0x5405f3
test ebx, ebx
jbe 0x540a3c
mov eax, dword [edx]
mov dword [esp], eax
lea edi, [esp + 4]
lea esi, [esp + 0xac]
call fcn.0044d61e
call fcn.0051cf00
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x44]
mov esi, ebx
mov ebx, dword [esp + 0xe4]
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], edx
mov eax, dword [0x8a6100]
test eax, eax
jne 0x5408ba
mov dword [ebx + 0x54], ecx
test ebp, ebp
jne 0x540882
mov ecx, dword [ebx + 0x24]
mov edx, dword [ecx + 0x28]
test edx, edx
jne 0x5407ef
mov ecx, dword [esp + 0xec]
test ecx, ecx
jbe 0x540a35
mov eax, dword [esp + 0x8c]
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
test edx, edx
je 0x54071d
mov ebp, dword [edx + 8]
cmp ebp, 0x2fd00e80
jne 0x54070b
lea esi, [0x669d00]
cmp esi, edx
jne 0x54070b
mov dword [ebx + 0x4c], ecx
mov dword [ebx + 0x50], ecx
mov ecx, dword [0x8a6100]
test ecx, ecx
jne 0x540701
mov dword [ebx + 0x48], eax
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
add esp, 0xe0
ret
lea edi, [ebx + 0x48]
call fcn.0044d090
jmp 0x5406e4
cmp ebp, 0xcc456746
jne 0x54071d
lea ebp, [0x645a20]
cmp ebp, edx
je 0x5406d1
mov dword [esp], ebx
mov byte [esp + 4], 0x2b
call fcn.00538680
mov eax, dword [esp + 0x8c]
mov eax, dword [eax]
mov ecx, dword [eax + 0x50]
mov eax, dword [eax + 0x54]
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
nop
lea eax, [0x696a89]
mov dword [esp], eax
mov dword [esp + 4], 0x48
lea eax, [esp + 0x90]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.0049f310
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x70], ecx
nop
lea edx, [0x64cca0]
mov dword [esp], edx
call fcn.00409a20
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x50]
mov dword [edi + 4], eax
mov eax, dword [0x8a6100]
test eax, eax
jne 0x5407e4
mov eax, dword [esp + 0x70]
mov dword [edi], eax
lea eax, [0x6e5880]
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], edi
add esp, 0xe0
ret
mov eax, dword [esp + 0x70]
call fcn.0044d090
jmp 0x5407c9
mov eax, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x58]
mov ebp, dword [ebx + 0x54]
mov esi, dword [esp + 0xe8]
mov dword [esp], esi
mov esi, dword [esp + 0xec]
mov dword [esp + 4], esi
mov edi, dword [esp + 0xf0]
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x540849
mov ecx, dword [esp + 0xec]
test ecx, ecx
mov ebx, dword [esp + 0xe4]
jmp 0x5406a6
mov dword [esp + 0x74], eax
mov dword [esp + 0x60], ecx
mov eax, dword [esp + 0xe4]
mov dword [esp], eax
mov byte [esp + 4], 0x2a
call fcn.00538680
mov eax, dword [esp + 0x60]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xf8], eax
add esp, 0xe0
ret
mov dword [esp + 0x80], esi
mov dword [esp + 0x64], ebp
mov dword [esp], ebx
mov byte [esp + 4], 0x2a
call fcn.00538680
mov eax, dword [esp + 0x64]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xf8], eax
add esp, 0xe0
ret
lea edi, [ebx + 0x54]
mov eax, ecx
call fcn.0044d090
jmp 0x540687
mov eax, dword [esp + 0x88]
call fcn.0044d090
lea ecx, [edi + 4]
mov eax, edi
mov edi, ecx
mov edx, eax
mov eax, dword [esp + 0x84]
call fcn.0044d090
mov edi, edx
jmp 0x54057f
lea ecx, [0x69c614]
jmp 0x540519
mov edx, dword [esp + 0xe8]
xor ebx, ebx
jmp 0x540910
mov eax, dword [esp + 0x7c]
lea edx, [eax + 0xc]
mov ebx, ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x58], ebx
mov eax, dword [edx + 8]
mov ecx, dword [edx + 4]
mov ebp, dword [edx]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00522e60
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x54097b
mov ecx, dword [0x8a6100]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x8c]
lea edi, [ebp + ebx*4]
test ecx, ecx
jne 0x540974
mov dword [ebp + ebx*4], eax
lea ecx, [ebx + 1]
mov ebx, dword [esp + 0xec]
cmp ecx, ebx
jl 0x540907
mov eax, ebp
mov ecx, ebx
jmp 0x5404e7
call fcn.0044d090
jmp 0x54095d
mov dword [esp + 0x78], ecx
mov dword [esp + 0x5c], edx
mov eax, dword [esp + 0xe4]
mov dword [esp], eax
mov byte [esp + 4], 0x2a
call fcn.00538680
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x78]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
lea edx, [0x6933e5]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x2e
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.0043c120
nop
mov eax, dword [esp + 0x14]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], ecx
lea edx, [0x64cca0]
mov dword [esp], edx
call fcn.00409a20
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x4c]
mov dword [edi + 4], eax
mov eax, dword [0x8a6100]
test eax, eax
jne 0x540a2a
mov eax, dword [esp + 0x6c]
mov dword [edi], eax
lea eax, [0x6e5880]
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], edi
add esp, 0xe0
ret
mov eax, dword [esp + 0x6c]
call fcn.0044d090
jmp 0x540a0f
call fcn.00427150
ud2
call fcn.00427150
ud2
call fcn.0044b940
jmp fcn.00540490