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

Disassembly:
push 0xffffffffffffffff
push 0x10081160
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10097288]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x7c]
xor ebp, ebp
mov edi, dword [esp + 0x78]
xor ebx, ebx
mov esi, dword [esp + 0x74]
mov cl, byte [eax + 0x5c]
mov eax, dword [eax]
mov esi, dword [esi]
mov dword [esp + 0x2c], eax
mov eax, dword [edi]
mov byte [esp + 0x30], cl
mov ecx, edi
mov dword [esp + 0x28], esi
call dword [eax + 4]
test eax, eax
jle 0x100423c7
lea ecx, [ecx]
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax + 0xc]
mov esi, eax
mov ecx, edi
mov eax, dword [edi]
push ebx
call dword [eax + 8]
cmp eax, esi
jge 0x100423b7
inc ebp
mov eax, dword [edi]
mov ecx, edi
inc ebx
call dword [eax + 4]
cmp ebx, eax
jl 0x100423a0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
push 0
push dword [esi + 0x18]
inc eax
cdq
push edx
push eax
call fcn.1007f6f0
push 0
push dword [esi + 0x14]
push edx
push eax
call fcn.1007f6f0
mov esi, eax
mov ecx, edx
mov eax, ebp
cdq
push edx
push eax
push ecx
push esi
call fcn.1007f6f0
mov dword [0x1009b7b0], eax
mov ecx, edi
mov eax, dword [edi]
mov ebx, 1
mov dword [0x1009b7b4], edx
call dword [eax + 4]
mov ebp, dword [esp + 0x7c]
cmp eax, ebx
jle 0x1004246f
cmp dword [ebp + 0x58], 0
je 0x10042463
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax + 0xc]
mov edx, dword [edi]
mov ecx, edi
push ebx
mov esi, eax
call dword [edx + 8]
cmp eax, esi
jge 0x10042463
mov eax, dword [esp + 0x28]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lea ecx, [esi - 1]
imul esi, edx
shr ecx, 1
lea eax, [edx - 1]
shr eax, 1
inc ecx
inc eax
imul ecx, eax
mov eax, dword [esp + 0x2c]
inc eax
sub esi, ecx
imul esi, eax
sub dword [0x1009b7b0], esi
sbb dword [0x1009b7b4], 0
mov eax, dword [edi]
mov ecx, edi
inc ebx
call dword [eax + 4]
cmp ebx, eax
jl 0x10042414
mov eax, dword [0x1009b7b0]
xorps xmm0, xmm0
or eax, dword [0x1009b7b4]
movlpd qword [0x1009b7a0], xmm0
jne 0x100424a5
mov dword [0x1009b7a0], 1
mov dword [0x1009b7a4], eax
mov dword [0x1009b7b0], 1
mov dword [0x1009b7b4], eax
xor eax, eax
mov byte [esp + 0x44], 0xff
mov word [esp + 0x46], ax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x44]
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.1000a530
mov dword [esp + 0x6c], 0
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
lea ecx, [esp + 0x54]
mov dword [esp + 0x44], 0
push ecx
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
call fcn.100101c0
mov byte [esp + 0x6c], 2
mov eax, dword [esp + 0x54]
test eax, eax
je 0x10042524
push eax
call fcn.1006f76a
add esp, 4
mov eax, dword [esp + 0x1c]
xor esi, esi
mov bl, byte [esp + 0x30]
mov dword [esp + 0x24], esi
mov eax, dword [eax + 0xc]
mov dword [esp + 0x40], eax
cmp bl, 2
jne 0x100426a6
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x18]
mov edi, ecx
mov eax, dword [eax + 0x14]
mov dword [esp + 0x38], eax
lea eax, [esi + 1]
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
cmp edx, edi
jb 0x1004257d
mov eax, esi
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
cmp edx, dword [esp + 0x38]
jae 0x10042580
inc esi
jmp 0x10042552
lea eax, [esi - 0xd]
xor ecx, ecx
test eax, eax
mov ebp, edi
cmovs eax, ecx
xor esi, esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
lea ebx, [ebx]
lea eax, [esi + 1]
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
cmp edx, ebp
jb 0x100425cb
mov eax, esi
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
cmp edx, dword [esp + 0x38]
jae 0x100425ce
inc esi
jmp 0x100425a0
test esi, esi
je 0x10042631
mov ebx, dword [esp + 0x24]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x38], eax
cmp ebx, eax
jle 0x10042609
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 4]
mov ecx, edx
shr ecx, 1
sub edx, ecx
mov dword [eax + 4], ecx
add dword [eax + 8], edx
mov ecx, eax
call fcn.10040a90
mov eax, dword [esp + 0x38]
push ebx
push esi
inc eax
push eax
jmp 0x10042628
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 4]
mov eax, ecx
shr eax, 1
sub ecx, eax
mov dword [edx + 4], ecx
mov ecx, edx
call fcn.10040a90
mov eax, dword [esp + 0x38]
push ebx
push eax
push 0
lea ecx, [esp + 0x48]
call fcn.10041bf0
mov eax, dword [esp + 0x28]
xor esi, esi
mov ecx, dword [eax + 0x18]
mov edi, ecx
mov eax, dword [eax + 0x14]
mov ebp, eax
lea ebx, [esi + 1]
mov eax, ebx
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
cmp edx, edi
jb 0x1004266c
mov eax, esi
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
cmp edx, ebp
jae 0x10042670
mov esi, ebx
jmp 0x10042641
mov ebp, dword [esp + 0x7c]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x78]
inc eax
mov edx, dword [esp + 0x20]
push ebp
push ecx
mov ecx, dword [esp + 0x24]
push eax
push esi
lea eax, [esp + 0x54]
push eax
push edi
push dword [esp + 0x8c]
call fcn.10044f00
mov esi, dword [esp + 0x40]
add esp, 0x1c
mov bl, byte [esp + 0x30]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jle 0x100426d3
cmp ecx, 1
mov edx, 0x1008861a
mov eax, 0x1008c0b0
cmovle eax, edx
push eax
push ecx
push 0x1008c0b4
push 3
call fcn.100520e0
mov ecx, dword [esp + 0x3c]
add esp, 0x10
movzx ebx, bl
mov eax, ebx
dec eax
je 0x10042703
dec eax
jne 0x10042726
push ebp
push ecx
push ecx
push esi
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x54]
push eax
push edi
push dword [esp + 0x8c]
lea edx, [esp + 0x37]
mov ecx, esi
call fcn.10045410
add esp, 0x1c
jmp 0x1004272a
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x44]
push ebp
push ecx
push eax
push edi
push dword [esp + 0x84]
lea edx, [esp + 0x2f]
mov ecx, esi
call fcn.100451e0
add esp, 0x14
jmp 0x1004272a
mov esi, dword [esp + 0x1c]
push 0x1008c0e4
push 3
call fcn.10052110
push dword [esp + 0x48]
push 0x1008c0e8
push 3
call fcn.100520e0
add esp, 0x14
cmp byte [esp + 0x30], 2
jne 0x10042767
mov eax, dword [esi + 0xc]
sub eax, dword [esp + 0x40]
push eax
push 0x1008c0fc
push 3
call fcn.100520e0
add esp, 0xc
call fcn.100705d7
add eax, 0x20
push eax
call fcn.10070766
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x48]
mov esi, dword [esi + 0xc]
add esp, 4
push dword [esp + 0x30]
push eax
push edi
call fcn.100449c0
mov eax, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [eax + 0xc]
sub eax, esi
push eax
push 0x1008c114
push 3
call fcn.100520e0
add esp, 0xc
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0
dec ebx
je 0x100427ec
dec ebx
jne 0x1004280b
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ebp
push ecx
mov ecx, dword [esp + 0x24]
push ebx
push eax
lea eax, [esp + 0x54]
push eax
push edi
push dword [esp + 0x8c]
call fcn.10044f00
add esp, 0x1c
jmp 0x1004280b
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x44]
push ebp
push ecx
mov ecx, dword [esp + 0x24]
push eax
push edi
push dword [esp + 0x84]
call fcn.10045680
add esp, 0x14
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x10042853
mov edi, dword [esp + 0x48]
mov esi, ebx
cmp ebx, edi
je 0x1004284a
lea ecx, [ecx]
mov eax, dword [esi]
test eax, eax
je 0x10042843
push eax
call fcn.1006f76a
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
add esi, 0xc
cmp esi, edi
jne 0x10042820
push ebx
call fcn.1006f76a
add esp, 4
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret