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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov esi, dword [edi + 8]
mov eax, dword [edi]
add esi, 0x28
push 8
pop edx
mov ecx, esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esi
call fcn.1005ad48
mov dword [edi + 0x14], ebx
inc ebx
cmp dword [edi + 0x5c], 7
jne 0x1005ae28
mov eax, dword [ebp - 4]
mov byte [eax + 0x38], bl
jmp 0x1005b137
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x64]
push 3
pop ecx
and eax, ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x1005ae82
mov eax, dword [edi + 8]
add eax, 0x168
mov dword [ebp - 0x10], eax
test byte [eax + 0x1c], 0x10
je 0x1005ae5f
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 4]
shr ecx, 2
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
jmp 0x1005ae62
mov ecx, dword [ebp - 0xc]
xor edx, edx
test ecx, ecx
jle 0x1005ae82
mov ebx, dword [ebp - 8]
mov esi, dword [edi + 0x1c]
mov eax, dword [ebx + edx*4]
add esi, dword [eax + 4]
inc edx
cmp edx, ecx
jl 0x1005ae6e
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x18]
inc ebx
push 2
pop ecx
mov edx, dword [edi + 0x58]
mov dword [ebp - 0x18], edx
lea eax, [edx + 1]
mov dword [edi + 0x58], eax
cmp edx, dword [ebp - 0x14]
jge 0x1005b130
cmp dword [ebp - 0x1c], ecx
jne 0x1005aeb0
mov eax, dword [edi + 4]
mov ecx, edx
imul ecx, ecx, 0x14
push 2
cmp byte [ecx + eax], 0x96
pop ecx
jne 0x1005ae85
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0
je 0x1005aee6
push 9
pop ecx
mov edx, 0x1017bf98
mov dword [edi + 0x5c], ecx
call fcn.1008a3fd
push eax
push 0x101903e0
push dword [ebp - 4]
lea eax, [edi + 0x38]
push eax
call fcn.10047044
add esp, 0x10
jmp 0x1005b137
cmp edx, dword [edi + 0x1c]
jge 0x1005aef9
imul edx, edx, 0x14
add edx, dword [edi + 4]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x18]
jmp 0x1005af2d
mov eax, dword [ebp - 8]
sub edx, dword [edi + 0x1c]
mov eax, dword [eax]
xor ecx, ecx
mov eax, dword [eax + 4]
cmp edx, eax
jl 0x1005af1d
mov ebx, dword [ebp - 8]
sub edx, eax
inc ecx
mov eax, dword [ebx + ecx*4]
mov eax, dword [eax + 4]
cmp edx, eax
jge 0x1005af0d
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax + ecx*4]
mov ecx, edx
imul ecx, ecx, 0x14
add ecx, dword [eax]
mov dword [ebp - 4], ecx
mov ecx, dword [edi + 0x64]
and cl, 3
push 4
pop eax
cmp cl, bl
jne 0x1005aff7
push eax
mov eax, edx
cdq
mov dword [esi + 0x10], eax
pop ecx
mov word [esi + 0x1c], cx
mov byte [esi + 0x1e], bl
mov dword [esi + 0x14], edx
mov eax, 0xa02
mov word [esi + 0x44], ax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
mov ecx, dword [eax*4 + 0x10189e58]
mov dword [esi + 0x2c], ecx
call fcn.1004884a
mov ecx, dword [ebp - 4]
mov dword [esi + 0x40], eax
mov byte [esi + 0x46], 3
mov byte [esi + 0x47], bl
add esi, 0x50
cmp byte [ecx + 1], 0xee
jne 0x1005affc
mov edx, dword [ebp - 0xc]
xor eax, eax
test edx, edx
jle 0x1005afac
mov edx, dword [ecx + 0x10]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x1c]
cmp dword [ecx + eax*4], edi
je 0x1005afa6
inc eax
cmp eax, edx
jl 0x1005af9c
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
cmp eax, edx
jne 0x1005affc
mov ecx, dword [ebp - 0x10]
xor eax, eax
test edx, edx
setne al
lea edx, [edx*4 + 4]
push eax
call fcn.1005954a
pop ecx
push 4
test eax, eax
jne 0x1005aff2
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0x10]
lea ecx, [edx*4 + 4]
or word [eax + 0x1c], 0x10
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp - 4]
jmp 0x1005affe
mov ecx, dword [ebp - 4]
jmp 0x1005afff
push 4
pop eax
mov word [esi + 0x1c], ax
mov eax, dword [ecx + 4]
cdq
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov byte [esi + 0x1e], bl
push 4
pop eax
mov word [esi + 0x44], ax
mov eax, dword [ecx + 8]
cdq
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
push 4
mov byte [esi + 0x46], bl
pop eax
mov word [esi + 0x6c], ax
mov eax, dword [ecx + 0xc]
cdq
push 0
mov dword [esi + 0x64], edx
push 0x20
pop edx
lea ecx, [esi + 0x78]
mov dword [esi + 0x60], eax
mov byte [esi + 0x6e], bl
call fcn.1005954a
pop ecx
test eax, eax
jne 0x1005b137
mov edx, dword [esi + 0x7c]
mov eax, 0x602
push ecx
mov ecx, dword [ebp - 4]
mov word [esi + 0x94], ax
call fcn.1005aa80
pop ecx
mov ecx, dword [esi + 0x7c]
cmp eax, ecx
je 0x1005b082
push 0
push ebx
push 0xffffffffffffffff
mov edx, eax
lea ecx, [esi + 0x78]
call fcn.10059c88
add esp, 0xc
jmp 0x1005b093
call fcn.1004884a
mov dword [esi + 0x90], eax
mov byte [esi + 0x97], bl
push 3
pop ecx
mov byte [esi + 0x96], cl
mov eax, dword [edi + 0x64]
and al, cl
cmp al, bl
jne 0x1005b10c
push 0
push 4
pop eax
mov edx, eax
lea ecx, [esi + 0xa0]
call fcn.1005954a
pop ecx
test eax, eax
jne 0x1005b137
mov eax, 0x602
mov word [esi + 0xbc], ax
mov eax, dword [ebp - 4]
mov dword [esi + 0xb8], 2
movzx eax, byte [eax + 3]
push eax
push 0x101917a4
push dword [esi + 0xa4]
push 3
call fcn.1004807a
add esp, 0x10
mov byte [esi + 0xbf], bl
push 3
pop ecx
mov byte [esi + 0xbe], cl
mov word [esi + 0xe4], bx
mov byte [esi + 0xe6], 5
mov ax, word [edi + 0x64]
and ax, cx
push 2
dec ax
pop ecx
sub cx, ax
mov eax, dword [edi + 8]
shl cx, 2
add eax, 0x28
mov word [edi + 0x2c], cx
mov dword [edi + 0x14], eax
push 0x64
jmp 0x1005b132
push 0x65
and dword [edi + 0x5c], 0
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret