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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [esp + 0x38]
mov eax, 0xffffff9a
test esi, esi
je 0x10119baa
cmp dword [esi + 0x38], 0
je 0x10119baa
mov dword [esi + 0x44], 0
lea edi, [esi + 0x40]
cmp dword [esi + 0x9c], 8
jne 0x101196d4
cmp dword [esi + 0xa0], 0
jne 0x101196d4
lea eax, [esi + 0xa4]
xor ebx, ebx
mov dword [esp + 4], eax
test ebx, ebx
je 0x101196de
cmp ebx, 1
jne 0x1011972e
cmp dword [esi + 0x7c], 0
jne 0x1011971d
xor ebx, ebx
jmp 0x1011972e
cmp dword [esi + 0x50], 0
jne 0x10119703
mov ecx, esi
call fcn.10119619
cmp eax, 0xffffffff
jne 0x101196f5
xor ebx, ebx
dec ebx
jmp 0x1011972e
mov eax, dword [esp + 4]
mov dword [esi + 0x50], 0x10000
mov dword [esi + 0x4c], eax
mov ebp, dword [esi + 0x54]
push 4
push edi
call fcn.101feade
add esp, 8
mov ecx, dword [esi + 0x54]
mov ebx, eax
sub ecx, ebp
add dword [esi + 0x7c], ecx
jmp 0x101196cb
mov ecx, esi
call fcn.10119619
xor ebx, ebx
cmp eax, 0xffffffff
sete bl
neg ebx
cmp dword [esi + 0x9c], 8
jne 0x10119753
cmp dword [esi + 0xa0], 0
jne 0x10119753
push edi
call fcn.101fe31d
add esp, 4
test ebx, ebx
cmove ebx, eax
xor eax, eax
mov dword [esi + 0x78], eax
cmp dword [esi + 0xa0], 0
je 0x1011976e
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
jmp 0x10119784
mov eax, dword [esi + 0x100a8]
mov ebp, dword [esi + 0x100c8]
mov edx, dword [esi + 0x100cc]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x100c0]
mov ecx, dword [esi + 0x100c4]
mov edi, 0xfffffffe
mov dword [esp + 8], edx
mov dword [esp + 0x10], ebp
mov dword [esp + 4], eax
cmp edi, eax
mov eax, 0
mov dword [esp + 0xc], ecx
sbb eax, ecx
mov ecx, 0
setb al
cmp edi, ebp
sbb ecx, edx
setb cl
or cl, al
mov byte [esp + 3], cl
jne 0x101197dd
mov eax, 0xfffffffe
cmp eax, dword [esi + 0x80]
mov eax, 0
sbb eax, dword [esi + 0x84]
jae 0x10119818
mov ecx, dword [esi + 0x88]
mov ebp, 2
mov edx, 0x2d
add ecx, 4
push ebp
xor edi, edi
push edi
call fcn.10119053
add esp, 8
mov ecx, dword [esi + 0x88]
mov edx, 0x2d
add ecx, 6
push ebp
mov ebp, dword [esp + 0x14]
push edi
call fcn.10119053
add esp, 8
mov ecx, dword [esi + 0x88]
mov edx, dword [esp + 0x14]
add ecx, 0x10
push 4
push 0
call fcn.10119053
add esp, 8
mov ecx, dword [esi + 0x88]
mov edx, dword [esp + 4]
mov edi, 0xfffffffe
xor eax, eax
add ecx, 0x14
cmp edi, edx
mov edi, dword [esp + 0xc]
sbb eax, edi
jae 0x10119861
mov edx, 0xfffffffe
xor eax, eax
add edx, 1
setb al
push 4
push eax
jmp 0x10119864
push 4
push edi
call fcn.10119053
add esp, 8
mov edi, dword [esp + 8]
cmp dword [esi + 0x6c], 1
jne 0x1011988e
mov ecx, dword [esi + 0x88]
add ecx, 0x24
xor edx, edx
inc edx
push 2
push 0
call fcn.10119053
add esp, 8
mov ecx, dword [esi + 0x88]
mov edx, 0xfffffffe
xor eax, eax
add ecx, 0x18
cmp edx, ebp
sbb eax, edi
jae 0x101198b6
mov edx, 0xfffffffe
xor eax, eax
add edx, 1
setb al
push 4
push eax
jmp 0x101198bb
mov edx, ebp
push 4
push edi
call fcn.10119053
add esp, 8
mov edx, edi
mov edi, 0xfffffffe
xor eax, eax
mov ecx, 0
cmp edi, ebp
sbb ecx, edx
mov edx, 0
setb cl
cmp edi, dword [esp + 4]
movzx ecx, cl
sbb edx, dword [esp + 0xc]
lea edx, [ecx*8 + 8]
lea ecx, [ecx*8]
cmovb ecx, edx
cmp edi, dword [esi + 0x80]
lea ebp, [ecx + 8]
sbb eax, dword [esi + 0x84]
cmovae ebp, ecx
test bp, bp
je 0x10119a31
mov eax, ebp
or eax, 4
movzx ecx, ax
mov eax, 0xffffff99
cmp dword [esi + 0x94], ecx
jb 0x10119baa
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x90]
mov edi, dword [esi + 0x88]
xor edx, edx
mov eax, 2
inc edx
mov dword [esp + 0x18], ecx
lea ecx, [edi + ecx]
push eax
xor eax, eax
push eax
call fcn.10119053
add esp, 8
mov eax, dword [esp + 0x18]
movzx edx, bp
lea ecx, [edi + eax + 2]
mov eax, 2
push eax
xor eax, eax
mov dword [esp + 0x20], 0
push eax
call fcn.10119053
add esp, 8
mov edx, dword [esp + 0x10]
mov eax, 0xfffffffe
cmp eax, edx
mov eax, 0
sbb eax, dword [esp + 8]
mov eax, dword [esp + 0x18]
lea ebp, [edi + eax + 4]
jae 0x101199b1
mov eax, 8
mov ecx, ebp
push eax
push dword [esp + 0xc]
call fcn.10119053
add esp, 8
add ebp, 8
mov edx, dword [esp + 4]
mov edi, dword [esp + 0xc]
mov eax, 0xfffffffe
cmp eax, edx
sbb dword [esp + 0x1c], edi
jae 0x101199da
mov eax, 8
mov ecx, ebp
push eax
push edi
call fcn.10119053
add esp, 8
add ebp, 8
mov edx, dword [esi + 0x80]
mov eax, dword [esi + 0x84]
mov edi, 0xfffffffe
xor ecx, ecx
cmp edi, edx
sbb ecx, eax
jae 0x10119a00
mov ecx, ebp
push 8
push eax
call fcn.10119053
add esp, 8
mov edx, dword [esp + 0x20]
sub dword [esi + 0x94], edx
add dword [esi + 0x90], edx
add edx, dword [esi + 0x8c]
mov dword [esi + 0x8c], edx
mov ecx, dword [esi + 0x88]
add ecx, 0x1e
push 2
push 0
call fcn.10119053
add esp, 8
test ebx, ebx
je 0x10119a48
push dword [esi + 0x88]
call fcn.1007274c
add esp, 4
jmp 0x10119b93
mov edx, dword [esi + 0x88]
lea ecx, [esi + 0x30]
push dword [esi + 0x90]
call fcn.101185e4
add esp, 4
mov ebx, eax
push dword [esi + 0x88]
call fcn.1007274c
add esp, 4
test ebx, ebx
jne 0x10119b93
push dword [esi + 0x2c]
push esi
call fcn.102485c2
add esp, 8
mov ecx, dword [esi + 0x80]
mov ebp, eax
mov eax, dword [esi + 0x84]
mov ebx, edx
add ecx, 0xe
adc eax, 0
push 0
push eax
push ecx
push dword [esi + 0x2c]
push esi
call fcn.1024857d
add esp, 0x14
test eax, eax
je 0x10119ab2
xor edi, edi
dec edi
jmp 0x10119ac9
mov edx, dword [esi + 0x2c]
mov ecx, esi
push 4
push 0
push dword [esp + 0x1c]
call fcn.10118aee
add esp, 0xc
mov edi, eax
mov al, byte [esp + 3]
test al, al
je 0x10119b3e
mov eax, dword [esi + 0x100b8]
mov ecx, dword [esi + 0x100bc]
mov edx, eax
or edx, ecx
jne 0x10119aed
mov edi, 0xffffff99
jmp 0x10119b78
add eax, 4
adc ecx, 0
push 0
push ecx
push eax
push dword [esi + 0x2c]
push esi
call fcn.1024857d
add esp, 0x14
xor ecx, ecx
cmp eax, 1
sbb ecx, ecx
not ecx
or edi, ecx
jne 0x10119b78
mov edx, dword [esi + 0x2c]
mov ecx, esi
push 8
push dword [esp + 0xc]
push dword [esp + 0x18]
call fcn.10118aee
add esp, 0xc
mov edi, eax
test eax, eax
jne 0x10119b78
mov edx, dword [esi + 0x2c]
mov ecx, esi
push 8
push dword [esp + 0x10]
push dword [esp + 0xc]
jmp 0x10119b6e
test edi, edi
jne 0x10119b78
mov edx, dword [esi + 0x2c]
mov ecx, esi
push 4
push dword [esp + 0x10]
push dword [esp + 0xc]
call fcn.10118aee
add esp, 0xc
mov edi, eax
test eax, eax
jne 0x10119b78
mov edx, dword [esi + 0x2c]
mov ecx, esi
push 4
push dword [esp + 0xc]
push dword [esp + 0x18]
call fcn.10118aee
add esp, 0xc
mov edi, eax
push 0
push ebx
push ebp
push dword [esi + 0x2c]
push esi
call fcn.1024857d
add esp, 0x14
xor ebx, ebx
cmp eax, 1
sbb ebx, ebx
not ebx
or ebx, edi
add dword [esi + 0x100e0], 1
mov eax, ebx
adc dword [esi + 0x100e4], 0
mov dword [esi + 0x38], 0
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret