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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x2098
call fcn.00422570
mov eax, dword [0x4538c0]
xor eax, esp
mov dword [esp + 0x2094], eax
push esi
push edi
push 0
call fcn.00429f99
mov esi, eax
mov edi, edx
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
nop word [eax + eax]
push 0x3e7
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call fcn.00429f99
add esp, 4
mov dword [0x453380], eax
cmp dword [0x4532a4], 0
mov dword [0x453384], edx
je 0x40138d
call fcn.00401260
call fcn.0040ac30
mov dword [0x4532a4], 0
call fcn.00401260
mov eax, dword [0x453368]
test eax, eax
je 0x4013a4
push eax
call fcn.0042627a
add esp, 4
mov eax, dword [0x453380]
mov ecx, dword [0x453384]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
call fcn.00429a84
movups xmm0, xmmword [eax]
movaps xmmword [esp + 0x54], xmm0
movups xmm0, xmmword [eax + 0x10]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x2c]
push eax
movups xmmword [esp + 0x78], xmm0
call fcn.00429a84
movaps xmm0, xmmword [esp + 0x58]
xor edx, edx
psrldq xmm0, 4
add esp, 8
movd ecx, xmm0
cmp dword [eax + 4], ecx
setne dl
test edx, edx
je 0x401468
mov esi, dword [0x45335c]
test esi, esi
je 0x401468
lea eax, [esp + 0x60]
push eax
push dword [esi]
call fcn.004297e8
add esp, 8
test eax, eax
jne 0x401461
mov eax, dword [esi + 0x28]
cmp eax, dword [esp + 0x80]
jne 0x401449
mov eax, dword [esi + 0x2c]
cmp eax, dword [esp + 0x84]
jne 0x401449
mov eax, dword [esi + 0x1c]
cmp eax, dword [esp + 0x74]
je 0x401461
lea eax, [esi + 8]
push eax
push dword [esi]
call fcn.004297e8
add esp, 8
mov dword [0x4532a4], 1
mov esi, dword [esi + 0x38]
test esi, esi
jne 0x401415
mov eax, dword [0x453380]
mov ecx, dword [0x453384]
mov dword [esp + 0x38], eax
mov eax, dword [0x4543c8]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x3c], ecx
mov ecx, dword [0x4543cc]
push eax
mov dword [esp + 0x38], ecx
call fcn.00429a84
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x64], xmm0
movups xmm0, xmmword [eax + 0x10]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x3c]
push eax
movaps xmmword [esp + 0x58], xmm0
call fcn.00429a84
movaps xmm0, xmmword [esp + 0x58]
add esp, 8
psrldq xmm0, 0xc
movd ecx, xmm0
cmp dword [eax + 0x1c], ecx
je 0x401515
push 0x453380
call fcn.00429a84
mov edx, 1
push eax
mov ecx, dword [eax + 0x18]
shl edx, cl
mov dword [0x4543c0], edx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
call fcn.00429f86
add esp, 8
mov dword [0x4543c8], eax
mov dword [0x4543cc], edx
cmp dword [0x4532d4], 0
je 0x401937
push dword [0x4532dc]
push dword [0x453384]
push dword [0x453380]
push dword [0x45337c]
push dword [0x453378]
call fcn.00401c70
add esp, 0x14
test eax, eax
je 0x401937
mov eax, dword [0x453368]
test eax, eax
je 0x401594
push eax
push 0x4442bc
push dword [0x453384]
lea eax, [esp + 0xa4]
push dword [0x453380]
push dword [0x4532dc]
push 0
push dword [0x4532d4]
push eax
call fcn.0040b190
add esp, 0x18
push eax
call fcn.004264a3
add esp, 0xc
jmp 0x4015cc
push 0x4442bc
push dword [0x453384]
lea eax, [esp + 0xa0]
push dword [0x453380]
push dword [0x4532dc]
push 0
push dword [0x4532d4]
push eax
call fcn.0040b190
add esp, 0x18
push eax
call fcn.00426384
add esp, 8
mov edi, dword [0x4532dc]
mov ecx, dword [0x453380]
mov esi, dword [0x453384]
mov dword [0x453368], eax
mov dword [0x453378], ecx
mov dword [0x45337c], esi
test edi, edi
je 0x401943
mov edx, dword [0x45328c]
test edx, edx
je 0x401943
lea eax, [edi - 1]
mov dword [esp + 0xc], 1
cmp eax, 5
ja case.default.0x401615
jmp dword [eax*4 + 0x401a20]
mov eax, 0xc
shl eax, 2
jmp 0x401633
mov eax, dword [esp + 0xc]
shl eax, 2
jmp 0x401633
mov eax, dword [esp + 0xc]
lea edi, [eax*8]
sub edi, eax
mov dword [esp + 0xc], edi
mov edi, dword [0x4532dc]
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*2]
shl eax, 3
jmp 0x401656
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
shl dword [esp + 0xc], 4
sub dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
shl eax, 2
jmp 0x401670
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
shl dword [esp + 0xc], 4
sub dword [esp + 0xc], eax
shl dword [esp + 0xc], 2
mov eax, dword [0x4532d8]
test eax, eax
je 0x401694
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
jmp 0x40169c
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0xc]
imul eax, edx
cdq
sub ecx, eax
lea eax, [esp + 0x98]
sbb esi, edx
push esi
push ecx
push edi
push dword [esp + 0x1c]
push dword [0x4532d4]
push eax
call fcn.0040b190
lea eax, [esp + 0xb0]
push eax
call fcn.00426807
add esp, 0x1c
cmp dword [0x4532d8], 0
je 0x401937
cmp dword [0x453294], 2
mov byte [esp + 0x98], 0
mov dword [esp + 0x10], 2
jle 0x401927
mov dx, word [0x4442c0]
lea esi, [esp + 0x98]
lea edi, [esi + 1]
nop dword [eax]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x401710
sub esi, edi
cmp esi, 0x200
jae 0x401927
lea edi, [esp + 0x98]
dec edi
nop dword [eax]
mov cl, byte [edi + 1]
lea edi, [edi + 1]
test cl, cl
jne 0x401730
mov ecx, dword [0x4532d8]
mov esi, 0x4442c4
mov word [edi], dx
mov edi, dword [esp + 0x10]
mov edi, dword [ecx + edi*4]
mov ecx, edi
mov al, byte [ecx]
cmp al, byte [esi]
mov byte [esp + 0xb], al
mov ax, word [0x4442c8]
jne 0x40178b
cmp byte [esp + 0xb], 0
je 0x401787
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
mov byte [esp + 0xb], al
mov ax, word [0x4442c8]
jne 0x40178b
add ecx, 2
add esi, 2
cmp byte [esp + 0xb], 0
jne 0x401751
xor ecx, ecx
jmp 0x401790
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x401811
lea edi, [esp + 0x98]
dec edi
mov cl, byte [edi + 1]
lea edi, [edi + 1]
test cl, cl
jne 0x4017a0
lea edx, [esp + 0x98]
mov word [edi], ax
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4017b7
mov eax, dword [0x45337c]
sub edx, ecx
mov ecx, dword [0x453378]
sub ecx, dword [esp + 0xc]
sbb eax, 0
push eax
mov eax, dword [0x4532d8]
push ecx
push dword [0x4532dc]
push dword [eax + 4]
lea eax, [esp + 0xa8]
push dword [0x4532d4]
add eax, edx
push eax
call fcn.0040b190
lea edi, [esp + 0xb0]
add esp, 0x18
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x401802
jmp 0x4018cf
mov esi, 0x4442cc
mov ecx, edi
mov al, byte [ecx]
cmp al, byte [esi]
mov byte [esp + 0xb], al
mov ax, word [0x4442c8]
jne 0x401852
cmp byte [esp + 0xb], 0
je 0x40184e
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
mov byte [esp + 0xb], al
mov ax, word [0x4442c8]
jne 0x401852
add ecx, 2
add esi, 2
cmp byte [esp + 0xb], 0
jne 0x401818
xor ecx, ecx
jmp 0x401857
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x4018e1
lea edi, [esp + 0x98]
dec edi
mov cl, byte [edi + 1]
lea edi, [edi + 1]
test cl, cl
jne 0x401867
lea edx, [esp + 0x98]
mov word [edi], ax
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x401880
mov eax, dword [0x45337c]
sub edx, ecx
mov ecx, dword [0x453378]
sub ecx, dword [esp + 0xc]
sbb eax, 0
push eax
push ecx
push dword [0x4532dc]
lea eax, [esp + 0xa4]
push 0
push dword [0x4532d4]
add eax, edx
push eax
call fcn.0040b190
lea edi, [esp + 0xb0]
add esp, 0x18
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4018c5
mov ax, word [0x4442c8]
mov dx, word [0x4442c0]
mov word [edi], ax
jmp 0x401912
mov esi, edi
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x4018e3
sub edi, esi
mov dword [esp + 0x14], edi
lea edi, [esp + 0x98]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4018f8
mov ecx, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [0x453294]
jl 0x401703
lea eax, [esp + 0x99]
push eax
call fcn.00429026
add esp, 4
mov ecx, dword [0x453380]
mov esi, dword [0x453384]
cmp dword [0x453284], 0
jl 0x4019d1
cmp dword [0x453274], 0
je 0x4019d1
mov eax, dword [0x452690]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x48], ecx
mov ecx, dword [0x452694]
push eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x48], ecx
call fcn.00429a84
movups xmm0, xmmword [eax]
movaps xmmword [esp + 0x54], xmm0
movups xmm0, xmmword [eax + 0x10]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x4c]
push eax
movups xmmword [esp + 0x78], xmm0
call fcn.00429a84
movaps xmm0, xmmword [esp + 0x58]
add esp, 8
psrldq xmm0, 4
movd ecx, xmm0
cmp dword [eax + 4], ecx
je 0x4019d1
push dword [0x453284]
push dword [0x453274]
call fcn.00401040
add esp, 8
cmp dword [0x4532a8], 0
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
je 0x401350
inc dword [0x453290]
call fcn.00401260
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e7
call esi
push 0x3e7
call esi
push 0x3e7
call esi
mov ecx, dword [esp + 0x209c]
pop edi
pop esi
xor ecx, esp
call fcn.0042255f
mov esp, ebp
pop ebp
ret