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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x124]
mov ecx, dword [edi + 0x118]
mov dword [ebx + 0x98], esi
dec dword [edi + 0x124]
mov eax, dword [ebx + 0x28]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ecx
cmp eax, 0xffffffff
je 0x1005a0f0
mov dword [ecx + esi*8], eax
push dword [ebx + 0x44]
mov eax, dword [ebx + 0x28]
jmp 0x1005a0fc
mov eax, dword [ebx + 0x20]
mov dword [ecx + esi*8], eax
push dword [ebx + 0x40]
mov eax, dword [ebx + 0x20]
mov ecx, dword [edi + 0xcc]
imul eax, eax, 0xc
add eax, dword [ecx + 0x24c]
push eax
call fcn.1004ea7b
mov ecx, dword [ebp - 8]
mov dword [ebp + 8], eax
movzx eax, ax
lea esi, [ecx + esi*8 + 6]
mov word [esi], ax
mov eax, dword [edi + 0xcc]
mov edx, dword [eax + 0x254]
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [edi + eax*8]
mov ecx, dword [ebx]
mov eax, dword [edx + eax*4]
mov edi, dword [ebp - 4]
mov dword [ebp - 0x18], esi
cmp eax, dword [edx + ecx*4]
je 0x1005a154
mov ecx, dword [ebp + 8]
movzx eax, cx
or eax, 0x4000
mov word [esi], ax
mov edx, dword [ebx + 0x10]
cmp edx, 0xffffffff
je 0x1005a178
mov eax, dword [edi + 0xcc]
mov ecx, dword [eax + 0x254]
mov eax, dword [ebx + 0x38]
mov eax, dword [ecx + eax*4]
cmp eax, dword [ecx + edx*4]
je 0x1005a178
or word [esi], 0x8000
mov eax, dword [ebx + 0x5c]
cmp eax, dword [ebx + 0x6c]
jne 0x1005a184
or word [esi], 0x10
mov eax, dword [ebx + 0x6c]
cmp eax, dword [ebx + 0x74]
jne 0x1005a190
or word [esi], 0x40
mov eax, dword [ebx + 0x74]
cmp eax, dword [ebx + 0x64]
jne 0x1005a19c
or word [esi], 0x20
mov eax, dword [ebx + 0x70]
cmp eax, dword [ebx + 0x60]
jne 0x1005a1a9
or word [esi], 0x80
mov eax, dword [ebx + 0x70]
cmp eax, dword [ebx + 0x78]
jne 0x1005a1b6
or word [esi], 0x200
mov eax, dword [ebx + 0x78]
cmp eax, dword [ebx + 0x68]
jne 0x1005a1c3
or word [esi], 0x100
mov eax, dword [edi + 0xcc]
mov ecx, dword [eax + 0x24c]
mov eax, dword [ebx]
or dword [ebp - 0x20], 0xffffffff
imul eax, eax, 3
add eax, dword [ebx + 8]
or dword [ebp + 8], 0xffffffff
mov edx, dword [ecx + eax*4]
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], edx
cmp eax, 0xffffffff
je 0x1005a1fc
imul eax, eax, 3
add eax, dword [ebx + 0x2c]
mov eax, dword [ecx + eax*4]
mov dword [ebp + 8], eax
mov ecx, dword [ebx + 0x20]
mov dword [ebp - 0x10], 3
cmp ecx, 0xffffffff
je 0x1005a224
mov eax, dword [ebx + 0x24]
imul ecx, ecx, 3
inc eax
xor edx, edx
div dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
add edx, ecx
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x1c]
jmp 0x1005a227
mov eax, dword [ebp - 0x20]
cmp dword [ebp + 8], edx
je 0x1005a23c
cmp edx, eax
je 0x1005a237
or word [esi], 0x800
jmp 0x1005a23c
or word [esi], 0x400
mov ecx, dword [ebx + 0x10]
cmp ecx, 0xffffffff
je 0x1005a2b6
mov eax, dword [edi + 0xcc]
imul ecx, ecx, 3
or dword [ebp - 0x20], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
mov edx, dword [eax + 0x24c]
add ecx, dword [ebx + 0x18]
cmp dword [ebx + 0x38], 0xffffffff
mov dword [ebp + 8], edx
je 0x1005a284
mov eax, dword [ebx + 0x3c]
inc eax
xor edx, edx
div dword [ebp - 0x10]
mov eax, dword [ebx + 0x38]
imul eax, eax, 3
add edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x30]
cmp eax, 0xffffffff
je 0x1005a297
imul eax, eax, 3
add eax, dword [ebx + 0x34]
mov eax, dword [edx + eax*4]
jmp 0x1005a29a
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x14]
cmp edi, dword [edx + ecx*4]
mov edi, dword [ebp - 4]
je 0x1005a2b6
cmp dword [edx + ecx*4], eax
je 0x1005a2b1
or word [esi], 0x2000
jmp 0x1005a2b6
or word [esi], 0x1000
cmp dword [ebx + 0x10], 0xffffffff
jne 0x1005a2ca
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
and word [ecx + eax*8 + 4], 0
jmp 0x1005a311
push 1
push dword [edi + 0xcc]
lea ecx, [ebp - 0x3c]
push dword [ebx + 0x60]
push dword [ebx + 0x28]
call fcn.1004daa2
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
and word [edi + eax*8 + 4], 0
and dword [ebp + 8], 0
mov esi, eax
lea ecx, [ebp - 0x3c]
call fcn.100546b4
mov ecx, dword [ebp + 8]
inc ecx
mov word [edi + esi*8 + 4], cx
mov dword [ebp + 8], ecx
cmp eax, dword [ebx + 0x38]
jne 0x1005a2f2
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 4]
test word [esi], 0x800
je 0x1005a335
mov ecx, dword [ebx]
mov eax, dword [edi + 0xcc]
imul ecx, ecx, 3
add ecx, dword [ebx + 8]
mov eax, dword [eax + 0x24c]
mov eax, dword [eax + ecx*4]
mov dword [ebx + 0x84], eax
test word [esi], 0x2000
je 0x1005a35a
mov ecx, dword [ebx + 0x10]
mov eax, dword [edi + 0xcc]
imul ecx, ecx, 3
add ecx, dword [ebx + 0x18]
mov eax, dword [eax + 0x24c]
mov eax, dword [eax + ecx*4]
mov dword [ebx + 0x90], eax
cmp dword [ebx + 0x10], 0xffffffff
movzx eax, word [esi]
jne 0x1005a37b
test al, 0x90
jne 0x1005a36d
mov eax, dword [ebx + 0x6c]
mov dword [ebx + 0x7c], eax
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x80], eax
jmp 0x1005a3ff
test al, al
js 0x1005a391
test al, 0x40
je 0x1005a387
test al, 0x20
jne 0x1005a391
test al, 0x10
jne 0x1005a391
mov eax, dword [ebx + 0x6c]
mov dword [ebx + 0x7c], eax
movzx eax, word [esi]
test al, al
js 0x1005a3af
test eax, 0x200
je 0x1005a3a6
test eax, 0x100
jne 0x1005a3af
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x80], eax
test byte [esi], 0x80
je 0x1005a3bd
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x80], eax
movzx eax, word [esi]
test eax, 0x100
jne 0x1005a3d4
test al, 0x60
jne 0x1005a3d4
mov eax, dword [ebx + 0x74]
mov dword [ebx + 0x88], eax
movzx eax, word [esi]
test eax, 0x300
jne 0x1005a3e7
mov eax, dword [ebx + 0x78]
mov dword [ebx + 0x8c], eax
test word [esi], 0x100
je 0x1005a3ff
mov eax, dword [ebx + 0x78]
cmp dword [ebx + 0x80], eax
je 0x1005a3ff
mov dword [ebx + 0x8c], eax
mov ecx, dword [ebx + 0x90]
cmp ecx, 0xffffffff
je 0x1005a41d
movzx eax, word [ebx + 0x96]
push eax
push ecx
push dword [ebp + 0xc]
mov ecx, edi
call fcn.1005524b
mov ecx, dword [ebx + 0x88]
cmp ecx, 0xffffffff
je 0x1005a43b
movzx eax, word [ebx + 0x96]
push eax
push ecx
push dword [ebp + 0xc]
mov ecx, edi
call fcn.1005524b
mov ecx, dword [ebx + 0x8c]
cmp ecx, 0xffffffff
je 0x1005a459
movzx eax, word [ebx + 0x96]
push eax
push ecx
push dword [ebp + 0xc]
mov ecx, edi
call fcn.1005524b
mov ecx, dword [ebx + 0x84]
cmp ecx, 0xffffffff
je 0x1005a477
movzx eax, word [ebx + 0x94]
push eax
push ecx
push dword [ebp + 0xc]
mov ecx, edi
call fcn.1005524b
cmp dword [ebx + 0x7c], 0xffffffff
je 0x1005a492
movzx eax, word [ebx + 0x94]
push eax
push dword [ebx + 0x7c]
mov ecx, edi
push dword [ebp + 0xc]
call fcn.1005524b
mov ecx, dword [ebx + 0x80]
cmp ecx, 0xffffffff
je 0x1005a4b0
movzx eax, word [ebx + 0x94]
push eax
push ecx
push dword [ebp + 0xc]
mov ecx, edi
call fcn.1005524b
test word [esi], 0x8000
je 0x1005a4e9
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xcc]
mov esi, dword [ebx + 0x10]
mov eax, dword [eax + 0x258]
mov edx, dword [edi + 0x150]
mov ax, word [eax + esi*2]
mov ecx, dword [ecx + 0x148]
mov esi, dword [ebp - 0x18]
mov word [ecx + edx*2], ax
dec dword [edi + 0x150]
mov edi, dword [ebp - 4]
test word [esi], 0x4000
je 0x1005a51b
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xcc]
mov esi, dword [ebx]
mov eax, dword [eax + 0x258]
mov edx, dword [edi + 0x150]
mov ax, word [eax + esi*2]
mov ecx, dword [ecx + 0x148]
mov word [ecx + edx*2], ax
dec dword [edi + 0x150]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8