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

Disassembly:
sub esp, 0x12c
mov eax, dword [0x5e1040]
xor eax, esp
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0x134]
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
push esi
mov esi, dword [esp + 0x134]
test eax, eax
jne 0x5465a6
lea eax, [esp + 0x2c]
push eax
call fcn.00546fa0
add esp, 4
jmp 0x5465c9
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x2c], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esp + 0x3c], xmm0
movq xmm0, qword [eax + 0x20]
mov eax, dword [eax + 0x28]
movq qword [esp + 0x4c], xmm0
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x13c]
push 5
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00546ed0
add esp, 0xc
mov dword [esp + 0x5c], eax
test eax, eax
jne 0x546602
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004224b5
add esp, 0x12c
ret
push ebx
push ebp
push edi
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.005459e0
mov ebx, eax
mov ebp, edx
mov ecx, ebx
add esp, 8
and ecx, ebp
cmp ecx, 0xffffffff
je 0x54678b
push 0
push ebp
push ebx
push dword [esp + 0x74]
lea eax, [esp + 0x48]
mov dword [esp + 0x130], 1
push eax
call fcn.00546ef0
neg eax
sbb esi, esi
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x80]
lea eax, [esp + 0x54]
push eax
call fcn.00545c70
or edi, 0xffffffff
test eax, eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x8c]
lea eax, [esp + 0x60]
cmovne esi, edi
push eax
call fcn.00545ce0
test eax, eax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x98]
lea eax, [esp + 0x6c]
cmovne esi, edi
push eax
call fcn.00545df0
test eax, eax
lea eax, [esp + 0x54]
push eax
push dword [esp + 0xa4]
lea eax, [esp + 0x78]
cmovne esi, edi
push eax
call fcn.00545df0
add esp, 0x44
test eax, eax
lea eax, [esp + 0x18]
cmovne esi, edi
push eax
push dword [esp + 0x6c]
lea eax, [esp + 0x40]
push eax
call fcn.00545c70
test eax, eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x78]
lea eax, [esp + 0x4c]
cmovne esi, edi
push eax
call fcn.00545c70
test eax, eax
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x84]
lea eax, [esp + 0x58]
cmovne esi, edi
push eax
call fcn.00545ce0
test eax, eax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x90]
lea eax, [esp + 0x64]
cmovne esi, edi
push eax
call fcn.00545ce0
add esp, 0x30
test eax, eax
mov eax, dword [esp + 0x24]
cmovne esi, edi
cmp eax, dword [esp + 0x70]
jne 0x546745
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x74]
jne 0x546745
cmp dword [esp + 0x14], 0
jne 0x546745
cmp dword [esp + 0x18], 0
je 0x54674a
mov esi, 0xffffff99
lea eax, [esp + 0xa8]
push eax
push dword [esp + 0x6c]
lea eax, [esp + 0x40]
push eax
call fcn.00545ce0
test eax, eax
lea eax, [esp + 0xbc]
push eax
push dword [esp + 0x78]
lea eax, [esp + 0x4c]
cmovne esi, edi
push eax
call fcn.00545ce0
add esp, 0x18
mov dword [esp + 0x78], 0
jmp 0x546a98
mov ebp, dword [esp + 0x68]
mov eax, 0xffff
mov dword [esp + 0x10], eax
or ebx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], ebp
push 2
push eax
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x44]
push ebp
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], 0xffffffff
call fcn.00546ef0
add esp, 0x14
test eax, eax
je 0x5467d5
or ebx, 0xffffffff
or ebp, 0xffffffff
or esi, 0xffffffff
jmp 0x54693e
lea eax, [esp + 0x38]
push ebp
push eax
call fcn.00546f40
mov ecx, edx
mov dword [esp + 0x34], eax
add esp, 8
mov dword [esp + 0x30], ecx
test ecx, ecx
ja 0x546802
jb 0x5467fa
cmp eax, 0xffff
jae 0x546802
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
push 0x404
call fcn.0054cf40
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x546823
or ebx, 0xffffffff
or ebp, 0xffffffff
or esi, 0xffffffff
jmp 0x54693e
mov ecx, dword [esp + 0x14]
xor edi, edi
mov esi, 4
cmp edi, ecx
ja 0x546922
mov eax, dword [esp + 0x10]
jb 0x546844
cmp esi, eax
jae 0x546922
add esi, 0x400
adc edi, 0
cmp edi, ecx
jb 0x54685b
ja 0x546857
cmp esi, eax
jbe 0x54685b
mov esi, eax
mov edi, ecx
mov edx, dword [esp + 0x2c]
mov eax, edx
mov ecx, dword [esp + 0x30]
sub eax, esi
mov dword [esp + 0x34], eax
sbb ecx, edi
mov dword [esp + 0x24], ecx
test edi, edi
jb 0x546886
ja 0x54687f
cmp esi, 0x404
jbe 0x546886
mov ebx, 0x404
jmp 0x54688a
mov ebx, edx
sub ebx, eax
push 0
push ecx
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x48]
push eax
call fcn.00546ef0
add esp, 0x14
test eax, eax
jne 0x54691e
push ebx
push ebp
push dword [esp + 0x20]
push dword [esp + 0x60]
call dword [esp + 0x4c]
add esp, 0x10
cmp eax, ebx
jne 0x54691e
lea ecx, [ebx - 3]
test ecx, ecx
jle 0x546904
lea eax, [ebp + 3]
add eax, ecx
mov edx, ecx
lea eax, [eax - 1]
dec ecx
cmp byte [eax - 3], 0x50
jne 0x5468e1
cmp byte [edx + ebp], 0x4b
jne 0x5468e1
cmp byte [eax - 1], 5
jne 0x5468e1
cmp byte [eax], 6
je 0x5468e7
test ecx, ecx
jg 0x5468c4
jmp 0x546904
mov ebx, ecx
xor ecx, ecx
add ebx, dword [esp + 0x34]
mov eax, ebx
mov dword [esp + 0x20], ebx
adc ecx, dword [esp + 0x24]
and eax, ecx
mov dword [esp + 0x1c], ecx
cmp eax, 0xffffffff
jne 0x54691e
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edi, ecx
jb 0x546844
ja 0x54691e
cmp esi, eax
jb 0x546844
mov ebx, dword [esp + 0x20]
push ebp
call fcn.0054c170
mov ebp, dword [esp + 0x20]
mov eax, ebx
and eax, ebp
add esp, 4
cmp eax, 0xffffffff
jne 0x54693c
or esi, eax
jmp 0x54693e
xor esi, esi
push 0
push ebp
push ebx
push dword [esp + 0x74]
lea eax, [esp + 0x48]
mov dword [esp + 0x130], 0
push eax
call fcn.00546ef0
or edi, 0xffffffff
test eax, eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x80]
lea eax, [esp + 0x54]
cmovne esi, edi
push eax
call fcn.00545c70
test eax, eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x8c]
lea eax, [esp + 0x60]
cmovne esi, edi
push eax
call fcn.00545df0
test eax, eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x98]
lea eax, [esp + 0x6c]
cmovne esi, edi
push eax
call fcn.00545df0
test eax, eax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0xa4]
lea eax, [esp + 0x78]
cmovne esi, edi
push eax
call fcn.00545df0
add esp, 0x44
mov dword [esp + 0x74], 0
test eax, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x10]
cmovne esi, edi
push eax
push dword [esp + 0x6c]
lea eax, [esp + 0x40]
push eax
call fcn.00545df0
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x10]
cmovne esi, edi
xor ecx, ecx
cmp eax, dword [esp + 0x70]
jne 0x546a1b
cmp ecx, dword [esp + 0x74]
jne 0x546a1b
cmp dword [esp + 0x14], ecx
jne 0x546a1b
cmp dword [esp + 0x18], ecx
je 0x546a20
mov esi, 0xffffff99
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x6c]
lea eax, [esp + 0x40]
push eax
call fcn.00545c70
test eax, eax
mov dword [esp + 0xb8], 0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xb4], eax
cmovne esi, edi
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x78]
lea eax, [esp + 0x4c]
push eax
call fcn.00545c70
test eax, eax
mov dword [esp + 0xcc], 0
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc8], eax
cmovne esi, edi
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x84]
lea eax, [esp + 0x58]
push eax
call fcn.00545df0
add esp, 0x24
mov edx, dword [esp + 0xb0]
test eax, eax
mov eax, dword [esp + 0xb4]
mov ecx, edx
cmovne esi, edi
mov edi, dword [esp + 0xa8]
add ecx, edi
adc eax, dword [esp + 0xac]
cmp ebp, eax
jb 0x546b38
ja 0x546ac7
cmp ebx, ecx
jb 0x546b38
test esi, esi
jne 0x546b38
mov ecx, ebx
mov dword [esp + 0xa0], ebx
sub ecx, edx
mov dword [esp + 0xa4], ebp
mov eax, ebp
mov dword [esp + 0x118], esi
sbb eax, dword [esp + 0xb4]
sub ecx, edi
push 0x100
sbb eax, dword [esp + 0xb0]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
mov dword [esp + 0x120], esi
call fcn.0054cf40
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x546b34
mov ecx, 0x40
lea esi, [esp + 0x38]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.00545f70
add esp, 4
mov eax, ebx
jmp 0x546b49
push dword [esp + 0x68]
push dword [esp + 0x58]
call dword [esp + 0x54]
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x138]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.004224b5
add esp, 0x12c
ret