Function at 0x10128490
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, 0x10127770
mov dword [esp + 0xc], esi
mov ecx, 0x10127740
push edi
mov eax, dword [esi]
lea ebp, [esi + 0x2c]
push 0
mov dword [esp + 0x1c], ebp
cmp dword [eax + 0x34], 1
cmovne ecx, edx
mov edx, 0x10127c30
mov dword [esp + 0x38], ecx
mov ecx, 0x10127950
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.10115310
add esp, 8
mov ebx, eax
cmp dword [esi + 0x60], 0
mov dword [esp + 0x20], ebx
jne 0x1012852e
mov ecx, esi
call fcn.1011dbb0
cmp dword [ebp], 0
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
jne 0x10128534
mov ecx, esi
call fcn.1011d9d0
mov dword [esi + 0x60], eax
cmp dword [ebp], 0
je 0x10128538
xor ecx, ecx
jmp 0x10128540
mov eax, dword [esi + 0x60]
inc dword [eax]
mov ecx, dword [esi + 0x60]
mov dword [esp + 0x30], ecx
test ebx, ebx
je 0x10128eef
test ecx, ecx
je 0x10128eef
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 0x101288e9
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.10122530
mov esi, dword [esp + 0x38]
add esp, 0x1c
cmp dword [ebp], 0
jne 0x1012862a
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
mov edx, dword [eax + 0x34]
cmp edx, ebx
jne 0x101285d9
mov dword [esi + 0x2c], 0x101220b0
jmp 0x1012862a
mov ecx, dword [esi + 0x28]
test ecx, ecx
jne 0x101285e9
mov dword [esi + 0x2c], 0x101220d0
jmp 0x1012862a
cmp dword [ecx], 0
jne 0x101285f7
mov dword [esi + 0x2c], 0x10122190
jmp 0x1012862a
test edx, edx
jne 0x10128604
mov dword [esi + 0x2c], 0x101222f0
jmp 0x1012862a
cmp dword [eax + 0xc], 0x64
jg 0x10128623
mov dword [esi + 0x2c], 0x101221e0
lea edx, [esi + 0x1c]
push dword [eax + 0xc]
mov ecx, ebp
call fcn.10114e00
add esp, 4
jmp 0x1012862a
mov dword [esi + 0x2c], 0x101221a0
mov ecx, dword [esp + 0x10]
mov edx, esi
call fcn.10122840
test eax, eax
jne 0x101286ac
mov ebp, dword [esp + 0x4c]
mov ebx, ecx
mov edi, dword [esp + 0x48]
mov eax, dword [esi + 0x48]
movzx eax, word [eax + 4]
imul eax, eax, 0x68
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 0x10128680
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.10121a50
add esp, 4
mov edx, esi
mov ecx, ebx
call fcn.10122840
test eax, eax
je 0x10128643
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], ebp
jmp 0x101286bc
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
test esi, esi
je 0x10128885
xor ebp, ebp
cmp dword [esi + 0x30], ebp
jle 0x1012882a
lea edi, [esi + 0x5c]
lea ecx, [edi + 0x40]
call fcn.10115030
mov ebx, dword [edi]
test ebx, ebx
je 0x10128738
cmp dword [0x10178a38], 0
je 0x1012872e
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x101286fc
push eax
call dword [0x10178a88]
add esp, 4
push ebx
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push ebx
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x1012873d
push eax
call dword [0x10178a90]
jmp 0x10128735
push ebx
call dword [0x10178a5c]
add esp, 4
mov eax, dword [0x1017bbe8]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x10128797
cmp dword [0x10178a38], 0
je 0x1012878d
test eax, eax
je 0x1012875b
push eax
call dword [0x10178a88]
add esp, 4
push ebx
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push ebx
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x10128797
push eax
call dword [0x10178a90]
jmp 0x10128794
push ebx
call dword [0x10178a5c]
add esp, 4
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
call fcn.10120ea0
mov ecx, dword [edi + 0x3c]
call fcn.1011e840
mov ebx, dword [edi + 0x38]
test ebx, ebx
je 0x10128809
cmp dword [0x10178a38], 0
je 0x101287ff
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x101287cd
push eax
call dword [0x10178a88]
add esp, 4
push ebx
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push ebx
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x10128809
push eax
call dword [0x10178a90]
jmp 0x10128806
push ebx
call dword [0x10178a5c]
add esp, 4
push 0x68
lea eax, [edi - 0xc]
push 0
push eax
call fcn.1013ad10
inc ebp
add esp, 0xc
add edi, 0x68
cmp ebp, dword [esi + 0x30]
jl 0x101286d2
mov ebx, dword [esp + 0x2c]
lea ecx, [esi + 0x1c]
call fcn.10115030
cmp dword [0x10178a38], 0
je 0x101288e0
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x10128852
push eax
call dword [0x10178a88]
add esp, 4
push esi
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push esi
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x10128885
push eax
call dword [0x10178a90]
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.10122530
mov ebp, dword [esp + 0x38]
lea edi, [esi + 0x2c]
add esp, 0x1c
cmp dword [edi], 0
jne 0x1012894c
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax + 0x34]
cmp edx, 1
jne 0x101288fb
mov dword [ebp + 0x2c], 0x101220b0
jmp 0x1012894c
push esi
call dword [0x10178a5c]
jmp 0x10128882
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x14], ecx
jmp 0x1012888d
mov ecx, dword [ebp + 0x28]
test ecx, ecx
jne 0x1012890b
mov dword [ebp + 0x2c], 0x101220d0
jmp 0x1012894c
cmp dword [ecx], 0
jne 0x10128919
mov dword [ebp + 0x2c], 0x10122190
jmp 0x1012894c
test edx, edx
jne 0x10128926
mov dword [ebp + 0x2c], 0x101222f0
jmp 0x1012894c
cmp dword [eax + 0xc], 0x64
jg 0x10128945
mov dword [ebp + 0x2c], 0x101221e0
lea edx, [ebp + 0x1c]
push dword [eax + 0xc]
mov ecx, edi
call fcn.10114e00
add esp, 4
jmp 0x1012894c
mov dword [ebp + 0x2c], 0x101221a0
mov edx, ebp
mov ecx, esi
call fcn.10122840
test eax, eax
jne 0x10128b63
nop dword [eax]
mov eax, dword [ebp + 0x48]
movzx eax, word [eax + 4]
imul eax, eax, 0x68
add eax, 0x50
add eax, ebp
push eax
push ebp
mov edi, dword [eax + 0x50]
mov esi, dword [eax + 0x4c]
mov eax, dword [ebp + 0x2c]
call eax
add esp, 8
test ebx, ebx
je 0x101289f3
mov eax, dword [esp + 0x6c]
cmp edi, eax
jl 0x10128b5f
mov ecx, dword [esp + 0x68]
mov edx, eax
sub edx, 4
jb 0x101289b1
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x101289b6
add ecx, 4
add esi, 4
sub edx, 4
jae 0x101289a0
cmp edx, 0xfffffffc
je 0x101289f3
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x10128b5f
cmp edx, 0xfffffffd
je 0x101289f3
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x10128b5f
cmp edx, 0xfffffffe
je 0x101289f3
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x10128b5f
cmp edx, 0xffffffff
je 0x101289f3
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
jne 0x10128b5f
cmp dword [ebp + 0xc], 0
je 0x10128b34
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp dword [ebp + 4], edx
jg 0x10128b06
jl 0x10128a19
cmp dword [ebp], eax
ja 0x10128b06
cmp dword [esp + 0x58], 0
jle 0x10128b06
mov eax, dword [esp + 0x18]
xor ebp, ebp
cmp dword [eax], ebp
jne 0x10128aef
cmp dword [esp + 0x58], 0
je 0x10128aef
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 0x10128aac
lea eax, [edi*2 + 1]
add eax, edi
lea eax, [edx + eax*4]
nop
cmp dword [eax], 0
je 0x10128a6f
inc esi
add eax, 0xc
cmp esi, ebx
jl 0x10128a60
jmp 0x10128aa8
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 0x10128ae5
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 0x10128ae1
mov ecx, dword [esp + 0x28]
lea eax, [esi + 4]
mov dword [eax], 0
lea eax, [eax + 0xc]
sub ecx, 1
jne 0x10128ad3
mov eax, dword [esp + 0x18]
inc ebp
cmp dword [eax], 0
je 0x10128a32
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 0x10128b38
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x2c]
mov edx, ebp
push eax
mov ecx, esi
call fcn.10121a50
add esp, 4
mov edx, ebp
mov ecx, esi
call fcn.10122840
test eax, eax
jne 0x10128b5f
mov ebx, dword [esp + 0x2c]
jmp 0x10128960
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 0x10128b8c
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 0x10128baf
add esi, edi
mov edi, ebp
sub edi, ebx
nop dword [eax]
mov ecx, esi
call fcn.10115030
add esi, 0xc
sub edi, 1
jne 0x10128ba0
mov edi, dword [esp + 0x18]
mov ebx, ebp
cmp ebx, dword [esp + 0x40]
jl 0x10128b65
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x10128d89
xor ebx, ebx
cmp dword [ebp + 0x30], ebx
jle 0x10128d29
lea esi, [ebp + 0x5c]
lea ecx, [esi + 0x40]
call fcn.10115030
mov edi, dword [esi]
test edi, edi
je 0x10128c3b
cmp dword [0x10178a38], 0
je 0x10128c31
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x10128bff
push eax
call dword [0x10178a88]
add esp, 4
push edi
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push edi
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x10128c40
push eax
call dword [0x10178a90]
jmp 0x10128c38
push edi
call dword [0x10178a5c]
add esp, 4
mov eax, dword [0x1017bbe8]
mov edi, dword [esi + 4]
test edi, edi
je 0x10128c9a
cmp dword [0x10178a38], 0
je 0x10128c90
test eax, eax
je 0x10128c5e
push eax
call dword [0x10178a88]
add esp, 4
push edi
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push edi
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x10128c9a
push eax
call dword [0x10178a90]
jmp 0x10128c97
push edi
call dword [0x10178a5c]
add esp, 4
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
call fcn.10120ea0
mov ecx, dword [esi + 0x3c]
call fcn.1011e840
mov edi, dword [esi + 0x38]
test edi, edi
je 0x10128d0c
cmp dword [0x10178a38], 0
je 0x10128d02
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x10128cd0
push eax
call dword [0x10178a88]
add esp, 4
push edi
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push edi
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x10128d0c
push eax
call dword [0x10178a90]
jmp 0x10128d09
push edi
call dword [0x10178a5c]
add esp, 4
push 0x68
lea eax, [esi - 0xc]
push 0
push eax
call fcn.1013ad10
inc ebx
add esp, 0xc
add esi, 0x68
cmp ebx, dword [ebp + 0x30]
jl 0x10128bd5
lea ecx, [ebp + 0x1c]
call fcn.10115030
cmp dword [0x10178a38], 0
je 0x10128d7f
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x10128d4d
push eax
call dword [0x10178a88]
add esp, 4
push ebp
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push ebp
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x10128d89
push eax
call dword [0x10178a90]
jmp 0x10128d86
push ebp
call dword [0x10178a5c]
add esp, 4
mov eax, dword [esp + 0x58]
mov ebp, dword [esp + 0x10]
add eax, 0x14
push 0
push eax
lea ecx, [ebp + 0x2c]
call fcn.10115310
mov esi, eax
add esp, 8
test esi, esi
je 0x10128ed7
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 0x10128dd5
push eax
push dword [esp + 0x58]
push edx
call fcn.1013c1a0
add esp, 0xc
mov edx, 2
mov ecx, ebp
call fcn.10121b30
mov ebx, eax
test ebx, ebx
je 0x10128e7f
lea edi, [ebx + 0xb8]
mov dword [edi + 4], 1
cmp dword [esi + 8], 0
jle 0x10128e4d
mov dword [edi + 0xc], esi
lea edx, [edi + 0x58]
mov ecx, dword [esi]
call fcn.10137cb0
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 + 0x38], eax
mov eax, dword [ebx + 0x48]
mov word [eax + 4], cx
je 0x10128e42
mov dword [ebx + 0x34], ecx
mov ecx, ebp
or dword [edi + 4], 2
call fcn.1011f300
xor esi, esi
jmp 0x10128e51
mov ecx, ebp
call fcn.1011efb0
xor esi, esi
jmp 0x10128e51
mov byte [ebx + 0x10], 1
test byte [edi + 4], 2
je 0x10128e5e
mov ecx, 0x1011f6d0
jmp 0x10128e72
mov eax, dword [ebp]
mov ecx, 0x1011f9e0
mov edx, 0x1011f750
cmp dword [eax + 0x34], 1
cmove ecx, edx
mov eax, dword [esp + 0x74]
mov dword [edi + 0x28], ecx
mov dword [eax], ebx
test esi, esi
je 0x10128ed7
cmp dword [0x10178a38], 0
je 0x10128ecd
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x10128e9b
push eax
call dword [0x10178a88]
add esp, 4
push esi
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push esi
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x10128ed7
push eax
call dword [0x10178a90]
jmp 0x10128ed4
push esi
call dword [0x10178a5c]
add esp, 4
lea ecx, [esp + 0x54]
call fcn.10115030
mov ecx, dword [esp + 0x30]
call fcn.1011d160
mov ebx, dword [esp + 0x20]
jmp 0x10128ef8
call fcn.1011d160
test ebx, ebx
je 0x10128f59
cmp dword [0x10178a38], 0
je 0x10128f4f
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x10128f14
push eax
call dword [0x10178a88]
add esp, 4
push ebx
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push ebx
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x10128f59
push eax
call dword [0x10178a90]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
push ebx
call dword [0x10178a5c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret