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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x40], edx
mov edx, 0x10117550
mov dword [esp + 0xc], esi
mov ecx, 0x10117520
push edi
mov eax, dword [esi]
lea ebp, [esi + 0x24]
push 0
mov dword [esp + 0x1c], ebp
cmp dword [eax + 0x30], 1
cmovne ecx, edx
mov edx, 0x10117a10
mov dword [esp + 0x38], ecx
mov ecx, 0x10117730
cmovne ecx, edx
mov edx, 0xf
mov dword [esp + 0x3c], ecx
mov ecx, 1
cmovne ecx, edx
mov edx, 0x78
mov dword [esp + 0x2c], ecx
mov ecx, 0x20
cmovne ecx, edx
mov dword [esp + 0x44], ecx
lea eax, [ecx + ecx*2]
mov ecx, ebp
shl eax, 2
push eax
call fcn.10108030
add esp, 8
mov ebx, eax
cmp dword [esi + 0x50], 0
mov dword [esp + 0x20], ebx
jne 0x1011830e
mov ecx, esi
call fcn.101106d0
cmp dword [ebp], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], edx
jne 0x10118314
mov ecx, esi
call fcn.101104f0
mov dword [esi + 0x50], eax
cmp dword [ebp], 0
je 0x10118318
xor ecx, ecx
jmp 0x10118320
mov eax, dword [esi + 0x50]
inc dword [eax]
mov ecx, dword [esi + 0x50]
mov dword [esp + 0x30], ecx
test ebx, ebx
je 0x10118cd4
test ecx, ecx
je 0x10118cd4
mov eax, dword [esp + 0x64]
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov ebx, 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], ebx
movq qword [esp + 0x54], xmm0
mov dword [esp + 0x5c], 0
test eax, eax
je 0x101186c1
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x1c]
push edx
push 0
push 0xffffffffffffffff
push dword [esp + 0x78]
mov edx, ecx
mov dword [esp + 0x4c], 0
push eax
push dword [esp + 0x84]
mov ecx, esi
mov byte [eax], 0x30
push 0x30
call fcn.10114aa0
mov esi, dword [esp + 0x38]
add esp, 0x1c
cmp dword [ebp], 0
jne 0x1011840a
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
mov edx, dword [eax + 0x30]
cmp edx, ebx
jne 0x101183b9
mov dword [esi + 0x2c], 0x10114620
jmp 0x1011840a
mov ecx, dword [esi + 0x28]
test ecx, ecx
jne 0x101183c9
mov dword [esi + 0x2c], 0x10114640
jmp 0x1011840a
cmp dword [ecx], 0
jne 0x101183d7
mov dword [esi + 0x2c], 0x10114700
jmp 0x1011840a
test edx, edx
jne 0x101183e4
mov dword [esi + 0x2c], 0x10114860
jmp 0x1011840a
cmp dword [eax + 0xc], 0x64
jg 0x10118403
mov dword [esi + 0x2c], 0x10114750
lea edx, [esi + 0x1c]
push dword [eax + 0xc]
mov ecx, ebp
call fcn.10107b20
add esp, 4
jmp 0x1011840a
mov dword [esi + 0x2c], 0x10114710
mov ecx, dword [esp + 0x10]
mov edx, esi
call fcn.10114e00
test eax, eax
jne 0x1011848f
mov ebp, dword [esp + 0x4c]
mov ebx, ecx
mov edi, dword [esp + 0x48]
mov eax, dword [esi + 0x48]
movzx eax, word [eax + 4]
lea eax, [eax + eax*2]
shl eax, 5
add eax, 0x50
add eax, esi
push eax
mov eax, dword [esi + 0x2c]
push esi
call eax
add esp, 8
cmp dword [esi + 0xc], 0
je 0x10118463
mov ecx, dword [esi]
lea eax, [esp + 0x54]
push eax
mov eax, dword [esi + 4]
sub ecx, edi
push esi
sbb eax, ebp
push eax
push ecx
push ebx
call dword [esp + 0x48]
mov edi, dword [esi]
add esp, 0x14
mov ebp, dword [esi + 4]
lea eax, [esp + 0x3c]
mov edx, esi
push eax
mov ecx, ebx
call fcn.10114030
add esp, 4
mov edx, esi
mov ecx, ebx
call fcn.10114e00
test eax, eax
je 0x10118423
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], ebp
jmp 0x1011849f
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
test esi, esi
je 0x1011865d
xor ebp, ebp
cmp dword [esi + 0x30], ebp
jle 0x10118602
lea ebx, [esi + 0x5c]
lea ecx, [ebx + 0x38]
call fcn.10107d50
mov edi, dword [ebx]
test edi, edi
je 0x1011851b
cmp dword [0x10165b38], 0
je 0x10118511
mov eax, dword [0x10168b88]
test eax, eax
je 0x101184df
push eax
call dword [0x10165b88]
add esp, 4
push edi
call dword [0x10165b64]
sub dword [0x10168a10], eax
add esp, 4
dec dword [0x10168a34]
push edi
call dword [0x10165b5c]
mov eax, dword [0x10168b88]
add esp, 4
test eax, eax
je 0x10118520
push eax
call dword [0x10165b90]
jmp 0x10118518
push edi
call dword [0x10165b5c]
add esp, 4
mov eax, dword [0x10168b88]
mov edi, dword [ebx + 4]
test edi, edi
je 0x1011857a
cmp dword [0x10165b38], 0
je 0x10118570
test eax, eax
je 0x1011853e
push eax
call dword [0x10165b88]
add esp, 4
push edi
call dword [0x10165b64]
sub dword [0x10168a10], eax
add esp, 4
dec dword [0x10168a34]
push edi
call dword [0x10165b5c]
mov eax, dword [0x10168b88]
add esp, 4
test eax, eax
je 0x1011857a
push eax
call dword [0x10165b90]
jmp 0x10118577
push edi
call dword [0x10165b5c]
add esp, 4
mov ecx, dword [ebx + 0x34]
call fcn.101111d0
mov edi, dword [ebx + 0x30]
test edi, edi
je 0x101185e1
cmp dword [0x10165b38], 0
je 0x101185d7
mov eax, dword [0x10168b88]
test eax, eax
je 0x101185a5
push eax
call dword [0x10165b88]
add esp, 4
push edi
call dword [0x10165b64]
sub dword [0x10168a10], eax
add esp, 4
dec dword [0x10168a34]
push edi
call dword [0x10165b5c]
mov eax, dword [0x10168b88]
add esp, 4
test eax, eax
je 0x101185e1
push eax
call dword [0x10165b90]
jmp 0x101185de
push edi
call dword [0x10165b5c]
add esp, 4
push 0x60
lea eax, [ebx - 0xc]
push 0
push eax
call fcn.101298f0
inc ebp
add esp, 0xc
add ebx, 0x60
cmp ebp, dword [esi + 0x30]
jl 0x101184b5
mov ebx, dword [esp + 0x2c]
lea ecx, [esi + 0x1c]
call fcn.10107d50
cmp dword [0x10165b38], 0
je 0x101186b8
mov eax, dword [0x10168b88]
test eax, eax
je 0x1011862a
push eax
call dword [0x10165b88]
add esp, 4
push esi
call dword [0x10165b64]
sub dword [0x10168a10], eax
add esp, 4
dec dword [0x10168a34]
push esi
call dword [0x10165b5c]
mov eax, dword [0x10168b88]
add esp, 4
test eax, eax
je 0x1011865d
push eax
call dword [0x10165b90]
add esp, 4
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
add al, 0x30
mov edx, dword [esp + 0x30]
mov byte [ecx], al
lea eax, [esp + 0x1c]
push eax
push 0
push 0xffffffffffffffff
push dword [esp + 0x78]
push ecx
push dword [esp + 0x84]
mov ecx, esi
push 0x38
call fcn.10114aa0
mov ebp, dword [esp + 0x38]
lea edi, [esi + 0x24]
add esp, 0x1c
cmp dword [edi], 0
jne 0x10118724
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax + 0x30]
cmp edx, 1
jne 0x101186d3
mov dword [ebp + 0x2c], 0x10114620
jmp 0x10118724
push esi
call dword [0x10165b5c]
jmp 0x1011865a
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x14], ecx
jmp 0x10118665
mov ecx, dword [ebp + 0x28]
test ecx, ecx
jne 0x101186e3
mov dword [ebp + 0x2c], 0x10114640
jmp 0x10118724
cmp dword [ecx], 0
jne 0x101186f1
mov dword [ebp + 0x2c], 0x10114700
jmp 0x10118724
test edx, edx
jne 0x101186fe
mov dword [ebp + 0x2c], 0x10114860
jmp 0x10118724
cmp dword [eax + 0xc], 0x64
jg 0x1011871d
mov dword [ebp + 0x2c], 0x10114750
lea edx, [ebp + 0x1c]
push dword [eax + 0xc]
mov ecx, edi
call fcn.10107b20
add esp, 4
jmp 0x10118724
mov dword [ebp + 0x2c], 0x10114710
mov edx, ebp
mov ecx, esi
call fcn.10114e00
test eax, eax
jne 0x10118934
mov eax, dword [ebp + 0x48]
movzx eax, word [eax + 4]
lea eax, [eax + eax*2]
shl eax, 5
add eax, 0x50
add eax, ebp
push eax
push ebp
mov edi, dword [eax + 0x48]
mov esi, dword [eax + 0x44]
mov eax, dword [ebp + 0x2c]
call eax
add esp, 8
test ebx, ebx
je 0x101187c5
mov eax, dword [esp + 0x6c]
cmp edi, eax
jl 0x10118930
mov ecx, dword [esp + 0x68]
mov edx, eax
sub edx, 4
jb 0x10118783
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x10118788
add ecx, 4
add esi, 4
sub edx, 4
jae 0x10118772
cmp edx, 0xfffffffc
je 0x101187c5
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x10118930
cmp edx, 0xfffffffd
je 0x101187c5
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x10118930
cmp edx, 0xfffffffe
je 0x101187c5
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x10118930
cmp edx, 0xffffffff
je 0x101187c5
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
jne 0x10118930
cmp dword [ebp + 0xc], 0
je 0x10118905
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp dword [ebp + 4], edx
jg 0x101188d7
jl 0x101187eb
cmp dword [ebp], eax
ja 0x101188d7
cmp dword [esp + 0x58], 0
jle 0x101188d7
mov eax, dword [esp + 0x18]
xor ebp, ebp
cmp dword [eax], ebp
jne 0x101188c0
cmp dword [esp + 0x58], 0
je 0x101188c0
mov ecx, dword [esp + 0x28]
mov edi, ecx
mov edx, dword [esp + 0x20]
imul edi, ebp
mov esi, edi
lea ebx, [ecx + edi]
cmp edi, ebx
jge 0x1011887d
lea eax, [edi*2 + 1]
add eax, edi
lea eax, [edx + eax*4]
cmp dword [eax], 0
je 0x10118840
inc esi
add eax, 0xc
cmp esi, ebx
jl 0x10118831
jmp 0x10118879
movq xmm1, qword [esp + 0x54]
lea eax, [esi + esi*2]
movq xmm0, qword [edx + eax*4]
lea edx, [edx + eax*4]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x5c]
movq qword [edx], xmm1
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
movq qword [esp + 0x54], xmm0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x18]
cmp esi, ebx
jne 0x101188b6
lea eax, [edi + edi*2]
lea esi, [edx + eax*4]
push esi
push ecx
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x1c]
call dword [esp + 0x48]
add esp, 0x10
cmp edi, ebx
jge 0x101188b2
mov ecx, dword [esp + 0x28]
lea eax, [esi + 4]
mov dword [eax], 0
lea eax, [eax + 0xc]
sub ecx, 1
jne 0x101188a4
mov eax, dword [esp + 0x18]
inc ebp
cmp dword [eax], 0
je 0x10118804
mov ebp, dword [esp + 0x1c]
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov ecx, dword [esp + 0x48]
mov eax, ecx
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [ebp]
sub ecx, eax
mov eax, dword [ebp + 4]
push ebp
sbb eax, edx
push eax
push ecx
push esi
call dword [esp + 0x48]
mov eax, dword [ebp]
add esp, 0x14
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x24], eax
jmp 0x10118909
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x2c]
mov edx, ebp
push eax
mov ecx, esi
call fcn.10114030
add esp, 4
mov edx, ebp
mov ecx, esi
call fcn.10114e00
test eax, eax
jne 0x10118930
mov ebx, dword [esp + 0x2c]
jmp 0x10118735
mov edi, dword [esp + 0x18]
xor ebx, ebx
lea esi, [ebx + ebx*2]
shl esi, 2
cmp dword [edi], 0
mov edi, dword [esp + 0x20]
jne 0x1011895d
lea eax, [esi + edi]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x1c]
call dword [esp + 0x48]
add esp, 0x10
mov ebp, dword [esp + 0x28]
add ebp, ebx
cmp ebx, ebp
jge 0x1011897f
add esi, edi
mov edi, ebp
sub edi, ebx
nop dword [eax]
mov ecx, esi
call fcn.10107d50
add esi, 0xc
sub edi, 1
jne 0x10118970
mov edi, dword [esp + 0x18]
mov ebx, ebp
cmp ebx, dword [esp + 0x40]
jl 0x10118936
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x10118b4e
xor ebx, ebx
cmp dword [ebp + 0x30], ebx
jle 0x10118aee
lea esi, [ebp + 0x5c]
lea ecx, [esi + 0x38]
call fcn.10107d50
mov edi, dword [esi]
test edi, edi
je 0x10118a0b
cmp dword [0x10165b38], 0
je 0x10118a01
mov eax, dword [0x10168b88]
test eax, eax
je 0x101189cf
push eax
call dword [0x10165b88]
add esp, 4
push edi
call dword [0x10165b64]
sub dword [0x10168a10], eax
add esp, 4
dec dword [0x10168a34]
push edi
call dword [0x10165b5c]
mov eax, dword [0x10168b88]
add esp, 4
test eax, eax
je 0x10118a10
push eax
call dword [0x10165b90]
jmp 0x10118a08
push edi
call dword [0x10165b5c]
add esp, 4
mov eax, dword [0x10168b88]
mov edi, dword [esi + 4]
test edi, edi
je 0x10118a6a
cmp dword [0x10165b38], 0
je 0x10118a60
test eax, eax
je 0x10118a2e
push eax
call dword [0x10165b88]
add esp, 4
push edi
call dword [0x10165b64]
sub dword [0x10168a10], eax
add esp, 4
dec dword [0x10168a34]
push edi
call dword [0x10165b5c]
mov eax, dword [0x10168b88]
add esp, 4
test eax, eax
je 0x10118a6a
push eax
call dword [0x10165b90]
jmp 0x10118a67
push edi
call dword [0x10165b5c]
add esp, 4
mov ecx, dword [esi + 0x34]
call fcn.101111d0
mov edi, dword [esi + 0x30]
test edi, edi
je 0x10118ad1
cmp dword [0x10165b38], 0
je 0x10118ac7
mov eax, dword [0x10168b88]
test eax, eax
je 0x10118a95
push eax
call dword [0x10165b88]
add esp, 4
push edi
call dword [0x10165b64]
sub dword [0x10168a10], eax
add esp, 4
dec dword [0x10168a34]
push edi
call dword [0x10165b5c]
mov eax, dword [0x10168b88]
add esp, 4
test eax, eax
je 0x10118ad1
push eax
call dword [0x10165b90]
jmp 0x10118ace
push edi
call dword [0x10165b5c]
add esp, 4
push 0x60
lea eax, [esi - 0xc]
push 0
push eax
call fcn.101298f0
inc ebx
add esp, 0xc
add esi, 0x60
cmp ebx, dword [ebp + 0x30]
jl 0x101189a5
lea ecx, [ebp + 0x1c]
call fcn.10107d50
cmp dword [0x10165b38], 0
je 0x10118b44
mov eax, dword [0x10168b88]
test eax, eax
je 0x10118b12
push eax
call dword [0x10165b88]
add esp, 4
push ebp
call dword [0x10165b64]
sub dword [0x10168a10], eax
add esp, 4
dec dword [0x10168a34]
push ebp
call dword [0x10165b5c]
mov eax, dword [0x10168b88]
add esp, 4
test eax, eax
je 0x10118b4e
push eax
call dword [0x10165b90]
jmp 0x10118b4b
push ebp
call dword [0x10165b5c]
add esp, 4
mov eax, dword [esp + 0x58]
mov ebp, dword [esp + 0x10]
add eax, 0x14
push 0
push eax
lea ecx, [ebp + 0x24]
call fcn.10108030
mov esi, eax
add esp, 8
test esi, esi
je 0x10118cbc
lea edx, [esi + 0xc]
mov dword [esi], edx
mov ecx, dword [esp + 0x58]
mov dword [esi + 8], ecx
mov eax, dword [esp + 0x58]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x58]
test eax, eax
je 0x10118b9a
push eax
push dword [esp + 0x58]
push edx
call fcn.1012ad80
add esp, 0xc
push 0
push 0x118
lea ecx, [ebp + 0x24]
call fcn.10108030
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10118c64
lea ecx, [ebx + 0x110]
mov dword [ebx + 0x30], 2
mov dword [ebx + 0x48], ecx
lea edi, [ebx + 0xb0]
mov dword [ebx + 0x18], ebp
mov dword [ebx + 0x2c], 0x10001080
mov dword [edi + 4], 1
cmp dword [esi + 8], 0
jle 0x10118c32
mov dword [edi + 0xc], esi
lea edx, [edi + 0x50]
mov ecx, dword [esi]
call fcn.101268f0
cmp dword [esp + 0x44], 0
mov ecx, 1
movzx eax, al
cdq
mov dword [edi + 0x1c], edx
mov edx, edi
mov dword [edi + 0x18], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x30], eax
mov eax, dword [ebx + 0x48]
mov word [eax + 4], cx
je 0x10118c27
mov dword [ebx + 0x34], ecx
mov ecx, ebp
or dword [edi + 4], 2
call fcn.10111c40
xor esi, esi
jmp 0x10118c36
mov ecx, ebp
call fcn.10111940
xor esi, esi
jmp 0x10118c36
mov byte [ebx + 0x10], 1
test byte [edi + 4], 2
je 0x10118c43
mov ecx, 0x10112010
jmp 0x10118c57
mov eax, dword [ebp]
mov ecx, 0x10112310
mov edx, 0x10112090
cmp dword [eax + 0x30], 1
cmove ecx, edx
mov eax, dword [esp + 0x74]
mov dword [edi + 0x20], ecx
mov dword [eax], ebx
test esi, esi
je 0x10118cbc
cmp dword [0x10165b38], 0
je 0x10118cb2
mov eax, dword [0x10168b88]
test eax, eax
je 0x10118c80
push eax
call dword [0x10165b88]
add esp, 4
push esi
call dword [0x10165b64]
sub dword [0x10168a10], eax
add esp, 4
dec dword [0x10168a34]
push esi
call dword [0x10165b5c]
mov eax, dword [0x10168b88]
add esp, 4
test eax, eax
je 0x10118cbc
push eax
call dword [0x10165b90]
jmp 0x10118cb9
push esi
call dword [0x10165b5c]
add esp, 4
lea ecx, [esp + 0x54]
call fcn.10107d50
mov ecx, dword [esp + 0x30]
call fcn.1010fd50
mov ebx, dword [esp + 0x20]
jmp 0x10118cdd
call fcn.1010fd50
test ebx, ebx
je 0x10118d3e
cmp dword [0x10165b38], 0
je 0x10118d34
mov eax, dword [0x10168b88]
test eax, eax
je 0x10118cf9
push eax
call dword [0x10165b88]
add esp, 4
push ebx
call dword [0x10165b64]
sub dword [0x10168a10], eax
add esp, 4
dec dword [0x10168a34]
push ebx
call dword [0x10165b5c]
mov eax, dword [0x10168b88]
add esp, 4
test eax, eax
je 0x10118d3e
push eax
call dword [0x10165b90]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
push ebx
call dword [0x10165b5c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret