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

Disassembly:
sub esp, 0x50
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx]
mov eax, dword [esp + 0x68]
mov ecx, dword [edx]
push ebx
push ebp
push esi
xor esi, esi
test dword [eax + 0x24], 0x400
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
je 0x1009b62a
movzx eax, byte [eax + 0x1d]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
cmp word [esp + 0x74], si
je 0x1009b641
test byte [ecx + 0x3c], 0x80
je 0x1009b641
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov eax, dword [esp + 0x68]
movzx eax, word [eax]
cmp ax, 0x3f
ja 0x1009b637
movzx ecx, ax
mov eax, 1
xor edx, edx
mov byte [esp + 0x12], 1
mov dword [esp + 0x20], ecx
call fcn.100e8f20
add eax, 0xffffffff
adc edx, 0xffffffff
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x28], esi
jmp 0x1009b690
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [esp + 0x54]
ja 0x1009bb5b
jb 0x1009b6ae
mov edx, dword [esp + 0x38]
cmp edx, dword [esp + 0x50]
jae 0x1009bb5b
movzx eax, word [esp + 0x74]
mov edx, dword [esp + 0x28]
cmp edx, eax
jg 0x1009bb5b
xor esi, esi
cmp edx, esi
jle 0x1009b6d7
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
or dword [esp + 0x40], edi
or dword [esp + 0x44], ecx
cmp edx, eax
jge 0x1009b6e7
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + edx*4]
jmp 0x1009b6eb
mov edx, dword [esp + 0x78]
cmp dword [esp + 0x20], esi
movzx eax, byte [edx + 0x10]
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx + 4]
lea eax, [eax + eax*8]
mov eax, dword [ecx + eax*8 + 0x34]
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], esi
jle 0x1009b841
mov dword [esp + 0x1c], esi
jmp 0x1009b720
mov ecx, dword [esp + 0x24]
mov eax, 1
xor edx, edx
call fcn.100e8f20
mov edi, edx
mov ebx, eax
and eax, dword [esp + 0x38]
mov ecx, edi
and ecx, dword [esp + 0x3c]
mov dword [esp + 0x5c], edi
or eax, ecx
jne 0x1009b825
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 8]
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + edx]
test esi, esi
je 0x1009b771
lea esp, [esp]
mov al, byte [esi]
cmp al, 0x5c
je 0x1009b76a
cmp al, 0x18
jne 0x1009b771
mov esi, dword [esi + 8]
test esi, esi
jne 0x1009b760
cmp byte [esi], 0x98
jne 0x1009b825
mov ecx, dword [esp + 0x2c]
cmp dword [esi + 0x18], ecx
jne 0x1009b825
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
movsx ecx, word [esi + 0x1c]
push 0
not eax
not edx
push eax
push edx
mov edx, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x3c]
add edx, 0x140
mov eax, 0x82
call fcn.10095fe0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x1009b825
test byte [ebp + 0x10], 2
je 0x1009b81d
cmp word [esi + 0x1c], 0
jl 0x1009b81d
mov edx, dword [esp + 0x68]
mov eax, dword [edx + 8]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + eax]
mov edi, dword [edx]
call fcn.1006a040
test eax, eax
jne 0x1009b7ee
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x64]
mov ecx, dword [ebp]
mov edi, dword [edx]
mov esi, dword [eax]
call fcn.1006a040
test eax, eax
jne 0x1009b809
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
push ecx
push esi
call fcn.10041e60
add esp, 8
test eax, eax
jne 0x1009b825
mov edi, dword [esp + 0x5c]
or dword [esp + 0x38], ebx
or dword [esp + 0x3c], edi
mov eax, dword [esp + 0x24]
add dword [esp + 0x1c], 0x18
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
jl 0x1009b720
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x24]
test eax, 0x1000
jne 0x1009babc
test eax, 0x100
je 0x1009b860
xor esi, esi
mov dword [esp + 0x24], esi
xor eax, eax
jmp 0x1009b888
mov ecx, dword [edx + 0x1c]
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x1009b637
test byte [ecx + 0x30], 4
jne 0x1009b637
cmp byte [ecx + 0x2e], 0
movzx eax, word [ecx + 0x2c]
setne byte [esp + 0x12]
mov esi, ecx
movzx ebx, ax
xor edi, edi
mov byte [esp + 0x16], 0
mov byte [esp + 0x15], 0
mov byte [esp + 0x17], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], ebx
test ebx, ebx
jl 0x1009babc
lea esp, [esp]
mov ecx, dword [edx + 0x18]
cmp edi, ecx
jge 0x1009b8d7
mov edx, dword [edx + 0x2c]
mov eax, dword [edx + edi*4]
movzx eax, word [eax + 0x10]
test al, 0x82
je 0x1009b8d7
test al, al
jns 0x1009ba98
mov byte [esp + 0x12], 0
jmp 0x1009ba98
cmp edi, ebx
jge 0x1009b8f8
mov edx, dword [esi + 4]
mov ebx, dword [edx + edi*4]
mov eax, dword [esi + 0x1c]
mov dl, byte [edi + eax]
mov eax, dword [esi + 0xc]
mov byte [esp + 0x13], dl
movsx edx, word [eax + 0x24]
cmp ebx, edx
jne 0x1009b900
jmp 0x1009b8fd
mov byte [esp + 0x13], 0
or ebx, 0xffffffff
cmp byte [esp + 0x12], 0
je 0x1009b924
test ebx, ebx
jl 0x1009b924
cmp edi, ecx
jl 0x1009b924
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 4]
lea ecx, [ebx + ebx*2]
cmp byte [edx + ecx*8 + 0x14], 0
jne 0x1009b924
mov byte [esp + 0x12], 0
xor esi, esi
mov byte [esp + 0x14], 1
xor ebp, ebp
lea ecx, [ecx]
cmp esi, dword [esp + 0x20]
jge 0x1009b9eb
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.100e8f20
and eax, dword [esp + 0x38]
and edx, dword [esp + 0x3c]
or eax, edx
jne 0x1009b9d8
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + ebp]
mov eax, ecx
test eax, eax
je 0x1009b97b
mov dl, byte [eax]
cmp dl, 0x5c
je 0x1009b974
cmp dl, 0x18
jne 0x1009b97b
mov eax, dword [eax + 8]
test eax, eax
jne 0x1009b968
test dword [esp + 0x70], 0x300
jne 0x1009b98a
mov byte [esp + 0x14], 0
cmp byte [eax], 0x98
jne 0x1009b9d8
mov edx, dword [esp + 0x2c]
cmp dword [eax + 0x18], edx
jne 0x1009b9d8
movsx eax, word [eax + 0x1c]
cmp eax, ebx
jne 0x1009b9d8
test ebx, ebx
jl 0x1009ba13
mov edx, dword [esp + 0x64]
mov edi, dword [edx]
call fcn.1006a040
test eax, eax
jne 0x1009b9ba
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edx + ecx*4]
mov eax, dword [eax]
push edx
push eax
call fcn.10041e60
add esp, 8
test eax, eax
je 0x1009ba0f
mov edi, dword [esp + 0x1c]
inc esi
add ebp, 0x18
cmp byte [esp + 0x14], 0
jne 0x1009b930
test edi, edi
je 0x1009b9f5
cmp edi, dword [esp + 0x34]
jge 0x1009b9fa
mov byte [esp + 0x12], 0
cmp byte [esp + 0x17], 0
je 0x1009babc
mov byte [esp + 0x12], 1
jmp 0x1009bac7
test ebx, ebx
jge 0x1009ba18
mov byte [esp + 0x17], 1
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.100e8f20
or dword [esp + 0x3c], edx
mov edx, dword [esp + 0x64]
or dword [esp + 0x38], eax
mov ecx, 0x100
test word [edx + 0x22], cx
jne 0x1009ba98
cmp byte [esp + 0x16], 0
je 0x1009ba62
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x68]
xor al, byte [esp + 0x15]
mov edx, dword [edx + 8]
lea ecx, [esi + esi*2]
cmp al, byte [edx + ecx*8 + 0xc]
jne 0x1009b637
jmp 0x1009ba98
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 8]
lea eax, [esi + esi*2]
mov al, byte [edx + eax*8 + 0xc]
xor al, byte [esp + 0x13]
mov byte [esp + 0x15], al
je 0x1009ba93
mov ecx, dword [esp + 0x28]
mov eax, 1
xor edx, edx
call fcn.100e8f20
mov ecx, dword [esp + 0x7c]
or dword [ecx], eax
or dword [ecx + 4], edx
mov byte [esp + 0x16], 1
mov edi, dword [esp + 0x1c]
inc edi
cmp edi, dword [esp + 0x34]
mov dword [esp + 0x1c], edi
jg 0x1009b9fa
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x34]
jmp 0x1009b8b0
cmp byte [esp + 0x12], 0
je 0x1009bb4c
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
or dword [esp + 0x48], ecx
or dword [esp + 0x4c], edx
xor ebp, ebp
cmp dword [esp + 0x20], ebp
jle 0x1009bb4c
mov dword [esp + 0x34], ebp
mov eax, 1
xor edx, edx
mov ecx, ebp
call fcn.100e8f20
mov edi, edx
mov esi, eax
and eax, dword [esp + 0x38]
mov ecx, edi
and ecx, dword [esp + 0x3c]
or eax, ecx
jne 0x1009bb40
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x34]
mov eax, dword [edx + ecx]
push eax
mov eax, dword [esp + 0x68]
add eax, 0x3c
push eax
call fcn.10095890
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
not ecx
not ebx
and eax, ecx
and edx, ebx
add esp, 8
or eax, edx
jne 0x1009bb40
or dword [esp + 0x38], esi
or dword [esp + 0x3c], edi
add dword [esp + 0x34], 0x18
inc ebp
cmp ebp, dword [esp + 0x20]
jl 0x1009bae5
inc dword [esp + 0x28]
cmp byte [esp + 0x12], 0
jne 0x1009b690
mov edx, dword [esp + 0x50]
cmp dword [esp + 0x38], edx
jne 0x1009bb7c
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x3c], eax
jne 0x1009bb7c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
movzx eax, byte [esp + 0x12]
pop edi
pop esi
neg eax
pop ebp
sbb eax, eax
pop ebx
add esp, 0x50
ret