Function at 0x4032b0
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 0x41ce3b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x548
mov eax, dword [0x425004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x4bc], edi
mov edx, dword [edi + 0x230]
lea eax, [ebp - 0x4a8]
movups xmm0, xmmword [ebx + 8]
push eax
sub esp, 0x10
mov esi, dword [edx]
mov eax, esp
movups xmmword [ebp - 0x520], xmm0
push edx
movups xmmword [eax], xmm0
call dword [esi + 0x30]
push 0
test eax, eax
jne 0x403d2e
mov eax, dword [ebp - 0x48c]
mov esi, edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4f4], eax
lea eax, [ebp - 0x4ac]
push eax
push 4
lea eax, [ebp - 0x4f4]
push eax
push dword [esi + 0x18]
call edi
mov eax, dword [ebp - 0x48c]
cmp eax, 0x14
je 0x403c73
cmp eax, 0x1d
je 0x403c73
mov dword [ebp - 0x4d4], 0
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], 0
xor edx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x4c4], edx
mov edx, dword [esi + 0x230]
test edx, edx
je 0x40342a
movups xmm0, xmmword [ebp - 0x520]
mov ecx, dword [edx]
lea eax, [ebp - 0x4e8]
push eax
sub esp, 0x10
mov eax, esp
push edx
movups xmmword [eax], xmm0
call dword [ecx + 0x28]
test eax, eax
jne 0x40342a
mov eax, dword [ebp - 0x4e8]
lea edx, [ebp - 0x4e4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
jne 0x40341e
mov eax, dword [ebp - 0x4e4]
lea edx, [ebp - 0x4e0]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jne 0x403412
push dword [ebp - 0x4e0]
mov ecx, esi
call fcn.00402380
mov ecx, dword [ebp - 0x4e0]
push ecx
mov dword [ebp - 0x4c4], eax
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 0x4e4]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, dword [ebp - 0x4e8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [esi + 0x230]
mov dword [ebp - 0x4b8], 0
test edx, edx
je 0x403494
movups xmm0, xmmword [ebp - 0x520]
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 0x403494
mov eax, dword [ebp - 0x4b0]
lea edx, [ebp - 0x4c8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
jne 0x403488
mov eax, dword [ebp - 0x4c8]
lea edx, [ebp - 0x4b8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x4b0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [esi + 0x230]
mov eax, dword [ebp - 0x4b8]
mov dword [ebp - 0x4d8], eax
mov dword [ebp - 0x4c8], 0
test edx, edx
je 0x403516
movups xmm0, xmmword [ebp - 0x520]
mov ecx, dword [edx]
lea eax, [ebp - 0x4b8]
push eax
sub esp, 0x10
mov eax, esp
push edx
movups xmmword [eax], xmm0
call dword [ecx + 0x28]
test eax, eax
jne 0x403516
mov eax, dword [ebp - 0x4b8]
lea edx, [ebp - 0x4b0]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
jne 0x40350a
mov eax, dword [ebp - 0x4b0]
lea edx, [ebp - 0x4c8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x4b0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x4b8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x4c4]
xor eax, eax
mov dword [ebp - 0x4b4], eax
test ecx, ecx
je 0x40355b
mov eax, dword [ecx]
lea edx, [ebp - 0x544]
push edx
lea edx, [ebp - 0x524]
push edx
lea edx, [ebp - 0x4b4]
push edx
push 0xff
lea edx, [ebp - 0x218]
push edx
push dword [ebp - 0x4d8]
push ecx
call dword [eax + 0x30]
mov eax, dword [ebp - 0x4b4]
add eax, eax
push 0
mov dword [ebp - 0x4b4], eax
lea eax, [ebp - 0x4ac]
push eax
push 4
lea eax, [ebp - 0x4b4]
push eax
push dword [esi + 0x18]
call edi
mov eax, dword [ebp - 0x4b4]
test eax, eax
je 0x40359a
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 - 0x520]
movups xmmword [eax], xmm0
lea eax, [ebp - 0x4d4]
push eax
call fcn.00403140
mov edx, dword [ebp - 0x4c4]
mov dword [ebp - 0x4dc], eax
test edx, edx
je 0x4037b2
mov ecx, dword [ebp - 0x4d8]
test ecx, ecx
je 0x4037b2
mov eax, dword [edx]
lea esi, [ebp - 0x4b0]
push esi
push 0x10
lea esi, [ebp - 0x458]
mov dword [ebp - 0x4ec], 0
push esi
push ecx
lea ecx, [ebp - 0x4ec]
push ecx
push edx
call dword [eax + 0x50]
mov esi, dword [ebp - 0x4bc]
test eax, eax
jne 0x4037b2
cmp dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4c0], 0
jbe 0x403775
mov edi, dword [ebp - 0x4d0]
mov ecx, edi
mov dword [ebp - 0x4f0], 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 - 0x4c0]
je 0x4036b9
mov eax, dword [ebp + edx*4 - 0x458]
mov dword [ebp - 0x4c8], eax
mov eax, dword [ebp - 0x4d4]
mov edx, dword [ebp - 0x4c8]
cmp edx, dword [eax]
mov edx, dword [ebp - 0x4c0]
je 0x4036b2
inc esi
add eax, 0x30
cmp esi, ecx
jb 0x403692
mov eax, dword [ebp - 0x4f0]
jmp 0x4036bb
mov eax, 1
jmp 0x4036bb
xor eax, eax
test eax, eax
jne 0x403762
xorps xmm0, xmm0
mov dword [ebp - 0x470], eax
movups xmm1, xmmword [ebp - 0x520]
mov dword [ebp - 0x484], eax
mov eax, dword [ebp + edx*4 - 0x458]
movlpd qword [ebp - 0x558], xmm0
movlpd qword [ebp - 0x550], xmm0
movups xmm0, xmmword [ebp - 0x558]
mov dword [ebp - 0x488], eax
movups xmmword [ebp - 0x468], xmm1
movups xmmword [ebp - 0x480], xmm0
cmp dword [ebp - 0x4cc], edi
je 0x40373d
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 0x40375c
lea eax, [ebp - 0x488]
push eax
push edi
lea ecx, [ebp - 0x4d4]
call fcn.00404ce0
mov edi, dword [ebp - 0x4d0]
mov edx, dword [ebp - 0x4c0]
inc dword [ebp - 0x4dc]
inc edx
mov dword [ebp - 0x4c0], edx
cmp edx, dword [ebp - 0x4b0]
jb 0x403652
mov ecx, dword [ebp - 0x4c4]
lea edx, [ebp - 0x4b0]
push edx
push 0x10
lea edx, [ebp - 0x458]
mov eax, dword [ecx]
push edx
push dword [ebp - 0x4d8]
lea edx, [ebp - 0x4ec]
push edx
push ecx
call dword [eax + 0x50]
test eax, eax
je 0x403635
mov esi, dword [ebp - 0x4bc]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x4ac]
push eax
push 4
lea eax, [ebp - 0x4dc]
push eax
push dword [esi + 0x18]
call edi
cmp dword [ebp - 0x4dc], 0
mov dword [ebp - 0x4c8], 0
jbe 0x403c19
xor edi, edi
mov eax, dword [ebp - 0x4d4]
mov edx, dword [esi + 0x230]
add eax, edi
mov dword [ebp - 0x4f8], eax
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x504], eax
xor eax, eax
mov dword [ebp - 0x4b8], 0
mov dword [ebp - 0x4fc], eax
test edx, edx
je 0x4038a7
mov esi, dword [ebp - 0x4f8]
lea eax, [ebp - 0x4e4]
mov ecx, dword [edx]
push eax
sub esp, 0x10
movups xmm0, xmmword [esi + 0x20]
mov eax, esp
push edx
movups xmmword [eax], xmm0
call dword [ecx + 0x28]
mov esi, dword [ebp - 0x4bc]
test eax, eax
jne 0x4038a7
mov eax, dword [ebp - 0x4e4]
lea edx, [ebp - 0x4e8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
jne 0x40389b
mov eax, dword [ebp - 0x4e8]
lea edx, [ebp - 0x4ec]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jne 0x40388f
push dword [ebp - 0x4ec]
mov ecx, esi
call fcn.00402380
mov ecx, dword [ebp - 0x4ec]
push ecx
mov dword [ebp - 0x4fc], eax
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 0x4e8]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, dword [ebp - 0x4e4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x4d4]
mov edx, dword [esi + 0x230]
add eax, 0x20
add eax, edi
mov dword [ebp - 0x50c], 0
mov dword [ebp - 0x4f8], eax
test edx, edx
je 0x403936
mov esi, dword [ebp - 0x4f8]
lea eax, [ebp - 0x4c0]
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 - 0x4bc]
test eax, eax
jne 0x403936
mov eax, dword [ebp - 0x4c0]
lea edx, [ebp - 0x4e0]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
jne 0x40392a
mov eax, dword [ebp - 0x4e0]
lea edx, [ebp - 0x50c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x4e0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x4c0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [ebp - 0x4fc]
test edx, edx
je 0x4039d6
lea eax, [ebp - 0x528]
mov dword [ebp - 0x508], 0
push eax
mov ecx, dword [edx]
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x530]
push eax
lea eax, [ebp - 0x534]
push eax
lea eax, [ebp - 0x500]
push eax
lea eax, [ebp - 0x4b8]
push eax
push 0xff
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x538]
push eax
mov eax, dword [ebp - 0x4d4]
push dword [edi + eax]
push edx
call dword [ecx + 0xe4]
test byte [ebp - 0x500], 0x10
jne 0x4039ca
mov ecx, dword [ebp - 0x4d4]
add ecx, edi
mov eax, dword [ecx + 8]
or eax, dword [ecx + 0xc]
jne 0x4039d6
mov eax, dword [ecx + 0x10]
or eax, dword [ecx + 0x14]
jne 0x4039d6
cmp dword [ecx + 4], eax
jne 0x4039d6
mov eax, dword [ebp - 0x508]
mov dword [ebp - 0x504], eax
push 0
lea eax, [ebp - 0x4ac]
push eax
mov eax, dword [ebp - 0x4d4]
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
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 - 0x504]
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 - 0x500]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
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 dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4b8]
test eax, eax
je 0x403a96
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 - 0x4b4], 0
mov dword [ebp - 0x4c4], 0
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x403ac6
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
je 0x403baa
mov ecx, dword [ebp - 0x4bc]
lea eax, [ebp - 0x4c4]
movups xmm0, xmmword [esi + 8]
push eax
sub esp, 0x10
mov ecx, dword [ecx + 0x230]
mov eax, esp
push ecx
mov edx, dword [ecx]
movups xmmword [eax], xmm0
call dword [edx + 0x28]
test eax, eax
jne 0x403baa
mov ecx, dword [ebp - 0x4c4]
test ecx, ecx
je 0x403baa
mov eax, dword [ecx]
lea edx, [ebp - 0x4b0]
push edx
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x403b9e
mov eax, dword [ebp - 0x4b0]
lea edx, [ebp - 0x4d8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
jne 0x403b9e
mov eax, dword [ebp - 0x4b0]
lea edx, [ebp - 0x4f0]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jne 0x403b92
push dword [ebp - 0x4f0]
mov ecx, dword [ebp - 0x4bc]
call fcn.00402380
test eax, eax
je 0x403b86
mov ecx, dword [eax]
lea edx, [ebp - 0x53c]
push edx
lea edx, [ebp - 0x540]
push edx
lea edx, [ebp - 0x4b4]
push edx
push 0xff
lea edx, [ebp - 0x218]
push edx
push dword [ebp - 0x4d8]
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x4f0]
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 eax, dword [ebp - 0x4c4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x4b4]
mov esi, dword [ebp - 0x4bc]
add eax, eax
push 0
mov dword [ebp - 0x4b4], eax
lea eax, [ebp - 0x4ac]
push eax
push 4
lea eax, [ebp - 0x4b4]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4b4]
test eax, eax
je 0x403bfd
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 ecx, dword [ebp - 0x4c8]
add edi, 0x30
inc ecx
mov dword [ebp - 0x4c8], ecx
cmp ecx, dword [ebp - 0x4dc]
jb 0x4037e2
mov esi, dword [ebp - 0x4d4]
test esi, esi
je 0x403d51
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 0x403c64
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403d71
push ecx
push esi
call fcn.00405595
add esp, 8
jmp 0x403d51
mov ecx, dword [esi + 0x230]
lea eax, [ebp - 0x488]
movups xmm0, xmmword [ebp - 0x520]
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 0x403cf6
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 0x403d51
push 0x10
call fcn.00410c17
movaps xmm0, xmmword [0x423700]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x4ac]
push 0
push eax
mov eax, dword [ebp - 0x4bc]
push 0x10
push esi
movups xmmword [esi], xmm0
push dword [eax + 0x18]
call edi
push esi
call fcn.004109b7
add esp, 4
jmp 0x403d51
lea eax, [ebp - 0x4ac]
mov dword [ebp - 0x4f4], 0xffffffff
push eax
push 4
lea eax, [ebp - 0x4f4]
push eax
push dword [edi + 0x18]
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.00405531
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.00410bc7
int3