Function at 0x403210
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cd80
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x530
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x4c0], esi
mov ecx, dword [esi + 0x230]
lea eax, [ebp - 0x4a8]
movups xmm0, xmmword [ebx + 8]
push eax
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
movups xmmword [ebp - 0x518], xmm0
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0x30]
mov ecx, dword [esi + 0x18]
push 0
test eax, eax
jne 0x403be2
mov eax, dword [ebp - 0x48c]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4e8], eax
lea eax, [ebp - 0x4ac]
push eax
push 4
lea eax, [ebp - 0x4e8]
push eax
push ecx
call edi
mov eax, dword [ebp - 0x48c]
cmp eax, 0x14
je 0x403b27
cmp eax, 0x1d
je 0x403b27
mov dword [ebp - 0x4d4], 0
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], 0
sub esp, 0x10
mov dword [ebp - 4], 0
movups xmm0, xmmword [ebp - 0x518]
mov eax, esp
mov ecx, esi
movups xmmword [eax], xmm0
call fcn.004024c0
mov edx, dword [esi + 0x230]
mov dword [ebp - 0x4c8], eax
mov dword [ebp - 0x4b0], 0
test edx, edx
je 0x403374
movups xmm0, xmmword [ebp - 0x518]
mov ecx, dword [edx]
lea eax, [ebp - 0x4b4]
push eax
sub esp, 0x10
mov eax, esp
push edx
movups xmmword [eax], xmm0
call dword [ecx + 0x28]
test eax, eax
jne 0x403374
mov eax, dword [ebp - 0x4b4]
lea edx, [ebp - 0x4c4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
jne 0x403368
mov eax, dword [ebp - 0x4c4]
lea edx, [ebp - 0x4b0]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x4b4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [esi + 0x230]
mov eax, dword [ebp - 0x4b0]
mov dword [ebp - 0x4dc], eax
mov dword [ebp - 0x4c4], 0
test edx, edx
je 0x4033f6
movups xmm0, xmmword [ebp - 0x518]
mov ecx, dword [edx]
lea eax, [ebp - 0x4b0]
push eax
sub esp, 0x10
mov eax, esp
push edx
movups xmmword [eax], xmm0
call dword [ecx + 0x28]
test eax, eax
jne 0x4033f6
mov eax, dword [ebp - 0x4b0]
lea edx, [ebp - 0x4b4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
jne 0x4033ea
mov eax, dword [ebp - 0x4b4]
lea edx, [ebp - 0x4c4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x4b4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x4b0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x4c8]
xor eax, eax
mov dword [ebp - 0x4b8], eax
test ecx, ecx
je 0x40343b
mov eax, dword [ecx]
lea edx, [ebp - 0x51c]
push edx
lea edx, [ebp - 0x520]
push edx
lea edx, [ebp - 0x4b8]
push edx
push 0xff
lea edx, [ebp - 0x218]
push edx
push dword [ebp - 0x4dc]
push ecx
call dword [eax + 0x30]
mov eax, dword [ebp - 0x4b8]
add eax, eax
push 0
mov dword [ebp - 0x4b8], eax
lea eax, [ebp - 0x4ac]
push eax
push 4
lea eax, [ebp - 0x4b8]
push eax
push dword [esi + 0x18]
call edi
mov eax, dword [ebp - 0x4b8]
test eax, eax
je 0x40347a
push 0
lea ecx, [ebp - 0x4ac]
push ecx
push eax
lea eax, [ebp - 0x218]
push eax
push dword [esi + 0x18]
call edi
mov ecx, dword [ebp - 0x4d0]
cmp dword [ebp - 0x4d4], ecx
movups xmm0, xmmword [ebp - 0x4a8]
cmovne ecx, dword [ebp - 0x4d4]
sub esp, 0x20
mov eax, esp
mov dword [ebp - 0x4d0], ecx
sub esp, 0x10
mov ecx, esi
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0x498]
movups xmmword [eax + 0x10], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x518]
movups xmmword [eax], xmm0
lea eax, [ebp - 0x4d4]
push eax
call fcn.004030a0
mov edx, dword [ebp - 0x4c8]
mov dword [ebp - 0x4e0], eax
test edx, edx
je 0x403692
mov ecx, dword [ebp - 0x4dc]
test ecx, ecx
je 0x403692
mov eax, dword [edx]
lea esi, [ebp - 0x4b0]
push esi
push 0x10
lea esi, [ebp - 0x458]
mov dword [ebp - 0x4b4], 0
push esi
push ecx
lea ecx, [ebp - 0x4b4]
push ecx
push edx
call dword [eax + 0x50]
mov esi, dword [ebp - 0x4c0]
test eax, eax
jne 0x403692
cmp dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4bc], 0
jbe 0x403655
mov edi, dword [ebp - 0x4d0]
nop
mov ecx, edi
mov dword [ebp - 0x4e4], 0
sub ecx, dword [ebp - 0x4d4]
mov eax, 0x2aaaaaab
imul ecx
xor esi, esi
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp - 0x4bc]
je 0x4035a7
mov eax, dword [ebp + edx*4 - 0x458]
mov dword [ebp - 0x4c4], eax
mov eax, dword [ebp - 0x4d4]
mov edx, dword [ebp - 0x4c4]
cmp edx, dword [eax]
mov edx, dword [ebp - 0x4bc]
je 0x4035a0
inc esi
add eax, 0x30
cmp esi, ecx
jb 0x403580
mov eax, dword [ebp - 0x4e4]
jmp 0x4035a9
mov eax, 1
jmp 0x4035a9
xor eax, eax
test eax, eax
jne 0x403642
xorps xmm0, xmm0
mov dword [ebp - 0x470], eax
movups xmm1, xmmword [ebp - 0x518]
mov dword [ebp - 0x484], eax
mov eax, dword [ebp + edx*4 - 0x458]
movups xmmword [ebp - 0x468], xmm1
mov dword [ebp - 0x488], eax
movlpd qword [ebp - 0x480], xmm0
movlpd qword [ebp - 0x478], xmm0
cmp edi, dword [ebp - 0x4cc]
je 0x40361d
movups xmm0, xmmword [ebp - 0x488]
movups xmmword [edi], xmm0
movups xmm0, xmmword [ebp - 0x478]
movups xmmword [edi + 0x10], xmm0
movups xmmword [edi + 0x20], xmm1
mov edi, dword [ebp - 0x4d0]
add edi, 0x30
mov dword [ebp - 0x4d0], edi
jmp 0x40363c
lea eax, [ebp - 0x488]
push eax
push edi
lea ecx, [ebp - 0x4d4]
call fcn.00404d70
mov edi, dword [ebp - 0x4d0]
mov edx, dword [ebp - 0x4bc]
inc dword [ebp - 0x4e0]
inc edx
mov dword [ebp - 0x4bc], edx
cmp edx, dword [ebp - 0x4b0]
jb 0x403540
mov ecx, dword [ebp - 0x4c8]
lea edx, [ebp - 0x4b0]
push edx
push 0x10
lea edx, [ebp - 0x458]
mov eax, dword [ecx]
push edx
push dword [ebp - 0x4dc]
lea edx, [ebp - 0x4b4]
push edx
push ecx
call dword [eax + 0x50]
test eax, eax
je 0x403522
mov esi, dword [ebp - 0x4c0]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x4ac]
push eax
push 4
lea eax, [ebp - 0x4e0]
push eax
push dword [esi + 0x18]
call edi
cmp dword [ebp - 0x4e0], 0
mov dword [ebp - 0x4c4], 0
jbe 0x403acd
xor edi, edi
mov ecx, dword [ebp - 0x4d4]
sub esp, 0x10
mov eax, dword [ecx + edi + 0x18]
mov dword [ebp - 0x4fc], eax
mov eax, esp
mov dword [ebp - 0x4d8], 0
movups xmm0, xmmword [ecx + edi + 0x20]
mov ecx, esi
movups xmmword [eax], xmm0
call fcn.004024c0
mov ecx, dword [ebp - 0x4d4]
mov esi, eax
mov dword [ebp - 0x504], esi
mov dword [ebp - 0x500], 0
lea eax, [ecx + 0x20]
add eax, edi
mov dword [ebp - 0x4b0], eax
mov eax, dword [ebp - 0x4c0]
mov edx, dword [eax + 0x230]
test edx, edx
je 0x403793
mov esi, dword [ebp - 0x4b0]
lea eax, [ebp - 0x4f0]
mov ecx, dword [edx]
push eax
sub esp, 0x10
movups xmm0, xmmword [esi]
mov eax, esp
push edx
movups xmmword [eax], xmm0
call dword [ecx + 0x28]
mov esi, dword [ebp - 0x504]
test eax, eax
jne 0x40378d
mov eax, dword [ebp - 0x4f0]
lea edx, [ebp - 0x4ec]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
jne 0x403781
mov eax, dword [ebp - 0x4ec]
lea edx, [ebp - 0x500]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x4ec]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x4f0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x4d4]
test esi, esi
je 0x40382a
lea edx, [ebp - 0x524]
mov dword [ebp - 0x4f4], 0
push edx
mov eax, dword [esi]
lea edx, [ebp - 0x528]
push edx
lea edx, [ebp - 0x4f4]
push edx
lea edx, [ebp - 0x52c]
push edx
lea edx, [ebp - 0x530]
push edx
lea edx, [ebp - 0x4f8]
push edx
lea edx, [ebp - 0x4d8]
push edx
push 0xff
lea edx, [ebp - 0x418]
push edx
lea edx, [ebp - 0x534]
push edx
push dword [edi + ecx]
push esi
call dword [eax + 0xe4]
test byte [ebp - 0x4f8], 0x10
mov ecx, dword [ebp - 0x4d4]
jne 0x40381e
mov eax, dword [edi + ecx + 8]
or eax, dword [edi + ecx + 0xc]
jne 0x40382a
mov eax, dword [edi + ecx + 0x10]
or eax, dword [edi + ecx + 0x14]
jne 0x40382a
cmp dword [edi + ecx + 4], eax
jne 0x40382a
mov eax, dword [ebp - 0x4f4]
mov dword [ebp - 0x4fc], eax
mov esi, dword [ebp - 0x4c0]
lea eax, [ebp - 0x4ac]
push 0
push eax
push 4
lea eax, [edi + ecx]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x4ac]
push eax
mov eax, dword [ebp - 0x4d4]
add eax, 4
push 4
add eax, edi
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x4ac]
push eax
push 4
lea eax, [ebp - 0x4fc]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x4ac]
push eax
push 4
lea eax, [ebp - 0x4f8]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4d8]
add eax, eax
push 0
mov dword [ebp - 0x4d8], eax
lea eax, [ebp - 0x4ac]
push eax
push 4
lea eax, [ebp - 0x4d8]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4d8]
test eax, eax
je 0x4038eb
push 0
lea ecx, [ebp - 0x4ac]
push ecx
push eax
lea eax, [ebp - 0x418]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp - 0x4d4]
add esi, edi
mov dword [ebp - 0x4b8], 0
mov dword [ebp - 0x4b4], 0
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x40391b
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
je 0x403a5e
mov eax, dword [ebp - 0x4c0]
movups xmm0, xmmword [esi + 8]
mov ecx, dword [eax + 0x230]
lea eax, [ebp - 0x4b4]
push eax
sub esp, 0x10
mov eax, esp
mov edx, dword [ecx]
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0x28]
test eax, eax
jne 0x403a5e
mov ecx, dword [ebp - 0x4b4]
test ecx, ecx
je 0x403a5e
mov eax, dword [ecx]
lea edx, [ebp - 0x4bc]
push edx
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x403a52
mov eax, dword [ebp - 0x4bc]
lea edx, [ebp - 0x4dc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
jne 0x403a52
mov eax, dword [ebp - 0x4bc]
lea edx, [ebp - 0x4e4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jne 0x403a46
mov eax, dword [ebp - 0x4e4]
mov esi, dword [ebp - 0x4c0]
mov dword [ebp - 0x4b0], eax
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [esi + 0x23c]
call fcn.00404a80
mov ecx, dword [eax]
mov dword [ebp - 0x4c8], ecx
test ecx, ecx
jne 0x403a0d
mov eax, dword [ebp - 0x4b0]
lea ecx, [ebp - 0x4c8]
push ecx
push 0x423624
push eax
mov edx, dword [eax]
call dword [edx + 0x38]
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [esi + 0x23c]
call fcn.00404a80
mov ecx, dword [ebp - 0x4c8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x4c8]
test ecx, ecx
je 0x403a3a
mov eax, dword [ecx]
lea edx, [ebp - 0x538]
push edx
lea edx, [ebp - 0x53c]
push edx
lea edx, [ebp - 0x4b8]
push edx
push 0xff
lea edx, [ebp - 0x218]
push edx
push dword [ebp - 0x4dc]
push ecx
call dword [eax + 0x30]
mov eax, dword [ebp - 0x4e4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x4bc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x4b4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x4b8]
mov esi, dword [ebp - 0x4c0]
add eax, eax
push 0
mov dword [ebp - 0x4b8], eax
lea eax, [ebp - 0x4ac]
push eax
push 4
lea eax, [ebp - 0x4b8]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4b8]
test eax, eax
je 0x403ab1
push 0
lea ecx, [ebp - 0x4ac]
push ecx
push eax
lea eax, [ebp - 0x218]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4c4]
add edi, 0x30
inc eax
mov dword [ebp - 0x4c4], eax
cmp eax, dword [ebp - 0x4e0]
jb 0x4036c2
mov esi, dword [ebp - 0x4d4]
test esi, esi
je 0x403c03
mov ecx, dword [ebp - 0x4cc]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 4
cmp ecx, 0x1000
jb 0x403b18
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403c23
push ecx
push esi
call fcn.0040513c
add esp, 8
jmp 0x403c03
mov ecx, dword [esi + 0x230]
lea eax, [ebp - 0x488]
movups xmm0, xmmword [ebp - 0x518]
push eax
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0x2c]
test eax, eax
jne 0x403baa
push eax
lea eax, [ebp - 0x4ac]
push eax
push 4
lea eax, [ebp - 0x478]
push eax
push dword [esi + 0x18]
call edi
push 0
lea eax, [ebp - 0x4ac]
push eax
push 4
lea eax, [ebp - 0x46c]
push eax
push dword [esi + 0x18]
call edi
push 0
lea eax, [ebp - 0x4ac]
push eax
push 4
lea eax, [ebp - 0x470]
push eax
push dword [esi + 0x18]
call edi
push 0
lea eax, [ebp - 0x4ac]
push eax
push 4
lea eax, [ebp - 0x474]
push eax
push dword [esi + 0x18]
call edi
jmp 0x403c03
push 0x10
call fcn.00410323
movaps xmm0, xmmword [0x423900]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x4ac]
push 0
push eax
mov eax, dword [ebp - 0x4c0]
push 0x10
push esi
movups xmmword [esi], xmm0
push dword [eax + 0x18]
call edi
push esi
call fcn.004100f7
add esp, 4
jmp 0x403c03
lea eax, [ebp - 0x4ac]
mov dword [ebp - 0x4e8], 0xffffffff
push eax
push 4
lea eax, [ebp - 0x4e8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004050db
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.004102d2
int3