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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi]
cmp word [eax + 0xa76], bx
mov eax, dword [ebp + 8]
jne 0x100061c6
test eax, eax
jne 0x100061c6
call fcn.100088d0
test eax, eax
jne 0x10005f01
mov eax, dword [esi]
pop edi
pop esi
pop ebx
or dword [eax + 0x66], 0x20
xor eax, eax
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x160]
movzx ecx, word [eax + 0x10]
mov eax, dword [esi]
add ecx, 0x18
mov eax, dword [eax + 0x13a8c]
add eax, ecx
mov ecx, esi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x164]
push dword [eax + 0x14]
call fcn.10009190
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x10005f44
mov dword [esi + 0x24], ebx
xor eax, eax
mov dword [esi + 0x1c], eax
mov ecx, esi
mov eax, dword [esi + 0x164]
push dword [eax + 0x10]
call fcn.10009190
mov edi, dword [esi + 0x24]
mov dword [ebp - 4], edi
cmp edi, 0xffffffff
jne 0x10005f6a
xor edi, edi
mov dword [esi + 0x24], ebx
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x18]
add ecx, 0xffffffd8
mov edx, dword [esi + 4]
add eax, ecx
xor ecx, ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x14], eax
mov dword [esi + 8], edx
mov dword [esi + 0x30], eax
test edx, edx
je 0x10005fb7
mov edx, dword [esi + 0x168]
mov edi, dword [esi + 0xc]
add edx, 0x14
mov eax, dword [edx]
cmp ebx, eax
ja 0x10005fa8
mov ebx, eax
mov dword [esi + 0x30], edi
movzx eax, cx
inc eax
mov dword [esi + 8], eax
inc ecx
add edx, 0x28
add edi, 0x28
cmp ecx, dword [esi + 4]
jb 0x10005f96
mov edi, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0xc]
test eax, eax
je 0x10005fca
lea eax, [eax + eax*4]
lea eax, [eax - 5]
lea eax, [ecx + eax*8]
mov dword [esi + 0x28], eax
test edi, edi
jne 0x10005fd5
xor eax, eax
jmp 0x10005fde
lea eax, [edi - 1]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
cmp dword [esi + 0x154], 0
mov ecx, esi
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x164]
je 0x1000601e
push dword [eax + 0x70]
call fcn.10009190
mov dword [esi + 0x10], eax
mov ecx, esi
mov eax, dword [esi + 0x164]
push dword [eax + 0x78]
call fcn.10009190
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x164]
mov eax, dword [eax + 0x80]
jmp 0x10006045
push dword [eax + 0x60]
call fcn.10009190
mov dword [esi + 0x10], eax
mov ecx, esi
mov eax, dword [esi + 0x164]
push dword [eax + 0x68]
call fcn.10009190
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x164]
mov eax, dword [eax + 0x70]
push eax
mov ecx, esi
call fcn.10009190
mov dword [esi + 0x38], eax
lea edi, [esi + 0x3c]
mov eax, dword [esi + 0x160]
mov ecx, dword [esi]
push 0x28
movzx edx, word [eax + 0x10]
mov eax, dword [esi + 0x18]
add eax, 0x18
add eax, edx
cmp eax, 0x400
ja 0x1000611e
push dword [esi + 0x168]
push edi
call fcn.10004c40
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x100060a4
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x168]
push 0x28
lea eax, [eax + ecx*8]
mov ecx, dword [esi]
add eax, 0xffffffd8
push eax
lea eax, [esi + 0x64]
push eax
call fcn.10004c40
mov eax, dword [esi + 0x20]
test eax, eax
je 0x100060cb
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x168]
push 0x28
lea eax, [eax + ecx*8]
mov ecx, dword [esi]
add eax, 0xffffffd8
push eax
lea eax, [esi + 0x8c]
push eax
call fcn.10004c40
mov eax, dword [esi + 8]
push 0x28
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x168]
lea eax, [eax + ecx*8]
mov ecx, dword [esi]
add eax, 0xffffffd8
push eax
lea eax, [esi + 0x104]
push eax
call fcn.10004c40
mov ecx, dword [esi]
mov edi, 1
cmp edi, dword [esi + 4]
sbb eax, eax
and eax, 0x28
add eax, 0x28
cmp edi, dword [esi + 4]
push eax
push dword [esi + 0x168]
sbb eax, eax
and eax, 0xffffffd8
add eax, 0xdc
add eax, esi
push eax
call fcn.10004c40
jmp 0x1000618b
push edi
push dword [esi + 0xc]
call fcn.10004380
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x1000613c
push 0x28
lea eax, [esi + 0x64]
push eax
push ecx
mov ecx, dword [esi]
call fcn.10004380
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x10006154
push 0x28
lea eax, [esi + 0x8c]
push eax
push ecx
mov ecx, dword [esi]
call fcn.10004380
mov ecx, dword [esi]
lea eax, [esi + 0x104]
push 0x28
push eax
push dword [esi + 0x30]
call fcn.10004380
cmp dword [esi + 4], 1
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
jbe 0x1000617c
push 0x50
lea eax, [esi + 0xb4]
jmp 0x10006184
push 0x28
lea eax, [esi + 0xdc]
push eax
push edx
call fcn.10004380
mov eax, dword [esi]
mov ecx, dword [esi + 0x118]
add ecx, dword [esi + 0x114]
mov dword [eax + 0x1cd96], ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x1cd96]
mov ecx, dword [eax + 0x56]
cmp edx, ecx
jae 0x100061bc
test edx, edx
je 0x100061bc
sub ecx, edx
mov dword [eax + 0x1cd9a], ecx
jmp 0x100061c6
mov dword [eax + 0x1cd9a], 0
mov ecx, dword [esi]
cmp word [ecx + 0xa76], 0
jne 0x100061dd
mov eax, dword [esi + 0x164]
mov edi, dword [eax + 0x10]
jmp 0x10006226
mov eax, dword [esi + 4]
xor edi, edi
mov ebx, dword [ecx + 0x13a7c]
mov dword [ebp - 4], eax
test eax, eax
je 0x10006226
mov ecx, dword [esi + 0x168]
add ecx, 0x10
mov edx, dword [ecx + 4]
cmp ebx, edx
jb 0x10006219
mov eax, dword [ecx]
add eax, edx
cmp ebx, eax
jae 0x10006216
test ebx, ebx
je 0x1000620f
test edx, edx
je 0x10006216
mov edi, dword [ecx - 4]
sub edi, edx
add edi, ebx
mov eax, dword [ebp - 4]
add ecx, 0x28
sub eax, 1
mov dword [ebp - 4], eax
jne 0x100061f8
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
mov dword [ecx + 0x13a88], edi
mov eax, dword [esi]
mov dword [eax + 0x13a84], edi
test ebx, ebx
je 0x10006253
push edi
mov ecx, esi
call fcn.10005910
mov ecx, dword [esi]
mov dword [ecx + 0x13a88], eax
mov eax, dword [esi]
mov edi, dword [eax + 0x13a88]
push edi
mov ecx, esi
call fcn.10009190
mov ecx, eax
test edi, edi
je 0x10006297
test ecx, ecx
jne 0x10006297
mov edx, dword [esi]
cmp word [edx + 0xa76], ax
jne 0x10006297
test ebx, ebx
jne 0x10006297
mov eax, dword [esi + 0x164]
cmp dword [eax + 0x10], ebx
je 0x10006297
or dword [edx + 0x66], 0x20
mov eax, dword [esi]
pop edi
pop esi
pop ebx
mov dword [eax + 0x13a7c], ecx
lea eax, [ecx + 1]
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi]
test ebx, ebx
jne 0x100062af
pop edi
mov dword [eax + 0x13a7c], ecx
lea eax, [ebx + 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [eax + 0x13a80], ecx
mov edx, dword [esi]
cmp ecx, dword [edx + 0x56]
jae 0x100062d8
mov ecx, dword [esi + 0x160]
mov esi, 0x14c
cmp word [ecx], si
je 0x100062d8
mov ecx, dword [edx + 0x13a7c]
mov dword [edx + 0x13a80], ecx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4