Function at 0x1009b860
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 0x1009b89a
movzx eax, byte [eax + 0x1d]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
cmp word [esp + 0x74], si
je 0x1009b8b1
test byte [ecx + 0x3c], 0x80
je 0x1009b8b1
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 0x1009b8a7
movzx ecx, ax
mov eax, 1
xor edx, edx
mov byte [esp + 0x12], 1
mov dword [esp + 0x20], ecx
call fcn.100e9410
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 0x1009b900
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [esp + 0x54]
ja 0x1009bdcb
jb 0x1009b91e
mov edx, dword [esp + 0x38]
cmp edx, dword [esp + 0x50]
jae 0x1009bdcb
movzx eax, word [esp + 0x74]
mov edx, dword [esp + 0x28]
cmp edx, eax
jg 0x1009bdcb
xor esi, esi
cmp edx, esi
jle 0x1009b947
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 0x1009b957
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + edx*4]
jmp 0x1009b95b
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 0x1009bab1
mov dword [esp + 0x1c], esi
jmp 0x1009b990
mov ecx, dword [esp + 0x24]
mov eax, 1
xor edx, edx
call fcn.100e9410
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 0x1009ba95
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 8]
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + edx]
test esi, esi
je 0x1009b9e1
lea esp, [esp]
mov al, byte [esi]
cmp al, 0x5c
je 0x1009b9da
cmp al, 0x18
jne 0x1009b9e1
mov esi, dword [esi + 8]
test esi, esi
jne 0x1009b9d0
cmp byte [esi], 0x98
jne 0x1009ba95
mov ecx, dword [esp + 0x2c]
cmp dword [esi + 0x18], ecx
jne 0x1009ba95
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.10096250
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x1009ba95
test byte [ebp + 0x10], 2
je 0x1009ba8d
cmp word [esi + 0x1c], 0
jl 0x1009ba8d
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.1006a270
test eax, eax
jne 0x1009ba5e
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.1006a270
test eax, eax
jne 0x1009ba79
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
push ecx
push esi
call fcn.10042070
add esp, 8
test eax, eax
jne 0x1009ba95
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 0x1009b990
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x24]
test eax, 0x1000
jne 0x1009bd2c
test eax, 0x100
je 0x1009bad0
xor esi, esi
mov dword [esp + 0x24], esi
xor eax, eax
jmp 0x1009baf8
mov ecx, dword [edx + 0x1c]
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x1009b8a7
test byte [ecx + 0x30], 4
jne 0x1009b8a7
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 0x1009bd2c
lea esp, [esp]
mov ecx, dword [edx + 0x18]
cmp edi, ecx
jge 0x1009bb47
mov edx, dword [edx + 0x2c]
mov eax, dword [edx + edi*4]
movzx eax, word [eax + 0x10]
test al, 0x82
je 0x1009bb47
test al, al
jns 0x1009bd08
mov byte [esp + 0x12], 0
jmp 0x1009bd08
cmp edi, ebx
jge 0x1009bb68
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 0x1009bb70
jmp 0x1009bb6d
mov byte [esp + 0x13], 0
or ebx, 0xffffffff
cmp byte [esp + 0x12], 0
je 0x1009bb94
test ebx, ebx
jl 0x1009bb94
cmp edi, ecx
jl 0x1009bb94
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 4]
lea ecx, [ebx + ebx*2]
cmp byte [edx + ecx*8 + 0x14], 0
jne 0x1009bb94
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 0x1009bc5b
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.100e9410
and eax, dword [esp + 0x38]
and edx, dword [esp + 0x3c]
or eax, edx
jne 0x1009bc48
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + ebp]
mov eax, ecx
test eax, eax
je 0x1009bbeb
mov dl, byte [eax]
cmp dl, 0x5c
je 0x1009bbe4
cmp dl, 0x18
jne 0x1009bbeb
mov eax, dword [eax + 8]
test eax, eax
jne 0x1009bbd8
test dword [esp + 0x70], 0x300
jne 0x1009bbfa
mov byte [esp + 0x14], 0
cmp byte [eax], 0x98
jne 0x1009bc48
mov edx, dword [esp + 0x2c]
cmp dword [eax + 0x18], edx
jne 0x1009bc48
movsx eax, word [eax + 0x1c]
cmp eax, ebx
jne 0x1009bc48
test ebx, ebx
jl 0x1009bc83
mov edx, dword [esp + 0x64]
mov edi, dword [edx]
call fcn.1006a270
test eax, eax
jne 0x1009bc2a
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.10042070
add esp, 8
test eax, eax
je 0x1009bc7f
mov edi, dword [esp + 0x1c]
inc esi
add ebp, 0x18
cmp byte [esp + 0x14], 0
jne 0x1009bba0
test edi, edi
je 0x1009bc65
cmp edi, dword [esp + 0x34]
jge 0x1009bc6a
mov byte [esp + 0x12], 0
cmp byte [esp + 0x17], 0
je 0x1009bd2c
mov byte [esp + 0x12], 1
jmp 0x1009bd37
test ebx, ebx
jge 0x1009bc88
mov byte [esp + 0x17], 1
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.100e9410
or dword [esp + 0x3c], edx
mov edx, dword [esp + 0x64]
or dword [esp + 0x38], eax
mov ecx, 0x100
test word [edx + 0x22], cx
jne 0x1009bd08
cmp byte [esp + 0x16], 0
je 0x1009bcd2
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 0x1009b8a7
jmp 0x1009bd08
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 0x1009bd03
mov ecx, dword [esp + 0x28]
mov eax, 1
xor edx, edx
call fcn.100e9410
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 0x1009bc6a
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x34]
jmp 0x1009bb20
cmp byte [esp + 0x12], 0
je 0x1009bdbc
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 0x1009bdbc
mov dword [esp + 0x34], ebp
mov eax, 1
xor edx, edx
mov ecx, ebp
call fcn.100e9410
mov edi, edx
mov esi, eax
and eax, dword [esp + 0x38]
mov ecx, edi
and ecx, dword [esp + 0x3c]
or eax, ecx
jne 0x1009bdb0
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.10095b00
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 0x1009bdb0
or dword [esp + 0x38], esi
or dword [esp + 0x3c], edi
add dword [esp + 0x34], 0x18
inc ebp
cmp ebp, dword [esp + 0x20]
jl 0x1009bd55
inc dword [esp + 0x28]
cmp byte [esp + 0x12], 0
jne 0x1009b900
mov edx, dword [esp + 0x50]
cmp dword [esp + 0x38], edx
jne 0x1009bdec
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x3c], eax
jne 0x1009bdec
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