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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 8
xor edi, edi
mov dword [ebp - 0xc], 0
mov ebx, dword [esi + 8]
mov eax, dword [esi]
add ebx, 0x28
push ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], ebx
mov dword [esi + 0x14], ebx
call fcn.100699f0
add esp, 8
cmp dword [esi + 0x5c], 7
jne 0x1009dd1d
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x1e], 1
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 0x62]
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 8], ecx
mov byte [ebp - 1], al
cmp al, 1
jne 0x1009ddb4
mov eax, dword [esi + 8]
add eax, 0x168
mov dword [ebp - 0x1c], eax
test byte [eax + 0x1c], 0x10
je 0x1009dd50
mov edx, dword [eax + 0x18]
mov edi, dword [eax + 4]
shr edx, 2
mov dword [ebp - 0xc], edx
jmp 0x1009dd52
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp edx, 2
jb 0x1009dd96
lea eax, [edx - 1]
xor edx, edx
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov esi, eax
mov eax, dword [edi + ecx*4]
add edx, dword [eax + 4]
mov eax, dword [edi + ecx*4 + 4]
add ecx, 2
add ebx, dword [eax + 4]
cmp ecx, esi
jl 0x1009dd73
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0xc]
cmp ecx, edx
jge 0x1009dda6
mov eax, dword [edi + ecx*4]
mov ecx, dword [esi + 0x1c]
add ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add eax, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 8], ecx
mov edx, dword [esi + 0x58]
lea eax, [edx + 1]
mov dword [esi + 0x58], eax
cmp edx, ecx
jge 0x1009e08c
cmp byte [ebp - 1], 2
jne 0x1009ddda
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4], 0x8a
mov ecx, dword [ebp - 8]
jne 0x1009ddb4
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xe0], 0
je 0x1009de12
push str.interrupted
push 0x100bf818
push eax
lea eax, [esi + 0x38]
mov dword [esi + 0x5c], 9
push eax
mov edi, 1
call fcn.1008e680
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x1c]
cmp edx, eax
jge 0x1009de1e
mov eax, dword [esi + 4]
jmp 0x1009de42
sub edx, eax
xor ecx, ecx
mov eax, dword [edi]
mov eax, dword [eax + 4]
cmp edx, eax
jl 0x1009de3d
nop dword [eax + eax]
inc ecx
sub edx, eax
mov eax, dword [edi + ecx*4]
mov eax, dword [eax + 4]
cmp edx, eax
jge 0x1009de30
mov eax, dword [edi + ecx*4]
mov eax, dword [eax]
cmp byte [esi + 0x62], 1
lea ecx, [edx + edx*4]
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x10], 0xa02
mov dword [ebp + 8], ecx
mov eax, 4
jne 0x1009df16
mov word [ebx + 0x1c], ax
mov eax, edx
cdq
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x10]
mov word [ebx + 0x44], ax
mov byte [ebx + 0x1e], 1
mov dword [ebx + 0x14], edx
movzx eax, byte [ecx]
mov ecx, dword [eax*4 + 0x100bc8e8]
mov eax, ecx
mov dword [ebx + 0x2c], ecx
test ecx, ecx
je 0x1009de9e
cmp byte [ecx], 0
je 0x1009de97
inc eax
cmp byte [eax], 0
jne 0x1009de91
sub eax, ecx
and eax, 0x3fffffff
mov edx, dword [ebp + 8]
mov dword [ebx + 0x40], eax
mov word [ebx + 0x46], 0x103
add ebx, 0x50
mov dword [ebp - 0x14], ebx
cmp byte [edx + 1], 0xee
jne 0x1009df16
mov ecx, dword [ebp - 0xc]
lea eax, [ecx*4]
mov dword [ebp - 0x18], eax
xor eax, eax
test ecx, ecx
je 0x1009deda
mov edx, dword [edx + 0x10]
nop dword [eax]
cmp dword [edi + eax*4], edx
je 0x1009deda
inc eax
cmp eax, ecx
jl 0x1009ded0
mov edx, dword [ebp - 0x14]
mov ebx, edx
cmp eax, ecx
jne 0x1009df16
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
add eax, 4
push 1
push eax
push edi
call fcn.1009e770
add esp, 0xc
test eax, eax
jne 0x1009df16
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov ecx, dword [edi + 4]
mov eax, dword [eax + 0x10]
mov dword [edx + ecx], eax
lea eax, [edx + 4]
or word [edi + 0x1c], 0x10
mov dword [edi + 0x18], eax
mov edi, dword [ebp + 8]
mov ecx, 4
mov word [ebx + 0x1c], cx
push 0
push 0x20
mov eax, dword [edi + 4]
cdq
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov byte [ebx + 0x1e], 1
mov word [ebx + 0x44], cx
mov eax, dword [edi + 8]
cdq
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edx
mov byte [ebx + 0x46], 1
mov word [ebx + 0x6c], cx
mov eax, dword [edi + 0xc]
cdq
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], edx
mov byte [ebx + 0x6e], 1
add ebx, 0x78
push ebx
call fcn.1009e770
add esp, 0xc
test eax, eax
jne 0x1009dd11
push 0x20
push dword [ebx + 4]
mov eax, 0x602
push edi
mov word [ebx + 0x1c], ax
call fcn.10055ee0
mov ecx, dword [ebx + 4]
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp eax, ecx
je 0x1009dfe4
test eax, eax
jne 0x1009df9c
push ebx
call fcn.1009ecb0
add esp, 4
jmp 0x1009e004
mov ecx, dword [ebx]
test ecx, ecx
je 0x1009dfad
mov ecx, dword [ecx + 0x48]
xor edi, edi
test ecx, ecx
js 0x1009dfbf
jmp 0x1009dfb2
mov ecx, 0x3b9aca00
xor edi, edi
cmp byte [edi + eax], 0
je 0x1009dfbf
inc edi
cmp edi, ecx
jle 0x1009dfb4
push ebx
call fcn.1009eb90
mov eax, dword [ebp - 0x20]
add esp, 4
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], edi
mov edi, dword [ebp + 8]
mov word [ebx + 0x1c], ax
jmp 0x1009e000
mov eax, ecx
test ecx, ecx
je 0x1009dffd
cmp byte [ecx], 0
je 0x1009dff6
nop
inc eax
cmp byte [eax], 0
jne 0x1009dff0
sub eax, ecx
and eax, 0x3fffffff
mov dword [ebx + 0x18], eax
mov byte [ebx + 0x1f], 1
mov byte [ebx + 0x1e], 3
add ebx, 0x28
mov al, byte [esi + 0x62]
cmp al, 1
jne 0x1009e064
push 0
push 4
push ebx
call fcn.1009e770
add esp, 0xc
test eax, eax
jne 0x1009dd11
mov eax, 0x602
mov dword [ebx + 0x18], 2
mov word [ebx + 0x1c], ax
movzx eax, byte [edi + 3]
push eax
push str._.2x
push dword [ebx + 4]
push 3
call fcn.10041b40
mov eax, 1
mov word [ebx + 0x1e], 0x103
mov word [ebx + 0x44], ax
add esp, 0x10
mov byte [ebx + 0x46], 5
mov al, byte [esi + 0x62]
movzx eax, al
mov ecx, 3
sub cx, ax
mov dword [esi + 0x5c], 0
mov edi, 0x64
shl cx, 2
mov eax, edi
mov word [esi + 0x30], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0x65
mov dword [esi + 0x5c], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret