Function at 0x546960
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], 0x5803e0
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], 0x582428
mov dword [esp + 0x80], 0x546fef
mov dword [esp + 0x84], esp
call fcn.00512ac0
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.0057c3b0
mov ecx, dword [esp + 0x2c]
mov dword [esp], ecx
lea ecx, [esp + 0x9b]
mov dword [esp + 0x34], eax
call fcn.00528fa0
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 0x546eb6
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 0x546ac0
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.00512b80
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], 0x58b86c
mov dword [esp + 0x60], 1
call fcn.00548ef0
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 0x546bee
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 0x546ef0
add eax, eax
mov dword [esp + 4], 0
lea ecx, [esp + 0x9c]
mov dword [esp], eax
mov dword [esp + 0x60], 1
call fcn.005482d0
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.005487f0
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.005783b0
lea ecx, [esp + 0x9c]
mov dword [esp + 0x3c], eax
call fcn.005487f0
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.00547c50
sub esp, 8
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x30]
test eax, eax
jle 0x546c48
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.00549150
sub esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
js 0x546fa3
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.00547d10
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 0x546ee2
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], 0x58b86c
mov dword [esp + 0x60], 2
call fcn.00548ef0
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.0x546cf3
jmp dword [eax*4 + 0x5c88e8]
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x546f80
cmp dword [esp + 0x28], 4
jne 0x546d37
jmp 0x546da7
mov ecx, dword [esp + 0xc8]
test byte [ecx + 0xd], 2
jne 0x546f56
lea esi, [esi]
cmp dword [esp + 0x28], 4
je 0x546d74
add dword [esp + 0x28], 1
jmp 0x546ce2
cmp byte [esp + 0x34], 0
je case.default.0x546cf3
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.00547fa0
sub esp, 8
cmp dword [esp + 0x28], 4
jne 0x546d37
cmp dword [esp + 0x44], 1
jbe 0x546da7
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.00547d10
sub esp, 8
mov edx, dword [esp + 0xa0]
mov eax, dword [edx - 0xc]
cmp dword [esp + 0x30], eax
jbe 0x546dfe
cmp dword [esp + 0x4c], 0x20
movzx edx, word [esp + 0x4a]
je 0x546f22
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.00548660
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.00570890
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.00549890
lea ecx, [esp + 0x9c]
call fcn.00549890
jmp 0x546a89
cmp byte [esp + 0x34], 0
jne 0x546d47
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
mov dword [esp], eax
call fcn.00549150
jmp 0x546eae
lea eax, [esp + 0x9c]
mov dword [esp], eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
call fcn.00547e10
sub esp, 4
jmp case.default.0x546cf3
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 0x546a4a
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x1c]
jmp 0x546c77
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.005480d0
sub esp, 8
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x30]
jmp 0x546bee
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.00547fa0
sub esp, 8
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x30]
jmp 0x546dfe
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.00547d10
jmp 0x546d6a
mov ecx, dword [esp + 0x50]
movzx eax, word [ecx]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
mov dword [esp], eax
call fcn.00549150
jmp 0x546eae
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.00547fa0
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.00547d10
jmp 0x546c45