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

Disassembly:
mov ecx, dword [0x6c4e70]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x548b07
sub esp, 0x70
mov eax, dword [esp + 0x84]
mov dword [esp], eax
call fcn.005444d0
movzx eax, byte [esp + 4]
test al, al
je 0x548962
mov edx, dword [esp + 0x8c]
test edx, edx
je 0x548584
mov ebx, dword [esp + 0x78]
jmp 0x5485a5
movzx ebx, byte [esp + 0x88]
test bl, bl
je 0x548887
mov ebx, dword [esp + 0x78]
mov ebp, dword [ebx + 0xc]
test ebp, ebp
je 0x548887
test edx, edx
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
je 0x5485c9
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
jmp 0x54874a
mov edx, dword [ebx + 0xc]
test edx, edx
jne 0x5485d6
xor eax, eax
xor edx, edx
jmp 0x54863a
mov edx, dword [ebx + 8]
mov ebp, dword [edx + 4]
mov edx, dword [edx]
mov dword [ebx + 4], ebp
mov ebp, dword [0x6c4f80]
test ebp, ebp
je 0x5485f7
call fcn.00460f00
mov dword [edi], edx
mov ebp, dword [ebx]
mov dword [edi + 4], ebp
mov dword [ebx], edx
mov ebp, dword [ebx + 0xc]
cmp ebp, 1
jb 0x548afa
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x10]
dec ecx
dec ebp
mov dword [ebx + 0xc], ebp
mov dword [ebx + 0x10], ecx
mov ebp, dword [0x6c4f80]
neg ecx
sar ecx, 0x1f
and ecx, 8
add eax, ecx
test ebp, ebp
je 0x548634
call fcn.00460f00
mov dword [edi], eax
mov ecx, dword [ebx + 8]
mov dword [edi + 4], ecx
mov dword [ebx + 8], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x84]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00545770
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5487ea
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0xc]
test ecx, 4
je 0x54874a
cmp dword [esp + 0x54], 2
jne 0x54874a
mov ecx, dword [esp + 0x50]
cmp word [ecx], 0x2d2d
jne 0x54874a
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea eax, [0x57eae0]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x64], eax
lea eax, [0x593954]
mov dword [esp], eax
mov dword [esp + 4], 0x39
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004b0a30
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
lea edx, [0x5695c0]
mov dword [esp], edx
call fcn.0040bd30
mov eax, dword [esp + 4]
mov dword [eax], 1
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [0x6c4f80]
test ecx, ecx
jne 0x548724
mov ecx, dword [esp + 0x38]
jmp 0x54872f
call fcn.00460ef0
mov ecx, dword [esp + 0x38]
mov dword [edi], ecx
mov dword [eax + 4], ecx
lea ecx, [0x5c0478]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
add esp, 0x70
ret
mov eax, dword [esp + 0x84]
test byte [eax], al
lea ecx, [eax + 0xac]
mov dword [esp], ecx
lea ecx, [0x586ce3]
mov dword [esp + 4], ecx
mov dword [esp + 8], 7
call fcn.005438c0
cmp dword [esp + 0x10], 5
jne 0x54878c
mov eax, dword [esp + 0xc]
cmp dword [eax], 0x736c6166
jne 0x54878c
cmp byte [eax + 4], 0x65
je 0x5487ba
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0053e8e0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
jmp 0x5487be
xor edx, edx
xor ebx, ebx
test edx, edx
jne 0x548a95
mov eax, dword [esp + 0x84]
mov dword [esp], eax
lea ecx, [esp + 0x50]
mov dword [esp + 4], ecx
call fcn.00544050
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
jmp 0x548a95
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.004b0a30
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], ecx
lea edx, [0x5695c0]
mov dword [esp], edx
call fcn.0040bd30
mov eax, dword [esp + 4]
mov dword [eax], 1
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [0x6c4f80]
test ecx, ecx
jne 0x548861
mov ecx, dword [esp + 0x3c]
jmp 0x54886c
call fcn.00460ef0
mov ecx, dword [esp + 0x3c]
mov dword [edi], ecx
mov dword [eax + 4], ecx
lea ecx, [0x5c0478]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
add esp, 0x70
ret
mov eax, dword [esp + 0x84]
movzx ecx, byte [eax + 0x30]
test cl, cl
je 0x5488be
mov dword [esp], eax
call fcn.00544620
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 0x38]
mov dword [esp + 0x30], edx
xor ebx, ebx
xor ebp, ebp
xor esi, esi
jmp 0x548ab5
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
lea ecx, [0x57eae0]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
lea ecx, [0x58e404]
mov dword [esp], ecx
mov dword [esp + 4], 0x1f
lea ecx, [esp + 0x58]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004b0a30
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
lea edx, [0x5695c0]
mov dword [esp], edx
call fcn.0040bd30
mov eax, dword [esp + 4]
mov dword [eax], 1
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov ecx, dword [0x6c4f80]
test ecx, ecx
jne 0x548949
mov ecx, dword [esp + 0x34]
jmp 0x548954
call fcn.00460ef0
mov ecx, dword [esp + 0x34]
mov dword [edi], ecx
mov dword [eax + 4], ecx
lea ecx, [0x5c0478]
jmp 0x548a91
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x548a29
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
lea eax, [0x57eae0]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x6c], eax
lea eax, [0x590492]
mov dword [esp], eax
mov dword [esp + 4], 0x26
lea eax, [esp + 0x68]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004b0a30
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x40], ecx
lea edx, [0x5695c0]
mov dword [esp], edx
call fcn.0040bd30
mov eax, dword [esp + 4]
mov dword [eax], 6
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [0x6c4f80]
test ecx, ecx
jne 0x548a03
mov ecx, dword [esp + 0x40]
jmp 0x548a0e
call fcn.00460ef0
mov ecx, dword [esp + 0x40]
mov dword [edi], ecx
mov dword [eax + 4], ecx
lea ecx, [0x5c0478]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
add esp, 0x70
ret
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00544050
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test eax, eax
je 0x548a7f
lea edx, [0x5c0478]
cmp eax, edx
je 0x548a7f
mov edx, dword [esp + 0x74]
mov dword [esp], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call fcn.00548b20
mov ecx, dword [esp + 0x10]
lea eax, [0x5c0478]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
add esp, 0x70
ret
mov edx, ecx
mov ebx, eax
mov eax, edx
mov ecx, ebx
jmp 0x548a48
mov edi, dword [esp + 0x2c]
lea ebx, [edi + 1]
mov edx, dword [esp + 0x30]
mov ebp, eax
mov esi, ecx
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x44]
cmp ebx, edx
jge 0x548af4
mov dword [esp + 0x2c], ebx
lea edx, [ecx + ebx*8]
mov ebp, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], edx
mov dword [esp], eax
lea edx, [esp + 0x48]
mov dword [esp + 4], edx
call fcn.00544050
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test eax, eax
je 0x548a9b
mov ebp, eax
mov esi, ecx
mov eax, dword [esp + 0x84]
mov ecx, ebp
mov eax, esi
jmp 0x548a91
mov eax, 1
xor ecx, ecx
call fcn.00460fc0
nop
call fcn.0045faf0
jmp fcn.00548540