Function at 0x403080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x4cb7d3
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x50d4cc]
xor eax, esp
mov dword [esp + 0x164], eax
push esi
push edi
mov eax, dword [0x50d4cc]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov edi, dword [ebp + 8]
push edi
push 0x4df434
push 0
push esi
mov dword [esp + 0x28], edi
call fcn.00404490
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x403102
push 0x4df44c
push 0xffffffffffffffff
push esi
call fcn.00404490
add esp, 0xc
mov eax, 0x80070057
jmp 0x40354c
xorps xmm0, xmm0
movq qword [esp + 0x13c], xmm0
mov dword [esp + 0x13c], 0
mov dword [esp + 0x140], 0
mov dword [esp + 0x180], 0
movdqa xmmword [esp + 0x144], xmm0
movdqa xmmword [esp + 0x154], xmm0
mov dword [esp + 0x144], 0
mov dword [esp + 0x14c], 0
mov byte [esp + 0x180], 1
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x38]
call eax
mov dword [esp + 0x138], eax
lea eax, [esp + 0xa8]
mov dword [esp + 0x130], 0
mov dword [esp + 0xa4], eax
test edi, edi
jne 0x403197
xor eax, eax
mov dword [esp + 0xa4], eax
jmp 0x4031e0
mov esi, edi
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x4031a0
sub esi, ecx
lea eax, [esp + 0xa8]
push ecx
inc esi
lea ecx, [esp + 0xa8]
push eax
mov edx, esi
call fcn.004086b0
push esi
push edi
push esi
push dword [esp + 0xb8]
call fcn.0048c509
push eax
call fcn.00401350
mov eax, dword [esp + 0xc0]
add esp, 0x1c
push eax
lea ecx, [esp + 0x134]
mov byte [esp + 0x184], 2
call fcn.00406580
mov byte [esp + 0x180], 4
lea ecx, [esp + 0xa8]
mov eax, dword [esp + 0xa4]
cmp eax, ecx
je 0x403218
push eax
call fcn.0048b8d4
add esp, 4
mov eax, dword [esp + 0x130]
xor esi, esi
mov edx, eax
mov byte [esp + 0x13], 0
mov dword [esp + 0x134], edx
mov edi, dword [eax - 0xc]
test edi, edi
jle 0x4032e4
lea ebx, [ebx]
cmp byte [esi + edx], 0x5c
lea ecx, [esi + edx]
jne 0x40328d
cmp byte [esp + 0x13], 0
jne 0x403287
mov byte [esp + 0x13], 1
test edi, edi
js 0x4032ae
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x40327e
push edi
lea ecx, [esp + 0x134]
call fcn.00407ad0
mov eax, dword [esp + 0x130]
mov edx, eax
mov dword [esp + 0x134], edx
lea ecx, [esi + edx]
mov byte [ecx], 0x2d
push ecx
call fcn.0048c763
mov edx, dword [esp + 0x138]
mov esi, eax
sub esi, edx
add esp, 4
cmp esi, edi
jge 0x4032b8
mov eax, dword [esp + 0x130]
jmp 0x403240
push 0x80070057
call fcn.00401330
cmp byte [esp + 0x13], 0
je 0x4032dd
test edi, edi
js 0x4032ae
mov eax, dword [esp + 0x130]
cmp edi, dword [eax - 8]
jg 0x4032ae
mov dword [eax - 0xc], edi
mov eax, dword [esp + 0x130]
mov byte [edi + eax], 0
mov eax, dword [esp + 0x130]
mov esi, dword [esp + 0x138]
push eax
push esi
push 0
push 4
push 0
push 0xffffffffffffffff
mov dword [esp + 0x160], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
mov dword [esp + 0x14c], edi
test edi, edi
jne 0x403318
call fcn.00401520
mov esi, eax
jmp 0x403364
push 0
push esi
push 0
push 0
push 0xf001f
xorps xmm0, xmm0
mov dword [esp + 0x170], 0xf001f
push edi
movlpd qword [esp + 0x16c], xmm0
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esp + 0x144], eax
test eax, eax
jne 0x40339a
call fcn.00401520
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [esp + 0x14c], edi
test esi, esi
jns 0x40339a
mov byte [esp + 0x180], 1
or ecx, 0xffffffff
mov edx, dword [esp + 0x130]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40354a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40354a
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x138]
push edx
push dword [esp + 0x148]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov esi, eax
test esi, esi
js 0x4034c8
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4033d4
mov dword [esp + 0x1c], eax
jmp 0x403417
mov esi, eax
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x4033e0
sub esi, ecx
lea eax, [esp + 0x20]
push ecx
inc esi
lea ecx, [esp + 0x20]
push eax
mov edx, esi
call fcn.004086b0
push esi
push dword [esp + 0x24]
push esi
push dword [esp + 0x30]
call fcn.0048c509
push eax
call fcn.00401350
mov eax, dword [esp + 0x38]
add esp, 0x1c
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x40343e
call fcn.00401520
mov esi, eax
jmp 0x403447
mov dword [esp + 0x13c], eax
xor esi, esi
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x40345c
push eax
call fcn.0048b8d4
add esp, 4
test esi, esi
js 0x4034b1
push 0
lea eax, [esp + 0x138]
push eax
push dword [esp + 0x140]
push dword [esp + 0x150]
push dword [esp + 0x14c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403492
call fcn.00401520
mov esi, eax
jmp 0x403494
xor esi, esi
mov eax, dword [esp + 0x13c]
test eax, eax
je 0x4034b1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x13c], 0
push dword [esp + 0x18]
push 0x4df46c
push 0
push dword [esp + 0x20]
call fcn.00404490
add esp, 0x10
mov byte [esp + 0x180], 1
or ecx, 0xffffffff
mov edx, dword [esp + 0x130]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4034f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x144]
mov dword [esp + 0x14], 0
test eax, eax
je 0x403518
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x403518
call fcn.00401520
mov dword [esp + 0x14], eax
test edi, edi
je 0x403536
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test eax, eax
jne 0x40353c
cmp dword [esp + 0x14], eax
jl 0x40353c
call fcn.00401520
jmp 0x40353c
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x13c]
test eax, eax
je 0x40354a
push eax
call edi
mov eax, esi
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 4