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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffe0
sub esp, 0x118
mov eax, dword [0xa70c50]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 8
push eax
lea eax, [esp + 0x100]
mov dword [esp + 0x24], esi
push 0x21
push eax
call fcn.0063a6c0
movzx edx, byte [esp + 0x108]
mov ecx, 0xff
and edx, 0x7f
add edx, edx
mov eax, edx
sub ecx, edx
shr eax, 7
dec eax
mov edi, eax
and eax, edx
not edi
and ecx, edi
or ecx, eax
mov eax, ecx
and ecx, 1
shr eax, 1
add eax, ecx
push eax
lea eax, [esp + 0x94]
push 0xa45000
push eax
call fcn.006385d0
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.0062ccf0
and edi, 1
lea eax, [esp + 0xfc]
dec edi
shr edi, 0x1f
dec edi
push edi
push eax
lea eax, [esp + 0xcc]
push eax
call fcn.00639460
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xb4]
mov edi, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0xe8]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x44], eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
or dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x44]
or ecx, edi
mov dword [esp + 0x90], 1
or ecx, dword [esp + 0xcc]
or ecx, dword [esp + 0xc8]
or ecx, dword [esp + 0xc4]
or ecx, dword [esp + 0xc0]
or ecx, dword [esp + 0xbc]
or ecx, dword [esp + 0xb8]
or ecx, dword [esp + 0xb4]
or ecx, dword [esp + 0xb0]
or ecx, eax
mov dword [esp + 0x94], 0
or ecx, edx
mov dword [esp + 0x98], 0
or ecx, dword [esp + 0xe4]
or ecx, dword [esp + 0xe0]
or ecx, dword [esp + 0xdc]
mov dword [esp + 0x9c], 0xffffffff
mov dword [esp + 0xa0], 0xffffffff
mov dword [esp + 0xa4], 0xffffffff
lea eax, [ecx - 1]
mov dword [esp + 0xa8], 0xfffffffe
shr eax, 0x1f
not ecx
shr ecx, 0x1f
and eax, ecx
mov dword [esp + 0xac], 0
neg eax
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00639460
add esp, 0x3c
mov dword [esp + 0x14], 0xa46000
mov esi, 6
mov dword [esp + 0x18], 0x24
mov eax, esi
mov ecx, esi
shr eax, 3
and ecx, 7
add esi, 7
movzx edx, byte [esp + eax + 0xf9]
movzx eax, byte [esp + eax + 0xf8]
shl edx, 8
or edx, eax
shr edx, cl
mov ecx, 0xff
movzx edx, dl
mov eax, edx
sub ecx, edx
shr eax, 7
dec eax
mov edi, eax
and eax, edx
not edi
and ecx, edi
or ecx, eax
mov eax, ecx
and ecx, 1
shr eax, 1
add eax, ecx
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x88]
push eax
call fcn.006385d0
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0xe8]
push eax
call fcn.0062ccf0
and edi, 1
lea eax, [esp + 0xec]
dec edi
shr edi, 0x1f
dec edi
push edi
push eax
lea eax, [esp + 0xbc]
push eax
call fcn.00639460
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0x44]
push eax
push eax
call fcn.0062d3e0
add dword [esp + 0x40], 0x1000
add esp, 0x2c
sub dword [esp + 0x18], 1
jne 0x6392e8
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x11c]
pop edi
mov dword [esi], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x58]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x60]
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x64]
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x68]
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x70]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x74]
mov dword [esi + 0x58], eax
mov eax, dword [esp + 0x78]
mov dword [esi + 0x5c], eax
pop esi
xor ecx, esp
call fcn.0063ad65
mov esp, ebp
pop ebp
ret