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

Disassembly:
mov ecx, dword [0x6c4e70]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x5c]
cmp eax, dword [ecx + 8]
jbe 0x546c28
sub esp, 0xdc
mov eax, dword [esp + 0xe0]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x546340
mov ecx, dword [eax]
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
lea edx, [0x546dd0]
mov dword [esp + 0x84], edx
lea edx, [0x595584]
mov dword [esp + 0x88], edx
mov dword [esp], ecx
lea ecx, [esp + 0x84]
mov dword [esp + 4], ecx
mov byte [esp + 8], 1
call fcn.00539cb0
mov eax, dword [esp + 0xe0]
mov ecx, dword [eax + 0xc]
test ecx, 2
je 0x5460e8
lea eax, [0x566060]
mov dword [esp], eax
call fcn.0040bd30
mov eax, dword [esp + 4]
lea ecx, [0x54a500]
mov dword [eax], ecx
mov ecx, dword [0x6c4f80]
test ecx, ecx
jne 0x5460c9
mov ecx, dword [esp + 0xe0]
jmp 0x5460d7
call fcn.00460ef0
mov ecx, dword [esp + 0xe0]
mov dword [edi], ecx
mov dword [eax + 4], ecx
mov edx, dword [ecx]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00539e00
lea eax, [0x589ce5]
mov dword [esp], eax
mov dword [esp + 4], 0x13
call fcn.004ab820
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x54623f
lea eax, [0x560820]
mov dword [esp], eax
mov dword [esp + 4], 0
mov ecx, dword [esp + 0xe8]
mov dword [esp + 8], ecx
call fcn.00449500
mov eax, dword [esp + 0xc]
mov dword [esp + 0x78], eax
lea edi, [esp + 0x98]
xor eax, eax
call fcn.004610df
mov eax, dword [esp + 0xe4]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0xa4], eax
mov ecx, dword [esp + 0xec]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xe0]
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
mov edx, dword [ecx + 0x38]
mov dword [esp + 0x50], edx
lea ebx, [0x563d80]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.00449500
mov eax, dword [esp + 0xc]
mov dword [esp + 0xb8], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], ecx
mov edx, dword [esp + 0x64]
mov ebx, dword [edx + 0x34]
mov ebp, dword [edx + 0x38]
lea esi, [0x563d80]
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.004107e0
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.00539e80
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], edx
mov eax, dword [esp + 0x64]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xe0]
jmp 0x54637b
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x6c], 0
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x6c], eax
lea ecx, [esp + 0x6c]
mov dword [esp], ecx
mov edx, dword [esp + 0xe4]
mov dword [esp + 4], edx
mov edx, dword [esp + 0xe8]
mov dword [esp + 8], edx
mov edx, dword [esp + 0xec]
mov dword [esp + 0xc], edx
call fcn.0053b010
mov eax, dword [esp + 0xe0]
mov edx, dword [eax + 0x24]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test edx, edx
jne 0x5462f3
mov edx, dword [esp + 0x48]
cmp edx, 7
jne 0x5462c7
mov edx, dword [esp + 0x60]
cmp dword [edx], 0x62726576
jne 0x5462c7
cmp word [edx + 4], 0x736f
jne 0x5462c7
cmp byte [edx + 6], 0x65
sete dl
jmp 0x5462c9
xor edx, edx
lea ebp, [esp + 0x6c]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov byte [esp + 0x10], dl
call fcn.0053bf60
mov dword [esp], 0
call fcn.004ad540
jmp 0x546302
mov ebp, dword [edx]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call ebp
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
add esp, 0xdc
ret
mov eax, dword [eax + 0x30]
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x100], eax
add esp, 0xdc
ret
mov eax, ebp
mov edx, dword [esp + 0xa4]
test edx, edx
je 0x546814
mov edx, dword [esp + 0xa0]
mov ebx, dword [edx + 4]
mov edx, dword [edx]
nop
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], edx
mov ebx, dword [esp + 0xa4]
cmp ebx, 1
jb 0x546c1b
mov ecx, dword [esp + 0xa0]
mov ebp, dword [esp + 0xa8]
dec ebp
dec ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 8
add ecx, ebp
mov dword [esp + 0xa0], ecx
mov ebx, dword [eax + 0xc]
mov ebp, dword [esp + 0x9c]
test ebx, 4
je 0x54640a
cmp ebp, 2
jne 0x54640a
cmp word [edx], 0x2d2d
je 0x5466d6
nop
cmp ebp, 1
jle 0x54665f
cmp byte [edx], 0x2f
je 0x546456
cmp ebp, 1
jle 0x54665f
movzx ecx, byte [edx]
cmp cl, 0x2d
jne 0x546430
cmp byte [edx + 1], 0x2d
jne 0x546456
cmp ebp, 2
jle 0x54665f
cmp cl, 0x2d
jne 0x54665f
cmp byte [edx + 1], 0x2d
jne 0x54665f
cmp byte [edx + 2], 0x2d
je 0x54665f
mov dword [esp + 0x34], ebp
mov dword [esp + 0x54], edx
mov dword [esp], edx
mov dword [esp + 4], ebp
call fcn.00545920
movzx eax, byte [esp + 0x18]
mov byte [esp + 0x33], al
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov byte [esp + 0x10], al
call fcn.00545a50
mov eax, dword [esp + 0x24]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x44], edx
movzx ebx, byte [esp + 0x33]
test bl, bl
je 0x5464ec
mov ebx, dword [esp + 0xe0]
mov dword [esp], ebx
lea ebp, [esp + 0x98]
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
call fcn.00548e10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
jmp 0x54651a
mov ebx, dword [esp + 0xe0]
mov dword [esp], ebx
lea ebp, [esp + 0x98]
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
call fcn.005490d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x54652a
mov ebp, dword [esp + 0xe0]
jmp 0x546379
mov edx, dword [esp + 0xe0]
mov ebx, dword [edx + 0xc]
mov dword [esp + 0x4c], ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0053ec90
mov eax, dword [esp + 8]
cmp dword [eax], 2
jne 0x546739
mov ebx, dword [esp + 0x4c]
test ebx, 8
jne 0x546606
mov ebp, dword [esp + 0xe0]
mov edx, dword [ebp + 0x20]
test edx, edx
je 0x546740
test ebx, 8
jne 0x546606
test edx, edx
je 0x546379
mov eax, dword [edx]
mov ecx, dword [esp + 0xa0]
mov ebx, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0x5c]
mov dword [esp], esi
mov esi, dword [esp + 0x44]
mov dword [esp + 4], esi
lea esi, [0x5c048c]
mov dword [esp + 8], esi
mov edi, dword [esp + 0x68]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
call eax
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x546711
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa0], edx
mov ebp, dword [esp + 0xe0]
jmp 0x546379
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x98]
mov dword [esp], eax
lea ecx, [esp + 0x7c]
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.00549390
mov ebp, dword [esp + 0xe0]
jmp 0x546379
test ebx, 0x20
jne 0x54666b
xor ecx, ecx
jmp 0x5466a3
mov eax, dword [esp + 0xd8]
lea ecx, [0x5621a0]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
call fcn.0040f5b0
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
setne al
xor eax, 1
mov ecx, eax
mov eax, dword [esp + 0xe0]
test cl, cl
jne 0x54676b
mov dword [esp], eax
lea ecx, [esp + 0x98]
mov dword [esp + 4], ecx
call fcn.005495e0
mov eax, dword [esp + 8]
test eax, eax
jne 0x546759
mov ebp, dword [esp + 0xe0]
jmp 0x546379
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0xa8]
lea ebx, [esp + 0x98]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.00549390
lea ecx, [0x5c0478]
mov ebp, dword [esp + 0xe0]
jmp 0x54681c
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], ecx
lea ecx, [0x5c0478]
mov ebp, dword [esp + 0xe0]
jmp 0x54681c
mov ebp, dword [esp + 0xe0]
lea ecx, [0x5c0478]
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], eax
jmp 0x54681c
lea ecx, [0x5c0478]
mov ebp, dword [esp + 0xe0]
jmp 0x54681c
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
lea eax, [esp + 0x98]
mov dword [esp], eax
lea ecx, [esp + 0x7c]
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.00549390
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5467d5
lea ecx, [0x5c0478]
mov ebp, dword [esp + 0xe0]
jmp 0x54681c
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa8]
lea ebx, [esp + 0x98]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.00549390
lea ecx, [0x5c0478]
mov ebp, dword [esp + 0xe0]
jmp 0x54681c
lea ecx, [0x5c0478]
mov ebp, eax
mov eax, dword [esp + 0xc4]
test eax, eax
jne 0x5468e1
mov eax, dword [ebp]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
lea ecx, [0x546d30]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ebp
lea ecx, [esp + 0x98]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
lea edx, [0x546c40]
mov dword [esp + 0x84], edx
lea edx, [esp + 0x8c]
mov dword [esp + 0x88], edx
mov dword [esp], eax
lea eax, [esp + 0x84]
mov dword [esp + 4], eax
mov byte [esp + 8], 1
call fcn.00539cb0
lea eax, [esp + 0x98]
mov dword [esp], eax
mov ecx, dword [esp + 0xe0]
mov dword [esp + 4], ecx
call fcn.00546ec0
lea ecx, [0x5c0478]
mov ebp, dword [esp + 0xe0]
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x5468fc
mov edx, dword [esp + 0xc8]
mov ecx, eax
mov eax, ebp
jmp 0x546a48
mov eax, dword [esp + 0xcc]
mov edx, dword [eax + 0x28]
test edx, edx
je 0x546939
movzx edx, byte [eax + 0x10]
test dl, dl
jne 0x546939
lea eax, [esp + 0x98]
mov dword [esp], eax
call fcn.00547f90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, ecx
mov ecx, eax
mov eax, dword [esp + 0xe0]
jmp 0x546a48
mov eax, dword [eax]
mov ecx, dword [eax + 0x48]
mov eax, dword [eax + 0x4c]
lea edx, [0x565700]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004098b0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5469ed
mov ecx, dword [esp + 0xe0]
mov edx, dword [ecx + 0x28]
mov ebx, dword [esp + 0x10]
test edx, edx
je 0x5469af
mov eax, dword [esp + 0xc]
mov ecx, dword [edx]
mov ebp, dword [esp + 0xac]
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0xb4]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
call ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
jmp 0x5469e0
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xb0]
mov ebp, dword [esp + 0xb4]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, ecx
mov ecx, eax
mov eax, dword [esp + 0xe0]
jmp 0x546a48
mov eax, dword [esp + 0xe0]
mov edx, dword [eax + 0x28]
test edx, edx
jne 0x546a01
xor ecx, ecx
xor edx, edx
jmp 0x546a48
mov eax, dword [edx]
mov ecx, dword [esp + 0xac]
mov ebx, dword [esp + 0xb0]
mov ebp, dword [esp + 0xb4]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, ecx
mov ecx, eax
mov eax, dword [esp + 0xe0]
test ecx, ecx
je 0x546bd4
lea ebx, [0x5c0478]
cmp ecx, ebx
jne 0x546a5e
mov ebx, edx
jmp 0x546a65
mov ebx, edx
mov edx, 0
mov dword [esp + 0x74], ebx
mov dword [esp + 0x38], ecx
jne 0x546a8e
cmp dword [edx], 5
jne 0x546a8e
mov edx, dword [esp + 0xa0]
mov ebp, dword [esp + 0xa4]
mov esi, dword [esp + 0xa8]
jmp 0x546b7a
lea eax, [0x55df80]
mov dword [esp], eax
call fcn.0040bd30
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
mov dword [eax + 4], ecx
mov ecx, dword [0x6c4f80]
test ecx, ecx
je 0x546ac2
call fcn.00460ef0
mov dword [edi], edx
mov dword [eax], edx
mov ecx, dword [esp + 0xa4]
lea edx, [ecx + 1]
mov ebx, dword [esp + 0xa0]
cmp edx, 1
ja 0x546ae1
mov ebp, 1
jmp 0x546b21
mov dword [esp + 0x70], ebx
mov dword [esp + 0x50], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], 1
mov dword [esp + 0xc], ecx
lea eax, [0x560820]
mov dword [esp + 0x10], eax
call fcn.004495c0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x70]
mov ebp, ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], edx
mov dword [esp + 0x58], eax
lea esi, [0x560820]
mov dword [esp], esi
lea esi, [edx - 1]
lea edi, [ebp - 1]
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edi, 8
add edi, eax
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
call fcn.004107e0
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x58], edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebp
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.00549a40
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x58]
mov dword [esp + 0xf0], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xf4], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0xf8], edx
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], ecx
add esp, 0xdc
ret
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xf8], edx
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
add esp, 0xdc
ret
mov eax, 1
xor ecx, ecx
call fcn.00460fc0
nop
call fcn.0045faf0
jmp fcn.00546010