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

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
push edi
movsx ebp, word [esp + 0x78]
or eax, 0xffffffff
mov esi, ebp
imul esi, esi, 0x678
add esi, 0x725350
mov word [esi + 2], ax
mov word [esi + 4], ax
xor ebx, ebx
mov dword [esi + 0x84], eax
test cl, 2
mov eax, ebx
setne al
mov dl, cl
and dl, 4
mov word [esi + 0x38], cx
mov byte [esi + 8], bl
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
inc eax
mov word [esp + 0x16], ax
mov eax, dword [esp + 0x16]
add eax, eax
neg dl
mov word [esp + 0x20], ax
movzx eax, ax
mov word [esi], bx
mov byte [esi + 9], bl
sbb edx, edx
and edx, 0x5622
add edx, 0x5622
imul eax, edx
mov dword [esp + 0x18], edx
xor edx, edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x1c], eax
lea eax, [eax + eax*2]
mov dword [esp + 0x64], edx
mov dword [esi + 0x68], eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x60], eax
mov al, byte [0x746041]
cmp al, bl
mov dword [esp + 0x70], edx
mov dl, byte [0x746040]
mov word [esp + 0x14], 1
mov word [esp + 0x22], 0x10
mov dword [esp + 0x50], 0x24
mov dword [esp + 0x54], 0x100a0
je 0x546bfb
cmp dl, bl
jne 0x546c03
mov dword [esp + 0x54], 0x100a8
and ecx, 1
mov dword [esp + 0x10], ecx
je 0x546cc0
cmp dword [0x74604c], 3
mov ecx, dword [esp + 0x54]
jne 0x546c25
or ecx, 0x210
jmp 0x546c28
or ecx, 0x10
cmp al, bl
mov dword [esp + 0x54], ecx
je 0x546c34
cmp dl, bl
jne 0x546c5b
mov ecx, dword [0x64e29c]
mov edx, dword [0x64e2a0]
mov eax, dword [0x64e2a4]
mov dword [esp + 0x64], ecx
mov ecx, dword [0x64e2a8]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
mov eax, dword [0x74602c]
mov edx, dword [eax]
push ebx
lea edi, [esi + 0x670]
push edi
lea ecx, [esp + 0x58]
push ecx
push eax
call dword [edx + 0xc]
test eax, eax
jl 0x546cb6
mov eax, dword [edi]
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], 0x14
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x546cb6
test byte [esp + 0x28], 4
je 0x546cd8
inc word [0x746044]
jmp 0x546cd8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x64
ret
mov eax, dword [0x74602c]
mov ecx, dword [eax]
push ebx
lea edi, [esi + 0x670]
push edi
lea edx, [esp + 0x58]
push edx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x546e01
cmp word [esp + 0x10], bx
je 0x546db7
mov edi, dword [edi]
mov ecx, dword [edi]
lea eax, [esi + 0x674]
push eax
push 0x64e2bc
push edi
mov dword [esp + 0x1c], eax
call dword [ecx]
test eax, eax
jl 0x546daf
mov edx, dword [0x696718]
xor eax, eax
cmp word [0x746050], bx
mov ecx, 0xb
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
jne 0x546d63
mov eax, dword [esp + 0x78]
mov edi, esi
mov word [0x746050], 2
call fcn.00551680
cmp eax, 0xffffffff
mov dword [0x74604c], eax
je 0x546d63
mov word [0x746050], 1
jmp 0x546d6d
cmp word [0x746050], 1
jne 0x546d94
mov ax, word [esp + 0x78]
cmp ax, word [0x746044]
jge 0x546d94
mov edx, ebp
call fcn.00551870
test eax, eax
jne 0x546d94
call fcn.00551830
mov word [0x746050], 2
mov ecx, dword [esp + 0x78]
push ebx
push ebx
push ebx
push ebx
push ecx
lea edi, [esp + 0x38]
xor bl, bl
call fcn.00547680
add esp, 0x14
xor ebx, ebx
jmp 0x546dbd
mov edx, dword [esp + 0x10]
mov dword [edx], ebx
jmp 0x546dbd
mov dword [esi + 0x674], ebx
mov ecx, dword [esp + 0x78]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
push ebx
push ecx
lea edi, [esp + 0x2c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], 0x3f800000
mov dword [esp + 0x30], 0x3f800000
call fcn.00547960
add esp, 8
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x64
ret