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

Disassembly:
push 0xffffffffffffffff
push 0x4cdcf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov al, byte [esp + 0x70]
push ebx
push ebp
push esi
mov ebx, ecx
xor esi, esi
push edi
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], esi
mov byte [esp + 0x30], al
call fcn.00406ae1
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov cl, byte [esp + 0x80]
push esi
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
mov dword [esp + 0x68], esi
call fcn.00406ae1
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov edx, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
and edx, 0xffff
mov byte [esp + 0x64], 1
and edx, 0x8000001f
jns 0x45cf8f
dec edx
or edx, 0xffffffe0
inc edx
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x2c]
shl edx, 3
and edx, 0xffff
and eax, 0xffff
or edx, eax
push edx
push 0x4f4d70
push ecx
call fcn.0042fd80
mov edx, dword [esp + 0x88]
add esp, 0xc
and edx, 0xffff00
cmp edx, 0x60000
jne 0x45d04f
mov al, byte [esp + 0x80]
push esi
lea ecx, [esp + 0x48]
mov byte [esp + 0x48], al
call fcn.00406ae1
mov edi, 0x501a04
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x64], 2
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x54], esi
push ecx
push 0x501a04
lea ecx, [esp + 0x4c]
mov dword [esp + 0x60], esi
call fcn.00406978
mov ecx, dword [0x4d58e4]
lea edx, [esp + 0x44]
push ecx
push esi
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], 3
call fcn.0040b3c3
mov eax, dword [esp + 0x54]
mov byte [esp + 0x64], 1
cmp eax, esi
je 0x45d044
push eax
call fcn.004bcb64
add esp, 4
mov dword [esp + 0x54], esi
push 1
lea ecx, [esp + 0x48]
call fcn.00406ae1
mov eax, dword [0x4d58e4]
lea ecx, [esp + 0x2c]
push eax
push esi
push ecx
mov ecx, dword [esp + 0x8c]
call fcn.0040b3c3
xor edi, edi
cmp bp, 0xffff
je 0x45d136
jmp 0x45d078
xor esi, esi
cmp bp, si
jne 0x45d096
lea edx, [esp + 0x14]
push 0x4f4d6c
push edx
call fcn.0042fd80
add esp, 8
mov esi, 0xffff
jmp 0x45d0c1
mov eax, ebp
xor ecx, ecx
and eax, 0xffff
lea edx, [esp + 0x14]
lea eax, [eax + eax*2]
mov cl, byte [ebx + eax*8 + 0x70]
lea esi, [ebx + eax*8]
push ecx
push 0x4f4d64
push edx
call fcn.0042fd80
movzx si, byte [esi + 0x62]
add esp, 0xc
mov eax, dword [0x4d58e4]
lea ecx, [esp + 0x14]
push eax
push 0
push ecx
mov ecx, dword [esp + 0x8c]
call fcn.0042f900
test di, di
jne 0x45d127
mov eax, ebp
and eax, 0xffff
lea edx, [eax + eax*2 + 0xc]
cmp byte [ebx + edx*8], 0
jne 0x45d111
lea eax, [eax + eax*2]
xor ecx, ecx
lea edx, [esp + 0x14]
mov cl, byte [ebx + eax*8 + 0x63]
push ecx
push 0x4f4d64
push edx
call fcn.0042fd80
add esp, 0xc
mov edi, 1
mov eax, dword [0x4d58e4]
lea ecx, [esp + 0x14]
push eax
push 0
push ecx
lea ecx, [esp + 0x38]
call fcn.0042f900
cmp si, 0xffff
mov ebp, esi
jne 0x45d076
xor esi, esi
mov edi, dword [esp + 0x6c]
mov dl, byte [esp + 0x80]
push esi
mov ecx, edi
mov byte [edi], dl
call fcn.00406ae1
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
mov eax, dword [0x4d58e4]
lea ecx, [esp + 0x2c]
push eax
push esi
push ecx
mov ecx, edi
mov byte [esp + 0x70], 4
call fcn.0040b3c3
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x45d17e
push eax
call fcn.004bcb64
add esp, 4
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x18]
cmp ecx, esi
je 0x45d1a2
mov al, byte [ecx - 1]
test al, al
je 0x45d198
cmp al, 0xff
je 0x45d198
dec al
mov byte [ecx - 1], al
jmp 0x45d1a2
dec ecx
push ecx
call fcn.004bcb64
add esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], esi
cmp eax, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
je 0x45d1c3
push eax
call fcn.004bcb64
add esp, 4
mov dword [esp + 0x3c], esi
mov ecx, dword [esp + 0x30]
cmp ecx, esi
je 0x45d1e7
mov al, byte [ecx - 1]
test al, al
je 0x45d1dd
cmp al, 0xff
je 0x45d1dd
dec al
mov byte [ecx - 1], al
jmp 0x45d1e7
dec ecx
push ecx
call fcn.004bcb64
add esp, 4
mov ecx, dword [esp + 0x5c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0x18