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

Disassembly:
push ebp
sub esp, 0xb8
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc0]
movzx ecx, word [esp + 0xcc]
mov dword [esp + 0x74], 0x57f6a0
mov dword [esp + 0x38], edx
lea edx, [esp + 0x5c]
mov dword [esp + 0x40], eax
lea eax, [esp + 0xb0]
mov dword [esp], edx
mov word [esp + 0x4a], cx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], 0x5816e8
mov dword [esp + 0x80], 0x5462af
mov dword [esp + 0x84], esp
call fcn.00511d80
mov edx, dword [esp + 0xc8]
mov ecx, dword [esp + 0x40]
movzx eax, byte [esp + 0x38]
mov dword [esp + 0x60], 0xffffffff
add edx, 0x6c
mov dword [esp], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov byte [esp + 0x3c], al
call fcn.0057b670
mov ecx, dword [esp + 0x2c]
mov dword [esp], ecx
lea ecx, [esp + 0x9b]
mov dword [esp + 0x34], eax
call fcn.00528260
sub esp, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xd0]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax]
movzx edx, word [edx + 0x3c]
cmp word [eax], dx
je 0x546176
mov edx, dword [ecx + 0x34]
mov dword [esp + 0x28], eax
mov dword [esp + 0xa4], edx
mov edx, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x24]
mov dword [esp + 0x50], edx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x34]
mov eax, dword [eax - 0xc]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x28]
mov dword [esp], 8
lea eax, [ecx + eax*2]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x14]
mov dword [esp + 0x60], 0xffffffff
call eax
sub esp, 0xc
sub eax, dword [esp + 0x28]
sar eax, 1
mov dword [esp + 0x34], eax
jne 0x545d80
movzx eax, byte [esp + 0x3c]
mov ecx, dword [esp + 0xc8]
mov byte [esp + 0x38], al
lea eax, [esp + 0x5c]
mov dword [ecx + 8], 0
mov dword [esp], eax
call fcn.00511e40
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
add esp, 0xb8
pop ebp
ret 0x14
add eax, eax
mov dword [esp], eax
lea ecx, [esp + 0x9c]
mov dword [esp + 0x9c], 0x58a86c
mov dword [esp + 0x60], 1
call fcn.005481b0
sub esp, 4
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov eax, dword [edx + 0x30]
sub ecx, eax
test ecx, ecx
mov dword [esp + 0x30], ecx
jle 0x545eae
test eax, eax
mov edx, dword [edx + 0xc]
mov eax, dword [esp + 0x34]
cmovns eax, ecx
test edx, edx
mov dword [esp + 0x30], eax
je 0x5461b0
add eax, eax
mov dword [esp + 4], 0
lea ecx, [esp + 0x9c]
mov dword [esp], eax
mov dword [esp + 0x60], 1
call fcn.00547590
sub esp, 8
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + 0xc]
lea edx, [ecx + edx*2]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x2c]
movzx eax, word [eax + 0x14]
mov dword [esp + 0x58], eax
call fcn.00547ab0
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00577670
lea ecx, [esp + 0x9c]
mov dword [esp + 0x3c], eax
call fcn.00547ab0
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x9c]
sub eax, dword [esp + 0x9c]
mov dword [esp + 4], 0xffffffff
sar eax, 1
mov dword [esp], eax
call fcn.00546f10
sub esp, 8
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x30]
test eax, eax
jle 0x545f08
mov ecx, dword [esp + 0x2c]
movzx eax, word [ecx + 0x12]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x60], 1
mov dword [esp], eax
call fcn.00548410
sub esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
js 0x546263
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov eax, dword [edx + 0x30]
mov edx, dword [esp + 0x28]
mov dword [esp + 4], eax
lea eax, [edx + ecx*2]
mov dword [esp], eax
lea ecx, [esp + 0x9c]
call fcn.00546fd0
sub esp, 8
mov ecx, dword [esp + 0xc8]
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x44]
mov edx, eax
and edx, 0xb0
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x9c]
add ecx, dword [edx - 0xc]
xor edx, edx
test ah, 2
jne 0x5461a2
add ecx, edx
mov eax, ecx
add eax, eax
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0xa0]
mov dword [esp], eax
mov dword [esp + 0xa0], 0x58a86c
mov dword [esp + 0x60], 2
call fcn.005481b0
sub esp, 4
mov edx, dword [esp + 0xc8]
movzx ecx, word [esp + 0x4a]
mov dword [esp + 0x28], 1
mov edx, dword [edx + 8]
cmp dword [esp + 0x3c], edx
mov dword [esp + 0x54], ecx
setb byte [esp + 0x34]
cmp dword [esp + 0x4c], 0x10
mov dword [esp + 0x30], edx
sete al
sub edx, dword [esp + 0x3c]
and byte [esp + 0x34], al
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x28]
movsx eax, byte [esp + edx + 0xa3]
cmp eax, 4
ja case.default.0x545fb3
jmp dword [eax*4 + 0x5c78e8]
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x546240
cmp dword [esp + 0x28], 4
jne 0x545ff7
jmp 0x546067
mov ecx, dword [esp + 0xc8]
test byte [ecx + 0xd], 2
jne 0x546216
lea esi, [esi]
cmp dword [esp + 0x28], 4
je 0x546034
add dword [esp + 0x28], 1
jmp 0x545fa2
cmp byte [esp + 0x34], 0
je case.default.0x545fb3
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x60], 2
mov dword [esp], ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 4], edx
call fcn.00547260
sub esp, 8
cmp dword [esp + 0x28], 4
jne 0x545ff7
cmp dword [esp + 0x44], 1
jbe 0x546067
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
sub eax, 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
add eax, 2
mov dword [esp], eax
call fcn.00546fd0
sub esp, 8
mov edx, dword [esp + 0xa0]
mov eax, dword [edx - 0xc]
cmp dword [esp + 0x30], eax
jbe 0x5460be
cmp dword [esp + 0x4c], 0x20
movzx edx, word [esp + 0x4a]
je 0x5461e2
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], edx
mov dword [esp], 0
mov dword [esp + 0x60], 2
sub ecx, eax
mov dword [esp + 4], ecx
lea ecx, [esp + 0xa0]
call fcn.00547920
sub esp, 0xc
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [esp + 0x60], 2
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xac], ecx
lea ecx, [esp + 0xa8]
call fcn.0056fb50
sub esp, 8
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0xa0]
movzx edx, byte [esp + 0xac]
mov dword [esp + 0x30], eax
mov byte [esp + 0x3c], dl
call fcn.00548b50
lea ecx, [esp + 0x9c]
call fcn.00548b50
jmp 0x545d49
cmp byte [esp + 0x34], 0
jne 0x546007
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
mov dword [esp], eax
call fcn.00548410
jmp 0x54616e
lea eax, [esp + 0x9c]
mov dword [esp], eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
call fcn.005470d0
sub esp, 4
jmp case.default.0x545fb3
mov edx, dword [ecx + 0x38]
mov dword [esp + 0xa4], edx
mov edx, dword [ecx + 0x28]
mov ecx, dword [ecx + 0x2c]
mov dword [esp + 0x50], edx
lea edx, [eax + 2]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax - 0xc]
test ecx, ecx
cmove edx, eax
mov dword [esp + 0x28], edx
jmp 0x545d0a
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x1c]
jmp 0x545f37
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], 1
mov dword [esp + 4], ecx
lea ecx, [esp + 0x9c]
mov dword [esp], eax
call fcn.00547390
sub esp, 8
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x30]
jmp 0x545eae
mov dword [esp + 4], edx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
sub edx, eax
mov dword [esp], edx
call fcn.00547260
sub esp, 8
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x30]
jmp 0x5460be
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0xa0]
mov eax, dword [edx + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x18]
mov dword [esp + 0x60], 2
mov dword [esp], eax
call fcn.00546fd0
jmp 0x54602a
mov ecx, dword [esp + 0x50]
movzx eax, word [ecx]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
mov dword [esp], eax
call fcn.00548410
jmp 0x54616e
mov ecx, dword [esp + 0x2c]
movzx eax, word [ecx + 0x3e]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x60], 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
neg eax
mov dword [esp], eax
call fcn.00547260
sub esp, 8
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x9c]
mov edx, dword [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00546fd0
jmp 0x545f05