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

Disassembly:
sub esp, 0x23c
mov eax, dword [0x1020a0c0]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x68], edi
mov eax, dword [edi]
lea ecx, [edi + 0x2678]
mov dword [esp + 0x84], eax
mov dword [esp + 0x60], ecx
mov ecx, dword [edi + 0x28]
mov eax, dword [eax + 0xc]
lea ebx, [eax*8 + 0x101dcaf8]
mov eax, 0x24924925
mul ecx
mov eax, dword [ebx]
sub ecx, edx
mov dword [esp + 0x14], ebx
shr ecx, 1
add ecx, edx
shr ecx, 3
mov dword [esp + 0x80], ecx
cmp eax, 0x159b
je 0x10042b27
nop dword [eax]
lea ecx, [eax + 0x101db238]
mov dword [esp + 0x34], 0
mov al, byte [ecx]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x70], edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x5c], edi
test al, al
je 0x10042b0a
nop dword [eax + eax]
mov byte [esp + 0x13], 0
cmp al, 0x20
jne 0x100422d6
nop dword [eax]
inc ecx
cmp byte [ecx], 0x20
je 0x100422d0
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.10046650
mov edx, dword [esp + 0x6c]
mov ecx, eax
mov dword [esp + 0x64], ecx
test edx, edx
je 0x1004295f
test byte [ebx + 4], 1
mov eax, 0
mov dword [esp + 0x20], 0
setne al
add eax, 0x7fffffff
test edx, edx
je 0x10042680
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], eax
nop dword [eax + eax]
mov byte [esp + 0x12], 0
test edx, edx
je 0x10042669
push 1
mov ecx, esi
call fcn.10048630
mov ecx, dword [esi + 0x54]
movups xmm0, xmmword [ecx + 0x6c]
mov ecx, dword [ecx + 0x7c]
mov dword [esp + 0x98], ecx
movups xmmword [esp + 0x88], xmm0
test eax, eax
jne 0x1004265d
mov ecx, dword [esp + 0x88]
mov eax, ecx
shr eax, 0x10
cmp ax, 2
jle 0x1004265d
movsx esi, cx
xor edi, edi
mov dword [esp + 0x28], esi
xor eax, eax
mov ecx, dword [esp + 0x28]
xor esi, esi
or ebx, 0xffffffff
mov dword [esp + 0x4c], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], esi
test ecx, ecx
jle 0x100428fd
mov edx, dword [esp + 0x94]
movsx esi, word [edx + esi*2]
mov dword [esp + 0x44], ebx
cmp esi, eax
jle 0x10042458
mov ecx, dword [esp + 0x14]
mov edx, eax
test byte [ecx + 4], 3
mov ecx, dword [esp + 0x8c]
lea ecx, [ecx + eax*8]
jne 0x1004240d
add ecx, 4
nop dword [eax]
test ebx, ebx
js 0x100423f2
mov eax, dword [ecx]
cmp eax, edi
jl 0x100423f2
cmp ebp, eax
jg 0x10042403
mov ebp, eax
jmp 0x10042403
mov eax, dword [esp + 0x5c]
mov ebx, edx
mov edi, dword [ecx]
cmp eax, edi
cmovge eax, edi
mov dword [esp + 0x5c], eax
inc edx
add ecx, 8
cmp edx, esi
jle 0x100423e0
jmp 0x10042437
add ecx, 4
test ebx, ebx
js 0x10042426
mov eax, dword [ecx]
cmp eax, edi
jg 0x10042426
cmp dword [esp + 0x5c], eax
jl 0x1004242f
mov dword [esp + 0x5c], eax
jmp 0x1004242f
mov edi, dword [ecx]
mov ebx, edx
cmp ebp, edi
cmovle ebp, edi
inc edx
add ecx, 8
cmp edx, esi
jle 0x10042410
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x2c], ebp
cmp ebx, dword [esp + 0x44]
je 0x10042458
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], esi
lea eax, [esi + 1]
mov esi, dword [esp + 0x48]
inc esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], esi
cmp esi, ecx
jl 0x100423b0
test ebx, ebx
js 0x100428fd
mov eax, dword [esp + 0x8c]
or edx, 0xffffffff
mov esi, dword [esp + 0x90]
mov ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
mov eax, dword [eax + ebx*8]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x48], ebx
mov al, byte [eax + ebx]
and al, 3
cmp al, 1
cmove edx, ebx
mov ebp, edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ebp
nop dword [eax]
cmp ecx, dword [esp + 0x4c]
jle 0x100424c9
dec ecx
jmp 0x100424cd
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x8c]
mov edx, dword [eax + ecx*8 + 4]
mov eax, edx
sub eax, edi
jns 0x100424e2
mov eax, edi
sub eax, edx
cmp eax, 5
jle 0x10042520
mov edx, dword [esp + 0x8c]
mov esi, dword [esp + 0x8c]
mov ebp, dword [edx + ecx*8]
mov edx, ebp
sub edx, dword [esi + ebx*8]
mov esi, dword [esp + 0x90]
jns 0x10042512
mov edx, dword [esp + 0x8c]
mov edx, dword [edx + ebx*8]
sub edx, ebp
lea eax, [eax + eax*4]
shl eax, 2
cmp edx, eax
jle 0x1004253e
mov ebp, dword [esp + 0x54]
mov al, byte [ecx + esi]
and al, 3
mov dword [esp + 0x1c], ecx
cmp al, 1
jne 0x1004253a
test ebp, ebp
mov dword [esp + 0x50], ecx
cmovs ebp, ecx
mov dword [esp + 0x54], ebp
cmp ecx, ebx
jne 0x100424c0
mov esi, dword [esp + 0x48]
cmp esi, dword [esp + 0x3c]
jge 0x1004254b
inc esi
jmp 0x1004254f
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + esi*8 + 4]
lea edx, [eax + esi*8]
mov eax, ecx
mov dword [esp + 0x7c], edx
sub eax, edi
jns 0x1004256b
mov eax, edi
sub eax, ecx
mov ebp, dword [esp + 0x38]
cmp eax, 5
jle 0x1004258a
mov edx, dword [edx]
mov ecx, edx
sub ecx, ebp
jns 0x10042580
mov ecx, ebp
sub ecx, edx
lea eax, [eax + eax*4]
shl eax, 2
cmp ecx, eax
jle 0x100425b3
mov eax, dword [esp + 0x90]
mov dword [esp + 0x28], esi
mov al, byte [esi + eax]
and al, 3
cmp al, 1
jne 0x100425af
mov eax, dword [esp + 0x50]
test eax, eax
mov dword [esp + 0x54], esi
cmovs eax, esi
mov dword [esp + 0x50], eax
cmp esi, ebx
jne 0x10042542
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 4]
test al, 0x10
je 0x1004288f
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax + 0x28]
mov eax, 0x51eb851f
mul ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x8c]
shr edx, 3
mov dword [esp + 0x74], edx
mov esi, dword [ecx + esi*8]
mov eax, dword [ecx + eax*8]
mov ecx, eax
sub ecx, esi
sub esi, eax
test ecx, ecx
cmovns esi, ecx
cmp esi, edx
mov esi, dword [esp + 0x28]
jge 0x10042893
mov eax, dword [esp + 0x3c]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x4c]
add ecx, 2
sub eax, edx
cmp ecx, eax
jg 0x10042893
shr dword [esp + 0x48], 2
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], eax
mov eax, ebx
cmp eax, edx
jle 0x1004263b
dec eax
jmp 0x1004263f
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x8c]
mov ecx, dword [ecx + eax*8]
cmp ecx, ebp
jne 0x100426b6
cmp eax, ebx
jne 0x10042634
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, dword [esp + 0x6c]
jb 0x10042330
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x70]
cmp eax, 0x80000000
je 0x1004295f
cmp eax, 0x7fffffff
je 0x1004295f
cmp byte [esp + 0x13], 0
mov edx, dword [esp + 0x34]
je 0x10042951
mov dword [esp + edi*4 + 0xb0], eax
inc edi
mov dword [esp + 0x70], edi
jmp 0x10042963
cmp eax, ebx
je 0x10042651
cmp ecx, ebp
mov ebp, dword [esp + 0x1c]
mov ecx, esi
setl dh
mov dword [esp + 0x58], ecx
xor al, al
mov byte [esp + 0x1b], dh
mov byte [esp + 0x12], al
test al, al
jne 0x10042700
mov eax, dword [esp + 0x90]
or ebx, 0xffffffff
mov ecx, esi
mov byte [esp + 0x12], 1
mov dword [esp + 0x58], ecx
mov al, byte [esi + eax]
and al, 3
cmp al, 1
cmove ebx, esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], ebx
jmp 0x10042704
mov ebx, dword [esp + 0x44]
cmp esi, dword [esp + 0x3c]
jge 0x1004270d
inc esi
jmp 0x10042711
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + ecx*8 + 4]
mov eax, edi
sub eax, ecx
mov dword [esp + 0x78], ecx
jns 0x1004272a
mov eax, ecx
sub eax, edi
cmp eax, dword [esp + 0x48]
jle 0x1004273b
xor al, al
mov byte [esp + 0x12], al
jmp 0x100427dd
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + esi*8 + 4]
mov ebp, eax
sub ebp, ecx
jns 0x10042750
mov ebp, ecx
sub ebp, eax
cmp ebp, 5
jle 0x1004278d
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x58]
mov eax, dword [ecx + esi*8]
mov edx, dword [ecx + edx*8]
mov ecx, eax
sub ecx, edx
sub edx, eax
test ecx, ecx
lea eax, [ebp*4]
cmovns edx, ecx
add eax, ebp
shl eax, 2
cmp edx, eax
mov dh, byte [esp + 0x1b]
jg 0x1004278d
xor al, al
mov byte [esp + 0x12], al
jmp 0x100427d9
mov eax, dword [esp + 0x90]
mov al, byte [esi + eax]
and al, 3
cmp al, 1
jne 0x100427aa
test ebx, ebx
mov dword [esp + 0x38], esi
cmovs ebx, esi
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x8c]
mov eax, dword [esp + 0x58]
mov ecx, dword [ebx + esi*8]
mov ebx, dword [ebx + eax*8]
cmp ebx, ecx
mov eax, ecx
setl dl
sub eax, ebx
sub ebx, ecx
test eax, eax
cmovns ebx, eax
cmp dl, dh
jne 0x100427d5
cmp ebx, dword [esp + 0x74]
jge 0x100427ee
mov al, byte [esp + 0x12]
mov ebp, dword [esp + 0x1c]
cmp esi, ebp
je 0x10042889
mov ecx, dword [esp + 0x58]
jmp 0x100426d3
mov edi, dword [esp + 0x78]
mov ebx, dword [esp + 0x38]
cmp esi, dword [esp + 0x3c]
jge 0x100427ff
inc esi
jmp 0x10042803
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x8c]
mov ecx, dword [edx + esi*8 + 4]
mov eax, ecx
sub eax, edi
jns 0x10042818
mov eax, edi
sub eax, ecx
cmp eax, 5
jle 0x10042843
mov eax, dword [esp + 0x58]
mov edx, dword [edx + eax*8]
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax]
sub ecx, edx
sub edx, dword [eax]
test ecx, ecx
lea eax, [ebp*4]
cmovns edx, ecx
add eax, ebp
shl eax, 2
cmp edx, eax
jle 0x1004286a
mov eax, dword [esp + 0x90]
mov al, byte [esi + eax]
and al, 3
cmp al, 1
jne 0x10042860
mov eax, dword [esp + 0x44]
test eax, eax
cmovs eax, esi
mov dword [esp + 0x44], eax
mov ebx, esi
cmp esi, dword [esp + 0x1c]
je 0x1004287f
jmp 0x100427f6
cmp esi, dword [esp + 0x4c]
jle 0x1004287b
mov ebp, dword [esp + 0x58]
dec esi
mov edx, dword [esp + 0x44]
jmp 0x1004289f
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x44]
jmp 0x1004289f
mov esi, dword [esp + 0x28]
jmp 0x10042897
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
test edx, edx
js 0x100428c8
test ebx, ebx
js 0x100428c8
mov ecx, dword [esp + 0x8c]
mov edx, dword [ecx + edx*8]
mov eax, dword [ecx + ebx*8]
mov ecx, eax
sub ecx, edx
sub edx, eax
test ecx, ecx
cmovns edx, ecx
cmp edx, dword [esp + 0x80]
jg 0x100428f8
mov ecx, dword [esp + 0x90]
mov al, byte [ecx + ebp]
and al, 3
cmp al, 1
jne 0x100428e1
mov al, byte [ecx + esi]
and al, 3
cmp al, 1
je 0x100428f8
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x12], 1
movzx eax, word [ebx + 4]
test al, 4
jne 0x10042655
jmp 0x10042901
mov byte [esp + 0x12], 0
mov ebx, dword [esp + 0x14]
test byte [ebx + 4], 1
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x40]
je 0x10042932
mov ecx, dword [esp + 0x20]
cmp edi, eax
jle 0x10042665
mov dl, byte [esp + 0x12]
mov eax, edi
mov dword [esp + 0x30], eax
mov byte [esp + 0x13], dl
jmp 0x10042665
mov edx, dword [esp + 0x24]
cmp edi, eax
jge 0x10042948
mov cl, byte [esp + 0x12]
mov eax, edi
mov dword [esp + 0x30], eax
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x20]
jmp 0x10042669
mov dword [esp + edx*4 + 0x17c], eax
inc edx
mov dword [esp + 0x34], edx
jmp 0x10042963
mov edx, dword [esp + 0x34]
mov al, byte [ecx]
test al, al
jne 0x100422c0
mov ebx, dword [esp + 0x5c]
mov eax, edi
test edx, edx
jne 0x10042983
mov dword [esp + 0x34], edx
test eax, eax
je 0x10042b06
mov esi, 1
cmp edi, esi
jbe 0x100429ce
nop dword [eax]
mov eax, esi
test esi, esi
je 0x100429c5
nop word [eax + eax]
mov ecx, dword [esp + eax*4 + 0xac]
mov edx, dword [esp + eax*4 + 0xb0]
cmp edx, ecx
jge 0x100429c5
mov dword [esp + eax*4 + 0xb0], ecx
mov dword [esp + eax*4 + 0xac], edx
sub eax, 1
jne 0x100429a0
inc esi
cmp esi, edi
jb 0x10042990
mov edx, dword [esp + 0x34]
mov esi, 1
cmp edx, esi
jbe 0x10042a45
mov eax, esi
test esi, esi
je 0x10042a09
nop dword [eax]
mov ecx, dword [esp + eax*4 + 0x178]
mov edx, dword [esp + eax*4 + 0x17c]
cmp edx, ecx
jge 0x10042a05
mov dword [esp + eax*4 + 0x17c], ecx
mov dword [esp + eax*4 + 0x178], edx
sub eax, 1
jne 0x100429e0
mov edx, dword [esp + 0x34]
inc esi
cmp esi, edx
jb 0x100429d7
mov esi, dword [esp + 0x60]
mov ecx, dword [esi + 0xd8]
lea eax, [ecx + ecx*8]
lea esi, [esi + eax*4]
lea eax, [ecx + 1]
add esi, 0xdc
mov ecx, dword [esp + 0x60]
mov dword [ecx + 0xd8], eax
shr edx, 1
mov eax, dword [esp + edx*4 + 0x17c]
test edi, edi
jne 0x10042a7c
mov dword [esi + 0xc], eax
mov dword [esi], eax
jmp 0x10042a8a
mov esi, dword [esp + 0x60]
mov ecx, dword [esi + 0xd8]
lea eax, [ecx + ecx*8]
lea esi, [esi + eax*4]
lea eax, [ecx + 1]
add esi, 0xdc
mov ecx, dword [esp + 0x60]
mov dword [ecx + 0xd8], eax
test edx, edx
jne 0x10042a31
shr edi, 1
mov eax, dword [esp + edi*4 + 0xb0]
mov dword [esi + 0xc], eax
mov dword [esi], eax
jmp 0x10042a8a
shr edi, 1
mov dword [esi], eax
mov eax, dword [esp + edi*4 + 0xb0]
mov dword [esi + 0xc], eax
mov edi, dword [esi + 0xc]
mov edx, dword [esi]
cmp edi, edx
je 0x10042abb
mov eax, dword [esp + 0x14]
mov ecx, 0
test byte [eax + 4], 3
setne cl
xor eax, eax
cmp edi, edx
setg al
cmp eax, ecx
je 0x10042abb
lea eax, [edi + edx]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0xc], eax
mov dword [esi], eax
mov dword [esi + 0x1c], ebx
xor eax, eax
mov ebx, dword [esp + 0x14]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x20], 0
test byte [ebx + 4], 1
je 0x10042ae0
mov dword [esi + 0x20], 2
mov eax, 2
test byte [ebx + 4], 2
je 0x10042aec
or eax, 4
mov dword [esi + 0x20], eax
test byte [ebx + 4], 4
je 0x10042af8
or eax, 8
mov dword [esi + 0x20], eax
test byte [ebx + 4], 8
je 0x10042b0a
or eax, 0x10
mov dword [esi + 0x20], eax
jmp 0x10042b0a
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 8]
add ebx, 8
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], ebx
cmp eax, 0x159b
jne 0x10042290
mov edi, dword [esp + 0x68]
mov ebp, dword [edi + 0x2750]
lea esi, [edi + 0x2678]
test ebp, ebp
je 0x10042bfb
xor eax, eax
test ebp, ebp
je 0x10042b5f
lea ecx, [esi + 0xdc]
nop word [eax + eax]
mov dword [esp + eax*4 + 0x88], ecx
inc eax
add ecx, 0x24
cmp eax, ebp
jb 0x10042b50
mov ebx, 1
cmp ebp, ebx
jbe 0x10042bba
nop dword [eax + eax]
mov edx, ebx
mov eax, dword [esp + edx*4 + 0x84]
test byte [eax + 0x20], 6
je 0x10042b83
mov esi, dword [eax]
jmp 0x10042b86
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + edx*4 + 0x88]
test byte [ecx + 0x20], 6
je 0x10042b97
mov edi, dword [ecx]
jmp 0x10042b9a
mov edi, dword [ecx + 0xc]
cmp edi, esi
jge 0x10042bb1
mov dword [esp + edx*4 + 0x88], eax
mov dword [esp + edx*4 + 0x84], ecx
sub edx, 1
jne 0x10042b72
inc ebx
cmp ebx, ebp
jb 0x10042b70
mov esi, dword [esp + 0x60]
lea eax, [ebp - 1]
xor edx, edx
test eax, eax
je 0x10042bf7
mov eax, dword [esp + edx*4 + 0x88]
test byte [eax + 0x20], 6
je 0x10042bd3
add eax, 0xc
mov ecx, dword [esp + edx*4 + 0x8c]
test byte [ecx + 0x20], 6
je 0x10042be3
add ecx, 0xc
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x10042beb
mov dword [eax], ecx
mov eax, dword [esi + 0xd8]
inc edx
dec eax
cmp edx, eax
jb 0x10042bc3
xor eax, eax
jmp 0x10042c2e
mov edx, dword [edi + 0x24]
xor ecx, ecx
mov esi, dword [edx + 8]
cmp dword [edx + 4], ecx
jle 0x10042c29
mov edi, dword [esp + 0x84]
lea ebx, [ecx + 0x42]
movzx eax, word [esi + ecx*2]
and eax, 0x3fff
cmp eax, dword [edi]
jne 0x10042c23
mov word [esi + ecx*2], bx
inc ecx
cmp ecx, dword [edx + 4]
jl 0x10042c12
mov eax, 1
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1019d163
add esp, 0x23c
ret