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

Disassembly:
sub esp, 0x23c
mov eax, dword [0x1020c0c0]
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 + 0x101dfb18]
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 0x100435e7
nop dword [eax]
lea ecx, [eax + 0x101de258]
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 0x100435ca
nop dword [eax + eax]
mov byte [esp + 0x13], 0
cmp al, 0x20
jne 0x10042d96
nop dword [eax]
inc ecx
cmp byte [ecx], 0x20
je 0x10042d90
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.10047110
mov edx, dword [esp + 0x6c]
mov ecx, eax
mov dword [esp + 0x64], ecx
test edx, edx
je 0x1004341f
test byte [ebx + 4], 1
mov eax, 0
mov dword [esp + 0x20], 0
setne al
add eax, 0x7fffffff
test edx, edx
je 0x10043140
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 0x10043129
push 1
mov ecx, esi
call fcn.100490f0
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 0x1004311d
mov ecx, dword [esp + 0x88]
mov eax, ecx
shr eax, 0x10
cmp ax, 2
jle 0x1004311d
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 0x100433bd
mov edx, dword [esp + 0x94]
movsx esi, word [edx + esi*2]
mov dword [esp + 0x44], ebx
cmp esi, eax
jle 0x10042f18
mov ecx, dword [esp + 0x14]
mov edx, eax
test byte [ecx + 4], 3
mov ecx, dword [esp + 0x8c]
lea ecx, [ecx + eax*8]
jne 0x10042ecd
add ecx, 4
nop dword [eax]
test ebx, ebx
js 0x10042eb2
mov eax, dword [ecx]
cmp eax, edi
jl 0x10042eb2
cmp ebp, eax
jg 0x10042ec3
mov ebp, eax
jmp 0x10042ec3
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 0x10042ea0
jmp 0x10042ef7
add ecx, 4
test ebx, ebx
js 0x10042ee6
mov eax, dword [ecx]
cmp eax, edi
jg 0x10042ee6
cmp dword [esp + 0x5c], eax
jl 0x10042eef
mov dword [esp + 0x5c], eax
jmp 0x10042eef
mov edi, dword [ecx]
mov ebx, edx
cmp ebp, edi
cmovle ebp, edi
inc edx
add ecx, 8
cmp edx, esi
jle 0x10042ed0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x2c], ebp
cmp ebx, dword [esp + 0x44]
je 0x10042f18
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 0x10042e70
test ebx, ebx
js 0x100433bd
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 0x10042f89
dec ecx
jmp 0x10042f8d
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x8c]
mov edx, dword [eax + ecx*8 + 4]
mov eax, edx
sub eax, edi
jns 0x10042fa2
mov eax, edi
sub eax, edx
cmp eax, 5
jle 0x10042fe0
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 0x10042fd2
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 0x10042ffe
mov ebp, dword [esp + 0x54]
mov al, byte [ecx + esi]
and al, 3
mov dword [esp + 0x1c], ecx
cmp al, 1
jne 0x10042ffa
test ebp, ebp
mov dword [esp + 0x50], ecx
cmovs ebp, ecx
mov dword [esp + 0x54], ebp
cmp ecx, ebx
jne 0x10042f80
mov esi, dword [esp + 0x48]
cmp esi, dword [esp + 0x3c]
jge 0x1004300b
inc esi
jmp 0x1004300f
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 0x1004302b
mov eax, edi
sub eax, ecx
mov ebp, dword [esp + 0x38]
cmp eax, 5
jle 0x1004304a
mov edx, dword [edx]
mov ecx, edx
sub ecx, ebp
jns 0x10043040
mov ecx, ebp
sub ecx, edx
lea eax, [eax + eax*4]
shl eax, 2
cmp ecx, eax
jle 0x10043073
mov eax, dword [esp + 0x90]
mov dword [esp + 0x28], esi
mov al, byte [esi + eax]
and al, 3
cmp al, 1
jne 0x1004306f
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 0x10043002
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 4]
test al, 0x10
je 0x1004334f
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 0x10043353
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 0x10043353
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 0x100430fb
dec eax
jmp 0x100430ff
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x8c]
mov ecx, dword [ecx + eax*8]
cmp ecx, ebp
jne 0x10043176
cmp eax, ebx
jne 0x100430f4
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 0x10042df0
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x70]
cmp eax, 0x80000000
je 0x1004341f
cmp eax, 0x7fffffff
je 0x1004341f
cmp byte [esp + 0x13], 0
mov edx, dword [esp + 0x34]
je 0x10043411
mov dword [esp + edi*4 + 0xb0], eax
inc edi
mov dword [esp + 0x70], edi
jmp 0x10043423
cmp eax, ebx
je 0x10043111
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 0x100431c0
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 0x100431c4
mov ebx, dword [esp + 0x44]
cmp esi, dword [esp + 0x3c]
jge 0x100431cd
inc esi
jmp 0x100431d1
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 0x100431ea
mov eax, ecx
sub eax, edi
cmp eax, dword [esp + 0x48]
jle 0x100431fb
xor al, al
mov byte [esp + 0x12], al
jmp 0x1004329d
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + esi*8 + 4]
mov ebp, eax
sub ebp, ecx
jns 0x10043210
mov ebp, ecx
sub ebp, eax
cmp ebp, 5
jle 0x1004324d
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 0x1004324d
xor al, al
mov byte [esp + 0x12], al
jmp 0x10043299
mov eax, dword [esp + 0x90]
mov al, byte [esi + eax]
and al, 3
cmp al, 1
jne 0x1004326a
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 0x10043295
cmp ebx, dword [esp + 0x74]
jge 0x100432ae
mov al, byte [esp + 0x12]
mov ebp, dword [esp + 0x1c]
cmp esi, ebp
je 0x10043349
mov ecx, dword [esp + 0x58]
jmp 0x10043193
mov edi, dword [esp + 0x78]
mov ebx, dword [esp + 0x38]
cmp esi, dword [esp + 0x3c]
jge 0x100432bf
inc esi
jmp 0x100432c3
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x8c]
mov ecx, dword [edx + esi*8 + 4]
mov eax, ecx
sub eax, edi
jns 0x100432d8
mov eax, edi
sub eax, ecx
cmp eax, 5
jle 0x10043303
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 0x1004332a
mov eax, dword [esp + 0x90]
mov al, byte [esi + eax]
and al, 3
cmp al, 1
jne 0x10043320
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 0x1004333f
jmp 0x100432b6
cmp esi, dword [esp + 0x4c]
jle 0x1004333b
mov ebp, dword [esp + 0x58]
dec esi
mov edx, dword [esp + 0x44]
jmp 0x1004335f
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x44]
jmp 0x1004335f
mov esi, dword [esp + 0x28]
jmp 0x10043357
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
test edx, edx
js 0x10043388
test ebx, ebx
js 0x10043388
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 0x100433b8
mov ecx, dword [esp + 0x90]
mov al, byte [ecx + ebp]
and al, 3
cmp al, 1
jne 0x100433a1
mov al, byte [ecx + esi]
and al, 3
cmp al, 1
je 0x100433b8
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x12], 1
movzx eax, word [ebx + 4]
test al, 4
jne 0x10043115
jmp 0x100433c1
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 0x100433f2
mov ecx, dword [esp + 0x20]
cmp edi, eax
jle 0x10043125
mov dl, byte [esp + 0x12]
mov eax, edi
mov dword [esp + 0x30], eax
mov byte [esp + 0x13], dl
jmp 0x10043125
mov edx, dword [esp + 0x24]
cmp edi, eax
jge 0x10043408
mov cl, byte [esp + 0x12]
mov eax, edi
mov dword [esp + 0x30], eax
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x20]
jmp 0x10043129
mov dword [esp + edx*4 + 0x17c], eax
inc edx
mov dword [esp + 0x34], edx
jmp 0x10043423
mov edx, dword [esp + 0x34]
mov al, byte [ecx]
test al, al
jne 0x10042d80
mov ebx, dword [esp + 0x5c]
mov eax, edi
test edx, edx
jne 0x10043443
mov dword [esp + 0x34], edx
test eax, eax
je 0x100435c6
mov esi, 1
cmp edi, esi
jbe 0x1004348e
nop dword [eax]
mov eax, esi
test esi, esi
je 0x10043485
nop word [eax + eax]
mov ecx, dword [esp + eax*4 + 0xac]
mov edx, dword [esp + eax*4 + 0xb0]
cmp edx, ecx
jge 0x10043485
mov dword [esp + eax*4 + 0xb0], ecx
mov dword [esp + eax*4 + 0xac], edx
sub eax, 1
jne 0x10043460
inc esi
cmp esi, edi
jb 0x10043450
mov edx, dword [esp + 0x34]
mov esi, 1
cmp edx, esi
jbe 0x10043505
mov eax, esi
test esi, esi
je 0x100434c9
nop dword [eax]
mov ecx, dword [esp + eax*4 + 0x178]
mov edx, dword [esp + eax*4 + 0x17c]
cmp edx, ecx
jge 0x100434c5
mov dword [esp + eax*4 + 0x17c], ecx
mov dword [esp + eax*4 + 0x178], edx
sub eax, 1
jne 0x100434a0
mov edx, dword [esp + 0x34]
inc esi
cmp esi, edx
jb 0x10043497
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 0x1004353c
mov dword [esi + 0xc], eax
mov dword [esi], eax
jmp 0x1004354a
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 0x100434f1
shr edi, 1
mov eax, dword [esp + edi*4 + 0xb0]
mov dword [esi + 0xc], eax
mov dword [esi], eax
jmp 0x1004354a
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 0x1004357b
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 0x1004357b
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 0x100435a0
mov dword [esi + 0x20], 2
mov eax, 2
test byte [ebx + 4], 2
je 0x100435ac
or eax, 4
mov dword [esi + 0x20], eax
test byte [ebx + 4], 4
je 0x100435b8
or eax, 8
mov dword [esi + 0x20], eax
test byte [ebx + 4], 8
je 0x100435ca
or eax, 0x10
mov dword [esi + 0x20], eax
jmp 0x100435ca
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 0x10042d50
mov edi, dword [esp + 0x68]
mov ebp, dword [edi + 0x2750]
lea esi, [edi + 0x2678]
test ebp, ebp
je 0x100436bb
xor eax, eax
test ebp, ebp
je 0x1004361f
lea ecx, [esi + 0xdc]
nop word [eax + eax]
mov dword [esp + eax*4 + 0x88], ecx
inc eax
add ecx, 0x24
cmp eax, ebp
jb 0x10043610
mov ebx, 1
cmp ebp, ebx
jbe 0x1004367a
nop dword [eax + eax]
mov edx, ebx
mov eax, dword [esp + edx*4 + 0x84]
test byte [eax + 0x20], 6
je 0x10043643
mov esi, dword [eax]
jmp 0x10043646
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + edx*4 + 0x88]
test byte [ecx + 0x20], 6
je 0x10043657
mov edi, dword [ecx]
jmp 0x1004365a
mov edi, dword [ecx + 0xc]
cmp edi, esi
jge 0x10043671
mov dword [esp + edx*4 + 0x88], eax
mov dword [esp + edx*4 + 0x84], ecx
sub edx, 1
jne 0x10043632
inc ebx
cmp ebx, ebp
jb 0x10043630
mov esi, dword [esp + 0x60]
lea eax, [ebp - 1]
xor edx, edx
test eax, eax
je 0x100436b7
mov eax, dword [esp + edx*4 + 0x88]
test byte [eax + 0x20], 6
je 0x10043693
add eax, 0xc
mov ecx, dword [esp + edx*4 + 0x8c]
test byte [ecx + 0x20], 6
je 0x100436a3
add ecx, 0xc
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x100436ab
mov dword [eax], ecx
mov eax, dword [esi + 0xd8]
inc edx
dec eax
cmp edx, eax
jb 0x10043683
xor eax, eax
jmp 0x100436ee
mov edx, dword [edi + 0x24]
xor ecx, ecx
mov esi, dword [edx + 8]
cmp dword [edx + 4], ecx
jle 0x100436e9
mov edi, dword [esp + 0x84]
lea ebx, [ecx + 0x42]
movzx eax, word [esi + ecx*2]
and eax, 0x3fff
cmp eax, dword [edi]
jne 0x100436e3
mov word [esi + ecx*2], bx
inc ecx
cmp ecx, dword [edx + 4]
jl 0x100436d2
mov eax, 1
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101a0143
add esp, 0x23c
ret