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

Disassembly:
sub esp, 0x238
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 + 0xac], eax
mov dword [esp + 0x60], ecx
mov ecx, dword [edi + 0x28]
mov eax, dword [eax + 0xc]
lea ebx, [eax*8 + 0x1011d940]
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 + 0xa8], ecx
cmp eax, 0x159b
je 0x1002c2a7
nop
lea ecx, [eax + 0x1011c080]
mov dword [esp + 0x34], 0
mov al, byte [ecx]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x98], edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x5c], edi
test al, al
je 0x1002c28a
nop dword [eax + eax]
mov byte [esp + 0x13], 0
cmp al, 0x20
jne 0x1002ba96
nop dword [eax]
inc ecx
cmp byte [ecx], 0x20
je 0x1002ba90
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.1002fd60
mov edx, dword [esp + 0x94]
mov ecx, eax
mov dword [esp + 0x64], ecx
test edx, edx
je 0x1002c0e1
test byte [ebx + 4], 1
mov eax, 0
mov dword [esp + 0x20], 0
setne al
add eax, 0x7fffffff
test edx, edx
je 0x1002be11
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], eax
nop
mov byte [esp + 0x12], 0
test edx, edx
je 0x1002bdf4
push 1
mov ecx, esi
call fcn.10031bf0
mov ecx, dword [esi + 0x54]
movups xmm0, xmmword [ecx + 0x6c]
mov ecx, dword [ecx + 0x7c]
mov dword [esp + 0x7c], ecx
movups xmmword [esp + 0x6c], xmm0
test eax, eax
jne 0x1002bde8
mov ecx, dword [esp + 0x6c]
mov eax, ecx
shr eax, 0x10
cmp ax, 2
jle 0x1002bde8
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 0x1002c07f
mov edx, dword [esp + 0x78]
movsx esi, word [edx + esi*2]
mov dword [esp + 0x44], ebx
cmp esi, eax
jle 0x1002bc05
mov ecx, dword [esp + 0x14]
mov edx, eax
test byte [ecx + 4], 3
mov ecx, dword [esp + 0x70]
lea ecx, [ecx + eax*8]
jne 0x1002bbbd
add ecx, 4
nop word [eax + eax]
test ebx, ebx
js 0x1002bba2
mov eax, dword [ecx]
cmp eax, edi
jl 0x1002bba2
cmp ebp, eax
jg 0x1002bbb3
mov ebp, eax
jmp 0x1002bbb3
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 0x1002bb90
jmp 0x1002bbe7
add ecx, 4
test ebx, ebx
js 0x1002bbd6
mov eax, dword [ecx]
cmp eax, edi
jg 0x1002bbd6
cmp dword [esp + 0x5c], eax
jl 0x1002bbdf
mov dword [esp + 0x5c], eax
jmp 0x1002bbdf
mov edi, dword [ecx]
mov ebx, edx
cmp ebp, edi
cmovle ebp, edi
inc edx
add ecx, 8
cmp edx, esi
jle 0x1002bbc0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x2c], ebp
cmp ebx, dword [esp + 0x44]
je 0x1002bc05
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 0x1002bb64
test ebx, ebx
js 0x1002c07f
mov eax, dword [esp + 0x70]
or edx, 0xffffffff
mov esi, dword [esp + 0x74]
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 + 0x74]
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 0x1002bc69
dec ecx
jmp 0x1002bc6d
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x70]
mov edx, dword [eax + ecx*8 + 4]
mov eax, edx
sub eax, edi
jns 0x1002bc7f
mov eax, edi
sub eax, edx
cmp eax, 5
jle 0x1002bcb1
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x70]
mov ebp, dword [edx + ecx*8]
mov edx, ebp
sub edx, dword [esi + ebx*8]
mov esi, dword [esp + 0x74]
jns 0x1002bca3
mov edx, dword [esp + 0x70]
mov edx, dword [edx + ebx*8]
sub edx, ebp
lea eax, [eax + eax*4]
shl eax, 2
cmp edx, eax
jle 0x1002bccf
mov ebp, dword [esp + 0x54]
mov al, byte [ecx + esi]
and al, 3
mov dword [esp + 0x1c], ecx
cmp al, 1
jne 0x1002bccb
test ebp, ebp
mov dword [esp + 0x50], ecx
cmovs ebp, ecx
mov dword [esp + 0x54], ebp
cmp ecx, ebx
jne 0x1002bc60
mov esi, dword [esp + 0x48]
cmp esi, dword [esp + 0x3c]
jge 0x1002bcdc
inc esi
jmp 0x1002bce0
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + esi*8 + 4]
lea edx, [eax + esi*8]
mov eax, ecx
mov dword [esp + 0xa4], edx
sub eax, edi
jns 0x1002bcfc
mov eax, edi
sub eax, ecx
mov ebp, dword [esp + 0x38]
cmp eax, 5
jle 0x1002bd1b
mov edx, dword [edx]
mov ecx, edx
sub ecx, ebp
jns 0x1002bd11
mov ecx, ebp
sub ecx, edx
lea eax, [eax + eax*4]
shl eax, 2
cmp ecx, eax
jle 0x1002bd41
mov eax, dword [esp + 0x74]
mov dword [esp + 0x28], esi
mov al, byte [esi + eax]
and al, 3
cmp al, 1
jne 0x1002bd3d
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 0x1002bcd3
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 4]
test al, 0x10
je 0x1002c017
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 + 0x70]
shr edx, 3
mov dword [esp + 0x9c], 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 0x1002c01b
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 0x1002c01b
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 0x1002bdc9
dec eax
jmp 0x1002bdcd
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx + eax*8]
cmp ecx, ebp
jne 0x1002be4a
cmp eax, ebx
jne 0x1002bdc2
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 + 0x94]
jb 0x1002baf0
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x98]
cmp eax, 0x80000000
je 0x1002c0e1
cmp eax, 0x7fffffff
je 0x1002c0e1
cmp byte [esp + 0x13], 0
mov edx, dword [esp + 0x34]
je 0x1002c0d3
mov dword [esp + edi*4 + 0xb0], eax
inc edi
mov dword [esp + 0x98], edi
jmp 0x1002c0e5
cmp eax, ebx
je 0x1002bddc
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 0x1002be91
mov eax, dword [esp + 0x74]
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 0x1002be95
mov ebx, dword [esp + 0x44]
cmp esi, dword [esp + 0x3c]
jge 0x1002be9e
inc esi
jmp 0x1002bea2
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + ecx*8 + 4]
mov eax, edi
sub eax, ecx
mov dword [esp + 0xa0], ecx
jns 0x1002bebb
mov eax, ecx
sub eax, edi
cmp eax, dword [esp + 0x48]
jle 0x1002becc
xor al, al
mov byte [esp + 0x12], al
jmp 0x1002bf65
mov eax, dword [esp + 0x70]
mov eax, dword [eax + esi*8 + 4]
mov ebp, eax
sub ebp, ecx
jns 0x1002bede
mov ebp, ecx
sub ebp, eax
cmp ebp, 5
jle 0x1002bf18
mov ecx, dword [esp + 0x70]
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 0x1002bf18
xor al, al
mov byte [esp + 0x12], al
jmp 0x1002bf61
mov eax, dword [esp + 0x74]
mov al, byte [esi + eax]
and al, 3
cmp al, 1
jne 0x1002bf32
test ebx, ebx
mov dword [esp + 0x38], esi
cmovs ebx, esi
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x70]
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 0x1002bf5d
cmp ebx, dword [esp + 0x9c]
jge 0x1002bf76
mov al, byte [esp + 0x12]
mov ebp, dword [esp + 0x1c]
cmp esi, ebp
je 0x1002c011
mov ecx, dword [esp + 0x58]
jmp 0x1002be67
mov edi, dword [esp + 0xa0]
mov ebx, dword [esp + 0x38]
cmp esi, dword [esp + 0x3c]
jge 0x1002bf8a
inc esi
jmp 0x1002bf8e
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x70]
mov ecx, dword [edx + esi*8 + 4]
mov eax, ecx
sub eax, edi
jns 0x1002bfa0
mov eax, edi
sub eax, ecx
cmp eax, 5
jle 0x1002bfce
mov eax, dword [esp + 0x58]
mov edx, dword [edx + eax*8]
mov eax, dword [esp + 0xa4]
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 0x1002bff2
mov eax, dword [esp + 0x74]
mov al, byte [esi + eax]
and al, 3
cmp al, 1
jne 0x1002bfe8
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 0x1002c007
jmp 0x1002bf81
cmp esi, dword [esp + 0x4c]
jle 0x1002c003
mov ebp, dword [esp + 0x58]
dec esi
mov edx, dword [esp + 0x44]
jmp 0x1002c027
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x44]
jmp 0x1002c027
mov esi, dword [esp + 0x28]
jmp 0x1002c01f
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
test edx, edx
js 0x1002c04d
test ebx, ebx
js 0x1002c04d
mov ecx, dword [esp + 0x70]
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 + 0xa8]
jg 0x1002c07a
mov ecx, dword [esp + 0x74]
mov al, byte [ecx + ebp]
and al, 3
cmp al, 1
jne 0x1002c063
mov al, byte [ecx + esi]
and al, 3
cmp al, 1
je 0x1002c07a
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x12], 1
movzx eax, word [ebx + 4]
test al, 4
jne 0x1002bde0
jmp 0x1002c083
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 0x1002c0b4
mov ecx, dword [esp + 0x20]
cmp edi, eax
jle 0x1002bdf0
mov dl, byte [esp + 0x12]
mov eax, edi
mov dword [esp + 0x30], eax
mov byte [esp + 0x13], dl
jmp 0x1002bdf0
mov edx, dword [esp + 0x24]
cmp edi, eax
jge 0x1002c0ca
mov cl, byte [esp + 0x12]
mov eax, edi
mov dword [esp + 0x30], eax
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x20]
jmp 0x1002bdf4
mov dword [esp + edx*4 + 0x17c], eax
inc edx
mov dword [esp + 0x34], edx
jmp 0x1002c0e5
mov edx, dword [esp + 0x34]
mov al, byte [ecx]
test al, al
jne 0x1002ba80
mov ebx, dword [esp + 0x5c]
mov eax, edi
test edx, edx
jne 0x1002c105
mov dword [esp + 0x34], edx
test eax, eax
je 0x1002c286
mov esi, 1
cmp edi, esi
jbe 0x1002c14e
nop
mov eax, esi
test esi, esi
je 0x1002c145
nop word [eax + eax]
mov ecx, dword [esp + eax*4 + 0xac]
mov edx, dword [esp + eax*4 + 0xb0]
cmp edx, ecx
jge 0x1002c145
mov dword [esp + eax*4 + 0xb0], ecx
mov dword [esp + eax*4 + 0xac], edx
sub eax, 1
jne 0x1002c120
inc esi
cmp esi, edi
jb 0x1002c110
mov edx, dword [esp + 0x34]
mov esi, 1
cmp edx, esi
jbe 0x1002c1c5
mov eax, esi
test esi, esi
je 0x1002c189
nop dword [eax]
mov ecx, dword [esp + eax*4 + 0x178]
mov edx, dword [esp + eax*4 + 0x17c]
cmp edx, ecx
jge 0x1002c185
mov dword [esp + eax*4 + 0x17c], ecx
mov dword [esp + eax*4 + 0x178], edx
sub eax, 1
jne 0x1002c160
mov edx, dword [esp + 0x34]
inc esi
cmp esi, edx
jb 0x1002c157
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 0x1002c1fc
mov dword [esi + 0xc], eax
mov dword [esi], eax
jmp 0x1002c20a
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 0x1002c1b1
shr edi, 1
mov eax, dword [esp + edi*4 + 0xb0]
mov dword [esi + 0xc], eax
mov dword [esi], eax
jmp 0x1002c20a
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 0x1002c23b
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 0x1002c23b
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 0x1002c260
mov dword [esi + 0x20], 2
mov eax, 2
test byte [ebx + 4], 2
je 0x1002c26c
or eax, 4
mov dword [esi + 0x20], eax
test byte [ebx + 4], 4
je 0x1002c278
or eax, 8
mov dword [esi + 0x20], eax
test byte [ebx + 4], 8
je 0x1002c28a
or eax, 0x10
mov dword [esi + 0x20], eax
jmp 0x1002c28a
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 0x1002ba50
mov edi, dword [esp + 0x68]
mov ebp, dword [edi + 0x2750]
lea esi, [edi + 0x2678]
test ebp, ebp
je 0x1002c36b
xor eax, eax
test ebp, ebp
je 0x1002c2d3
lea ecx, [esi + 0xdc]
mov dword [esp + eax*4 + 0x6c], ecx
inc eax
add ecx, 0x24
cmp eax, ebp
jb 0x1002c2c7
mov ebx, 1
cmp ebp, ebx
jbe 0x1002c31e
nop dword [eax]
mov edx, ebx
mov eax, dword [esp + edx*4 + 0x68]
test byte [eax + 0x20], 6
je 0x1002c2f0
mov esi, dword [eax]
jmp 0x1002c2f3
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + edx*4 + 0x6c]
test byte [ecx + 0x20], 6
je 0x1002c301
mov edi, dword [ecx]
jmp 0x1002c304
mov edi, dword [ecx + 0xc]
cmp edi, esi
jge 0x1002c315
mov dword [esp + edx*4 + 0x6c], eax
mov dword [esp + edx*4 + 0x68], ecx
sub edx, 1
jne 0x1002c2e2
inc ebx
cmp ebx, ebp
jb 0x1002c2e0
mov esi, dword [esp + 0x60]
lea eax, [ebp - 1]
xor edx, edx
test eax, eax
je 0x1002c35e
nop word [eax + eax]
mov eax, dword [esp + edx*4 + 0x6c]
test byte [eax + 0x20], 6
je 0x1002c33d
add eax, 0xc
mov ecx, dword [esp + edx*4 + 0x70]
test byte [ecx + 0x20], 6
je 0x1002c34a
add ecx, 0xc
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x1002c352
mov dword [eax], ecx
mov eax, dword [esi + 0xd8]
inc edx
dec eax
cmp edx, eax
jb 0x1002c330
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x238
ret
mov edx, dword [edi + 0x24]
xor ecx, ecx
mov esi, dword [edx + 8]
cmp dword [edx + 4], ecx
jle 0x1002c399
mov edi, dword [esp + 0xac]
lea ebx, [ecx + 0x42]
movzx eax, word [esi + ecx*2]
and eax, 0x3fff
cmp eax, dword [edi]
jne 0x1002c393
mov word [esi + ecx*2], bx
inc ecx
cmp ecx, dword [edx + 4]
jl 0x1002c382
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x238
ret