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

Disassembly:
sub esp, 0x110
mov eax, dword [0x10048200]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x118]
push ebx
mov ebx, dword [esp + 0x118]
push ebp
push esi
push edi
mov ebp, dword [ebx + 0x14]
mov esi, dword [ebx + 0x18]
push 0xc
push dword [0x1004936c]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x114]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x54], 0
mov dword [esp + 0x4c], 0xfcfcfcfc
mov dword [esp + 0x50], 0xfcfc
mov dword [esp + 0x78], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x58], ebp
mov dword [esp + 0x2c], eax
call fcn.10028ef0
mov edi, eax
mov dword [esp + 0x54], edi
test edi, edi
jne 0x1002a5fb
mov eax, 0xfffffc0d
jmp 0x1002acc8
mov eax, dword [edi]
xorps xmm0, xmm0
mov dword [esp + 0x30], 0xc
movq qword [eax], xmm0
mov dword [eax + 8], 0
cmp ebx, dword [ebp + 0x108]
jne 0x1002a62b
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x4c], edi
mov dword [eax], edi
xor eax, eax
jmp 0x1002acc8
movdqa xmm0, xmmword [0x10002d60]
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x38], 0
movzx eax, word [ebp + 0xee]
push esi
push eax
push dword [esp + 0x30]
movdqu xmmword [esp + 0x8c], xmm0
movdqu xmmword [esp + 0x9c], xmm0
movdqu xmmword [esp + 0xac], xmm0
movdqu xmmword [esp + 0xbc], xmm0
movdqu xmmword [esp + 0xcc], xmm0
movdqu xmmword [esp + 0xdc], xmm0
movdqu xmmword [esp + 0xec], xmm0
movdqu xmmword [esp + 0xfc], xmm0
xorps xmm0, xmm0
movdqu xmmword [esp + 0x10c], xmm0
movdqu xmmword [esp + 0x11c], xmm0
call fcn.10018a20
mov esi, eax
test esi, esi
js 0x1002acac
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x3c]
call fcn.10010040
mov esi, eax
test esi, esi
js 0x1002acac
jmp 0x1002a6e0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1002ad3c
lea ecx, [esp + 0x10]
push ecx
push dword [ebp + 0xa4]
push eax
call fcn.1000d810
test eax, eax
je 0x1002acf8
movzx eax, word [eax]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push dword [ebp + 0xbc]
push dword [esp + 0x1c]
call fcn.1000d810
test eax, eax
je 0x1002acf8
push dword [ebp + 0xa0]
movzx eax, byte [eax]
push dword [esp + 0x18]
mov dword [esp + 0x28], eax
call fcn.1000d7a0
push dword [ebp + 0x9c]
mov dword [esp + 0x6c], eax
push dword [esp + 0x18]
call fcn.1000d7a0
push dword [ebp + 0x90]
mov dword [esp + 0x30], eax
push dword [esp + 0x18]
call fcn.1000d7a0
push dword [ebp + 0x98]
mov dword [esp + 0x60], eax
push dword [esp + 0x18]
call fcn.1000d7a0
mov dword [esp + 0x60], eax
lea eax, [esp + 0x10]
push eax
push dword [ebp + 0xc0]
push dword [esp + 0x1c]
call fcn.1000d810
movzx ecx, word [esp + 0x10]
mov ebx, ecx
mov dword [esp + 0x6c], eax
shr ebx, 3
mov dword [esp + 0x28], ebx
test eax, eax
je 0x1002acea
lea eax, [ebx*8]
mov dword [esp + 0x64], eax
cmp ecx, eax
jne 0x1002acea
lea eax, [esp + 0x10]
push eax
push dword [ebp + 0xc8]
push dword [esp + 0x1c]
call fcn.1000d810
mov esi, eax
test esi, esi
je 0x1002acea
movzx eax, word [esp + 0x10]
lea ecx, [ebx*8]
cmp eax, ecx
jne 0x1002acea
mov edx, dword [esp + 0x20]
movzx ecx, dx
test ecx, ecx
je 0x1002a8e0
jle 0x1002acea
cmp ecx, 2
jg 0x1002acea
push dword [ebp + 0x94]
push dword [esp + 0x18]
call fcn.1000d7a0
cmp word [esp + 0x20], 2
mov dword [esp + 0x4c], eax
jne 0x1002a82f
test eax, eax
jne 0x1002ac7c
lea eax, [esp + 0x10]
push eax
push dword [ebp + 0xb8]
push dword [esp + 0x1c]
call fcn.1000d810
test eax, eax
je 0x1002acea
mov eax, dword [eax]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x10]
push eax
push dword [ebp + 0xa8]
push dword [esp + 0x1c]
call fcn.1000d810
test eax, eax
je 0x1002acea
movzx eax, word [eax]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x10]
push eax
push dword [ebp + 0xc4]
push dword [esp + 0x1c]
call fcn.1000d810
mov dword [esp + 0x70], eax
test eax, eax
je 0x1002acea
movzx ecx, word [esp + 0x10]
lea eax, [ebx*8]
cmp ecx, eax
jne 0x1002acea
lea eax, [esp + 0x10]
push eax
push dword [ebp + 0xcc]
push dword [esp + 0x1c]
call fcn.1000d810
mov dword [esp + 0x40], eax
test eax, eax
je 0x1002acea
movzx ecx, word [esp + 0x10]
lea eax, [ebx*8]
cmp ecx, eax
jne 0x1002acea
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp dx, 2
je 0x1002aa74
movzx eax, ax
lea ecx, [esp + 0x7c]
lea eax, [ecx + eax*4]
mov ecx, dword [eax]
mov dword [esp + 0x38], eax
cmp ecx, 0xffff
je 0x1002a92f
mov eax, dword [edi]
or dword [eax + ecx + 4], 0x200
add eax, ecx
test dx, dx
jne 0x1002a91b
or dword [eax + 4], 2
cmp dword [esp + 0x2c], 0
je 0x1002aa69
or dword [eax + 4], 0x20
jmp 0x1002aa69
mov eax, dword [esp + 0x30]
lea eax, [eax + ebx*8]
add eax, 0x18
push eax
push edi
push dword [0x1004936c]
call fcn.1003a220
test eax, eax
je 0x1002ace3
mov ebx, dword [edi]
xorps xmm0, xmm0
add ebx, dword [esp + 0x30]
push dword [esp + 0x64]
mov dword [esp + 0x78], ebx
push dword [esp + 0x70]
lea eax, [ebx + 0x18]
movdqu xmmword [ebx], xmm0
push eax
movq qword [ebx + 0x10], xmm0
call fcn.1003d810
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x1002a9d9
lea ebp, [ebx + 0x1d]
add esi, 2
mov ebx, dword [esp + 0x3c]
mov edi, eax
lea esp, [esp]
movzx eax, word [esi + 2]
push eax
movzx eax, word [esi]
push eax
movzx eax, word [esi - 2]
push eax
call fcn.1002b690
mov ecx, dword [ebx + 0x14]
test byte [ecx + 0x120], 0x80
je 0x1002a9bd
cmp al, 4
je 0x1002a9bb
cmp al, 5
je 0x1002a9bb
cmp al, 6
jne 0x1002a9bd
mov al, 1
mov byte [ebp], al
add esi, 8
add ebp, 8
dec edi
jne 0x1002a990
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x50]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov byte [ebx], cl
mov ecx, dword [esp + 0x60]
mov byte [ebx + 1], al
and ecx, 1
mov eax, dword [esp + 0x5c]
add ecx, ecx
and eax, 1
or ecx, eax
mov eax, dword [esp + 0x68]
add ecx, ecx
and eax, 1
or ecx, eax
mov eax, dword [esp + 0x2c]
add ecx, ecx
and eax, 1
or ecx, eax
mov eax, dword [ebx + 4]
shl ecx, 5
and eax, 0xfffffe1f
or ecx, eax
mov dword [ebx + 4], ecx
test dx, dx
jne 0x1002aa29
or ecx, 2
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x1c]
movzx eax, cx
mov ecx, dword [esp + 0x30]
movzx eax, byte [esp + eax + 0xfc]
shl eax, 0xa
xor eax, dword [ebx + 4]
and eax, 0x400
xor eax, dword [ebx + 4]
or eax, 1
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x28]
mov dword [eax], ecx
mov eax, dword [edi]
lea ecx, [ecx + ebx*8]
add ecx, 0x18
mov dword [esp + 0x30], ecx
inc word [eax]
test dx, dx
je 0x1002ac7c
jmp 0x1002aa95
movzx ecx, ax
mov edx, dword [esp + ecx*4 + 0x7c]
cmp edx, 0xffff
je 0x1002aa8d
mov eax, dword [edi]
or dword [eax + edx + 4], 0x400
mov byte [esp + ecx + 0xfc], 1
cmp dword [esp + 0x4c], 0
jne 0x1002ac7c
mov ebp, dword [esp + 0x30]
lea eax, [ebp + 0x18]
lea eax, [eax + ebx*8]
push eax
push edi
push dword [0x1004936c]
call fcn.1003a220
test eax, eax
je 0x1002ace3
mov ebx, dword [edi]
xorps xmm0, xmm0
push dword [esp + 0x64]
add ebx, ebp
push dword [esp + 0x74]
mov dword [esp + 0x40], ebx
lea eax, [ebx + 0x18]
movdqu xmmword [ebx], xmm0
push eax
movq qword [ebx + 0x10], xmm0
call fcn.1003d810
mov eax, dword [esp + 0x34]
add esp, 0xc
xor ebp, ebp
test eax, eax
je 0x1002ab54
mov esi, dword [esp + 0x40]
lea edi, [ebx + 0x1d]
add esi, 2
mov ebx, eax
lea ecx, [ecx]
movzx eax, word [esi + 2]
push eax
movzx eax, word [esi]
push eax
movzx eax, word [esi - 2]
push eax
call fcn.1002b690
mov ecx, dword [esp + 0x6c]
mov ecx, dword [ecx + ebp*8]
mov dword [edi - 5], ecx
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 0x14]
test byte [ecx + 0x120], 0x80
je 0x1002ab3b
cmp al, 4
je 0x1002ab39
cmp al, 5
je 0x1002ab39
cmp al, 6
jne 0x1002ab3b
mov al, 1
mov byte [edi], al
inc ebp
add esi, 8
add edi, 8
cmp ebp, ebx
jb 0x1002ab00
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov byte [ebx], cl
mov ecx, dword [esp + 0x60]
mov byte [ebx + 1], al
and ecx, 1
mov eax, dword [esp + 0x5c]
add ecx, ecx
mov ebp, dword [esp + 0x50]
and eax, 1
or ecx, eax
mov eax, dword [esp + 0x68]
and eax, 1
add ecx, ecx
or ecx, eax
mov eax, dword [esp + 0x2c]
and eax, 1
add ecx, ecx
or ecx, eax
mov eax, dword [ebx + 4]
and eax, 0xfffffe1f
shl ecx, 5
or ecx, eax
mov eax, dword [esp + 0x44]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x48]
mov word [ebx + 0xc], ax
lea eax, [esp + 0x10]
push eax
mov dword [ebx + 4], ecx
push dword [ebp + 0xd0]
push dword [esp + 0x1c]
call fcn.1000d810
mov esi, dword [esp + 0x20]
test eax, eax
je 0x1002abf7
mov al, byte [eax]
mov byte [esp + 0x1b], al
movzx eax, al
sub eax, 0
je 0x1002abe9
dec eax
jne 0x1002abfc
mov eax, dword [edi]
cmp si, 1
jne 0x1002abe3
or byte [eax + 2], 2
jmp 0x1002abfc
or byte [eax + 2], 0x10
jmp 0x1002abfc
cmp si, 1
jne 0x1002abfc
mov eax, dword [edi]
or byte [eax + 2], 1
jmp 0x1002abfc
mov byte [esp + 0x1b], 0
lea eax, [esp + 0x10]
push eax
push dword [ebp + 0x8c]
push dword [esp + 0x1c]
call fcn.1000d810
test eax, eax
je 0x1002ac43
mov cl, byte [eax]
movzx eax, cl
sub eax, 0
je 0x1002ac35
dec eax
jne 0x1002ac45
mov eax, dword [edi]
cmp si, 1
jne 0x1002ac2f
or byte [eax + 2], 8
jmp 0x1002ac45
or byte [eax + 2], 0x20
jmp 0x1002ac45
cmp si, 1
jne 0x1002ac45
mov eax, dword [edi]
or byte [eax + 2], 4
jmp 0x1002ac45
xor cl, cl
mov al, byte [esp + 0x1b]
mov byte [ebx + 0xe], al
mov byte [ebx + 0xf], cl
cmp si, 1
jne 0x1002ac61
or dword [ebx + 4], 4
mov eax, dword [edi]
or byte [eax + 2], 0x40
jmp 0x1002ac65
or dword [ebx + 4], 8
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
lea ebx, [ebx + eax*8]
mov eax, dword [edi]
add ebx, 0x18
mov dword [esp + 0x30], ebx
inc word [eax]
push 0
push 0
push dword [esp + 0x3c]
call fcn.10010590
mov esi, eax
test esi, esi
js 0x1002acac
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x3c]
call fcn.10010040
mov esi, eax
test esi, esi
jns 0x1002a6e0
push edi
push dword [0x1004936c]
call fcn.1003a290
push dword [esp + 0x34]
call fcn.100113e0
test eax, eax
cmovs esi, eax
mov eax, esi
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003d130
add esp, 0x110
ret 8
mov esi, 0xfffffc0d
jmp 0x1002acac
push dword [esp + 0x24]
push ebp
call fcn.1002a4f0
mov esi, eax
jmp 0x1002acac
test byte [ebp + 0x120], 2
jne 0x1002ad09
push 1
push ebp
call fcn.1000cd30
or dword [ebp + 0x120], 4
lea eax, [ebp + 0x1b2]
push 0
push 0
push 0
push 0xffffe004
push 0
push 0
push eax
mov eax, dword [0x1006b724]
push dword [eax]
call fcn.1003ceb0
mov esi, 0xfffffb4a
jmp 0x1002acac
test esi, esi
js 0x1002acac
push dword [esp + 0x34]
call fcn.10011340
mov esi, eax
test esi, esi
js 0x1002acac
mov ecx, dword [edi]
test byte [ecx + 2], 0xa
je 0x1002ae0a
movzx edx, word [ecx]
mov ebx, 0xc
mov dword [ecx + 4], 0
mov eax, dword [edi]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], edx
mov dword [eax + 8], 0
test edx, edx
je 0x1002ae01
jmp 0x1002ad90
mov ecx, dword [edi]
test byte [ecx + ebx + 4], 4
lea esi, [ecx + ebx]
movzx eax, byte [esi + 1]
movzx ebp, byte [esi]
mov dword [esp + 0x38], eax
je 0x1002ade8
cmp byte [esi + 0xe], 1
jne 0x1002adcd
push esi
push ecx
call fcn.1002b5b0
test eax, eax
je 0x1002adc9
push 1
lea eax, [ebp + 1]
push eax
mov eax, dword [edi]
add eax, 4
push eax
call fcn.1003a47d
mov edx, dword [esp + 0x1c]
cmp byte [esi + 0xf], 1
jne 0x1002ae1e
push 1
lea eax, [ebp + 1]
push eax
mov eax, dword [edi]
add eax, 8
push eax
call fcn.1003a47d
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
lea ebx, [ebx + eax*8]
add ebx, 0x18
dec edx
mov dword [esp + 0x1c], edx
jne 0x1002ad90
test ecx, ecx
jne 0x1002ae0a
mov eax, dword [edi]
mov dword [eax + 8], 0
mov eax, dword [esp + 0x3c]
mov dword [eax + 0x4c], edi
mov eax, dword [esp + 0x58]
mov dword [eax], edi
xor eax, eax
jmp 0x1002acc8
mov ecx, 1
mov dword [esp + 0x2c], ecx
jmp 0x1002adec