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

Disassembly:
sub esp, 0xe0
push ebx
push ebp
push esi
push edi
mov eax, 8
mov edi, 0xac44
mov esi, 0x5622
mov dword [esp + 0x30], eax
mov byte [esp + 0x78], al
mov byte [esp + 0x88], al
mov byte [esp + 0x98], al
mov byte [esp + 0xa8], al
mov byte [esp + 0xb8], al
mov byte [esp + 0xc8], al
mov eax, dword [0x1008a038]
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x44], edi
xor ebx, ebx
mov dword [esp + 0x54], esi
mov dword [esp + 0x74], edi
mov dword [esp + 0x84], esi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xb4], esi
mov ecx, 2
or ebp, 0xffffffff
mov edx, 0x2b11
mov edi, 0x10
mov esi, 1
cmp eax, ebx
mov dword [esp + 0x10], 0x800
mov byte [esp + 0x18], 0x10
mov byte [esp + 0x19], cl
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0x80
mov byte [esp + 0x28], 0x10
mov byte [esp + 0x29], cl
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], edx
mov byte [esp + 0x38], 0x10
mov byte [esp + 0x39], cl
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], 0x400
mov byte [esp + 0x48], 0x10
mov byte [esp + 0x49], 1
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0x40
mov byte [esp + 0x58], 0x10
mov byte [esp + 0x59], 1
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 4
mov dword [esp + 0x64], edx
mov byte [esp + 0x68], 0x10
mov byte [esp + 0x69], 1
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], 0x200
mov byte [esp + 0x79], cl
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], 0x20
mov byte [esp + 0x89], cl
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
mov byte [esp + 0x99], cl
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa0], 0x100
mov byte [esp + 0xa9], 1
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], edi
mov byte [esp + 0xb9], 1
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], edx
mov byte [esp + 0xc9], 1
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xd8], bl
mov byte [esp + 0xd9], bl
mov dword [esp + 0xdc], ebx
je 0x1006004f
cmp dword [0x1008a03c], ebx
je 0x1005ff5b
cmp dword [esp + 0x100], ebx
jne 0x1005ff16
mov eax, dword [esp + 0xf4]
cmp eax, ebx
jle 0x1005feda
xor edx, edx
mov dx, word [0x1008a00e]
cmp edx, eax
jne 0x1006004f
cmp dword [esp + 0xf8], ebx
je 0x1005fef2
cmp word [0x1008a002], cx
jne 0x1006004f
jmp 0x1005feff
cmp word [0x1008a002], si
jne 0x1006004f
mov eax, dword [esp + 0xfc]
cmp eax, ebx
jle 0x1005ff16
cmp dword [0x1008a004], eax
jne 0x1006004f
mov eax, dword [esp + 0x104]
cmp eax, ebx
je 0x1005ff4e
mov ecx, dword [eax]
mov dword [0x1008a000], ecx
mov edx, dword [eax + 4]
mov dword [0x1008a004], edx
mov ecx, dword [eax + 8]
mov dword [0x1008a008], ecx
mov edx, dword [eax + 0xc]
mov dword [0x1008a00c], edx
mov ax, word [eax + 0x10]
mov word [0x1008a010], ax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xe0
ret
lea edx, [esp + 0xe0]
mov dword [esp + 0xe0], edi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x1006004f
mov esi, dword [esp + 0x104]
cmp esi, ebx
jne 0x1005ff90
push 0x12
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov esi, eax
mov eax, 0x800
lea edi, [esp + 0x1c]
test dword [esp + 0xe8], eax
je 0x1006002e
cmp dword [esp + 0x100], ebx
jne 0x1005ffea
mov eax, dword [esp + 0xf4]
cmp eax, ebx
jle 0x1005ffc3
xor ecx, ecx
mov cl, byte [edi - 4]
cmp ecx, eax
jne 0x1006002e
mov eax, dword [esp + 0xf8]
cmp eax, ebx
mov eax, dword [edi]
je 0x1005ffd6
cmp eax, ebx
je 0x1006002e
jmp 0x1005ffda
cmp eax, ebx
jne 0x1006002e
mov eax, dword [esp + 0xfc]
cmp eax, ebx
jle 0x1005ffea
cmp dword [edi - 8], eax
jne 0x1006002e
movzx ax, byte [edi - 4]
movzx cx, byte [edi - 3]
mov word [esi + 0xe], ax
mov edx, dword [edi - 8]
shr ax, 3
imul eax, ecx
mov word [esi + 0xc], ax
and eax, 0xffff
imul eax, edx
push esi
mov word [esi], 1
mov word [esi + 2], cx
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov word [esi + 0x10], bx
call fcn.10060080
add esp, 4
test eax, eax
je 0x1006005c
mov eax, dword [edi + 4]
add edi, 0x10
cmp eax, ebx
jne 0x1005ff99
cmp dword [esp + 0x104], ebx
jne 0x1006004f
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret
cmp dword [esp + 0x104], ebx
jne 0x1006006f
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xe0
ret