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 0x41cb40
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x530
mov eax, dword [0x426004]
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 edx, dword [esi + 0x230]
lea eax, [ebp - 0x4a8]
movups xmm0, xmmword [ebx + 8]
push eax
sub esp, 0x10
mov ecx, dword [edx]
mov eax, esp
movups xmmword [ebp - 0x518], xmm0
push edx
movups xmmword [eax], xmm0
call dword [ecx + 0x30]
mov ecx, dword [esi + 0x18]
push 0
test eax, eax
jne 0x403be0
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 0x403b25
cmp eax, 0x1d
je 0x403b25
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 eax, dword [ebp - 0x4d4]
sub esp, 0x20
movups xmm0, xmmword [ebp - 0x4a8]
mov dword [ebp - 0x4d0], eax
mov ecx, esi
mov eax, esp
sub esp, 0x10
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 0x403684
mov ecx, dword [ebp - 0x4dc]
test ecx, ecx
je 0x403684
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 0x403684
cmp dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4bc], 0
jbe 0x403647
mov edi, dword [ebp - 0x4d0]
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 0x403599
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 0x403592
inc esi
add eax, 0x30
cmp esi, ecx
jb 0x403572
mov eax, dword [ebp - 0x4e4]
jmp 0x40359b
mov eax, 1
jmp 0x40359b
xor eax, eax
test eax, eax
jne 0x403634
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 0x40360f
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 0x40362e
lea eax, [ebp - 0x488]
push eax
push edi
lea ecx, [ebp - 0x4d4]
call fcn.00404b40
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 0x403532
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 0x403515
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 0x403acb
xor edi, edi
nop dword [eax]
nop dword [eax + eax]
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 0x403791
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 0x40378b
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 0x40377f
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 0x403828
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 0x40381c
mov eax, dword [edi + ecx + 8]
or eax, dword [edi + ecx + 0xc]
jne 0x403828
mov eax, dword [edi + ecx + 0x10]
or eax, dword [edi + ecx + 0x14]
jne 0x403828
cmp dword [edi + ecx + 4], eax
jne 0x403828
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 0x4038e9
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 0x403919
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
je 0x403a5c
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 0x403a5c
mov ecx, dword [ebp - 0x4b4]
test ecx, ecx
je 0x403a5c
mov eax, dword [ecx]
lea edx, [ebp - 0x4bc]
push edx
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x403a50
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 0x403a50
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 0x403a44
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.00404a60
mov ecx, dword [eax]
mov dword [ebp - 0x4c8], ecx
test ecx, ecx
jne 0x403a0b
mov eax, dword [ebp - 0x4b0]
lea ecx, [ebp - 0x4c8]
push ecx
push 0x423c64
push eax
mov edx, dword [eax]
call dword [edx + 0x38]
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [esi + 0x23c]
call fcn.00404a60
mov ecx, dword [ebp - 0x4c8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x4c8]
test ecx, ecx
je 0x403a38
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 0x403aaf
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 0x4036c0
mov esi, dword [ebp - 0x4d4]
test esi, esi
je 0x403c01
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 0x403b16
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403c21
push ecx
push esi
call fcn.0040513c
add esp, 8
jmp 0x403c01
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 0x403ba8
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 0x403c01
push 0x10
call fcn.0040ff98
movaps xmm0, xmmword [0x423f40]
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.0040fd70
add esp, 4
jmp 0x403c01
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.0040ff47
int3