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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x546f05
sub esp, 0x60
mov eax, 0
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov byte [esp + 0x3b], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea eax, [0x77dbd0]
mov dword [esp], eax
call fcn.00470ed0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
lea edx, [0x5cb060]
cmp edx, ecx
jne 0x546ee5
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ebx
lea ecx, [0x626efc]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], eax
mov byte [esp + 0x3b], 1
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
xor ebx, ebx
jmp 0x546b50
mov ebp, dword [esp + 0x74]
sub ebp, eax
sub ecx, eax
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and eax, ebp
mov ebp, dword [esp + 0x6c]
add ebp, eax
mov eax, ecx
mov ecx, esi
mov ebx, edx
mov edx, ebp
mov dword [esp + 0x3c], ebx
test eax, eax
jle 0x546dc5
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], edx
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x64]
mov dword [esp], eax
movzx ecx, byte [esp + 0x68]
mov byte [esp + 4], cl
call fcn.005465a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x70]
cmp eax, ecx
jge 0x546dbe
mov dword [esp + 0x40], eax
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x50]
cmp ebp, 5
jl 0x546d86
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 5
mov dword [esp + 0x50], ebp
movzx ebp, byte [esp + 0x68]
xchg ebp, eax
mov byte [ebx], al
xchg ebp, eax
mov ebx, dword [esp + 0x64]
movzx esi, word [ebx + 0x24]
test si, si
jne 0x546d6e
mov edx, 0x301
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
cmp esi, 1
jbe 0x546ed9
mov esi, edx
shr dx, 8
mov byte [edi + 1], dl
mov edi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
cmp edi, 2
jbe 0x546ecd
xchg esi, eax
mov byte [ebp + 2], al
xchg esi, eax
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
cmp ebp, 3
jbe 0x546ec1
mov ebp, eax
sar eax, 8
mov byte [esi + 3], al
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
cmp esi, 4
jbe 0x546eb5
xchg ebp, eax
mov byte [edi + 4], al
xchg ebp, eax
mov eax, dword [esp + 0x74]
cmp eax, ebp
jb 0x546eac
mov esi, dword [ebx + 0x28]
mov edi, dword [esi]
mov esi, dword [esi + 4]
test edi, edi
je 0x546d5d
mov dword [esp + 0x44], esi
lea ecx, [ebx + 0x114]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
mov edx, dword [esp + 0x44]
mov dword [esp + 0x20], edx
call fcn.00542820
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ecx
test edx, edx
jne 0x546d2d
mov edx, dword [esp + 0x64]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
call fcn.00546800
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test eax, eax
jne 0x546cfd
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
add edx, eax
mov ecx, dword [esp + 0x70]
cmp ecx, eax
jae 0x546b2d
jmp 0x546ea7
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov byte [esp + 0x3b], 0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0055eac0
add esp, 0x60
ret
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebp
mov byte [esp + 0x3b], 0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0055eac0
add esp, 0x60
ret
mov edi, dword [0x782f30]
mov esi, dword [0x782f34]
jmp 0x546c4c
cmp si, 0x304
jne 0x546d7f
mov edx, 0x303
jmp 0x546bd1
mov edx, esi
jmp 0x546bd1
lea eax, [0x5db380]
mov dword [esp], eax
mov dword [esp + 4], 5
mov dword [esp + 8], 0
mov dword [esp + 0xc], ebx
call fcn.00444f50
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x70]
mov ebp, 5
jmp 0x546ba2
mov eax, ecx
jmp 0x546b8d
movzx eax, byte [esp + 0x68]
cmp al, 0x14
jne 0x546ddb
mov eax, dword [esp + 0x64]
cmp word [eax + 0x24], 0x304
jne 0x546e0f
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov byte [esp + 0x3b], 0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0055eac0
add esp, 0x60
ret
lea ecx, [eax + 0x114]
mov dword [esp], ecx
call fcn.00541800
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
je 0x546e82
lea eax, [0x65ecd0]
cmp ecx, eax
jne 0x546e8b
movzx eax, byte [edx]
mov ecx, dword [esp + 0x64]
mov dword [esp], ecx
mov byte [esp + 4], al
call fcn.005462e0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
mov byte [esp + 0x3b], 0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0055eac0
add esp, 0x60
ret
mov ebx, dword [esp + 0x3c]
jmp 0x546ddb
mov dword [esp], ecx
lea eax, [0x5e54c0]
mov dword [esp + 4], eax
lea eax, [0x5e1bc0]
mov dword [esp + 8], eax
call fcn.00408e80
call fcn.0045def0
mov ecx, ebp
mov edx, eax
call fcn.0045ded0
mov eax, 4
mov ecx, esi
call fcn.0045de90
mov eax, 3
mov ecx, ebp
call fcn.0045de90
mov eax, 2
mov ecx, edi
call fcn.0045de90
mov eax, 1
mov ecx, esi
call fcn.0045de90
mov dword [esp], ecx
mov dword [esp + 4], edx
lea eax, [0x5daa80]
mov dword [esp + 8], eax
call fcn.00408de0
nop
call fcn.00430cc0
add esp, 0x60
ret
call fcn.0045c8b0
jmp fcn.00546a80