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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x28]
cmp eax, dword [ecx + 8]
jbe 0x5406da
sub esp, 0xa8
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov ebp, dword [esp + 0xb4]
movzx esi, byte [ebp]
xchg esi, eax
test al, al
xchg esi, eax
je 0x5402fb
mov ecx, dword [esp + 0xb8]
test ecx, ecx
je 0x5402ca
mov edx, dword [ecx + 8]
test edx, edx
je 0x5402ca
mov byte [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
lea edx, [esp + 0x98]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00542090
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5402b8
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [esp + 0xb0]
mov ebp, dword [esp + 0xb4]
jmp 0x5402fb
mov dword [esp + 0xc0], 0
add esp, 0xa8
ret
mov eax, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
call fcn.0053f300
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc0], eax
add esp, 0xa8
ret
mov esi, dword [ebp + 8]
mov dword [esp + 0x4c], esi
mov edi, dword [ebp + 4]
mov dword [esp + 0x74], edi
mov ebp, dword [ebp + 0xc]
mov dword [esp + 0x50], ebp
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x54055e
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], edx
mov ebp, dword [esp + 0xac]
cmp eax, ebp
je 0x54036e
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 4]
mov ebx, dword [eax + 0xc]
mov edx, dword [eax + 4]
test esi, esi
je 0x54052e
test ebx, ebx
je 0x540520
lea esi, [edi + esi*4 - 4]
lea edx, [edx + ebx*4 - 4]
cmp edx, esi
jne 0x540512
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x74]
mov byte [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
lea esi, [esp + 0x88]
cmp eax, esi
je 0x540509
mov dword [esp + 0x78], ecx
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
test esi, esi
jg 0x5403d3
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x70], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
jmp 0x54049b
mov dword [esp + 0x5c], esi
mov dword [esp + 0x7c], edi
cmp esi, 1
jne 0x540444
lea eax, [0x758680]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044b030
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0xac]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x7c]
mov ecx, 1
mov dword [esp + 0x48], ecx
mov dword [esp + 0x70], eax
mov edx, 1
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x54]
jmp 0x54049b
lea eax, [0x758680]
mov dword [esp], eax
mov dword [esp + 4], esi
lea eax, [esi + 4]
mov dword [esp + 0x44], eax
mov dword [esp + 8], eax
call fcn.0044b030
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0xac]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x48], esi
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x48]
cmp ebx, esi
jg 0x5404a5
mov esi, ebx
mov edx, dword [esp + 0x70]
cmp edx, edi
je 0x5404da
mov dword [esp], edx
mov dword [esp + 4], edi
shl esi, 2
mov dword [esp + 8], esi
call fcn.00464d50
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0xac]
mov dword [esp + 0x90], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x94], ebx
mov dword [esp + 0x8c], edx
movzx eax, byte [eax]
mov byte [esp + 0x88], al
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x74]
lea eax, [esp + 0x88]
jmp 0x54053a
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x74]
jmp 0x54053a
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x74]
jmp 0x54053a
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x74]
mov esi, dword [eax + 4]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x64], eax
mov dword [esp + 0x80], esi
mov esi, dword [esp + 0x4c]
mov eax, edi
mov edi, dword [esp + 0x74]
jmp 0x540571
xor eax, eax
xor eax, eax
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x80], eax
xor eax, eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xac]
mov ebp, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x2c], ebx
movzx ebp, byte [esp + 0xbc]
xchg ebp, eax
mov byte [esp + 0x30], al
xchg ebp, eax
call fcn.00547220
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0xac]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
lea edi, [ebx + 4]
mov edx, dword [0xaab020]
test edx, edx
jne 0x540609
mov dword [ebx + 4], ecx
jmp 0x540614
mov edx, eax
mov eax, ecx
call fcn.004643b0
mov eax, edx
test eax, eax
je 0x54063e
mov eax, dword [esp + 0xb0]
movzx eax, byte [eax]
test al, al
je 0x54063e
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x54063e
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
test eax, 1
setne al
jmp 0x540640
xor eax, eax
mov byte [ebx], al
test al, al
je 0x5406cc
mov eax, dword [esp + 0x60]
test eax, eax
je 0x5406cc
mov dword [esp + 0x84], edi
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ebp, dword [ebx + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x80]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebp
call fcn.00543b20
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0xac]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov ecx, dword [0xaab020]
test ecx, ecx
jne 0x5406bd
mov dword [ebx + 4], eax
jmp 0x5406c9
mov edi, dword [esp + 0x84]
call fcn.004643b0
mov byte [ebx], 0
mov dword [esp + 0xc0], ebx
add esp, 0xa8
ret
call fcn.00462fa0
jmp fcn.00540200