Function at 0x4073d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494dc0
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4c6190]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x84], ebx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], eax
test esi, esi
je 0x40780a
push 0x4a897c
push esi
call fcn.004678c0
add esp, 8
test eax, eax
jne 0x40780a
mov dword [ebp - 0x9c], eax
mov ecx, esi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], al
mov dword [ebp - 4], 0xffffffff
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407457
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x9c]
call fcn.00403180
lea eax, [ebp - 0x9c]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0044b4b0
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x88]
cmp ecx, 0x10
jb 0x4074c5
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4074bb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40782b
push ecx
push edx
call fcn.00465ef5
add esp, 8
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x78]
mov ecx, dword [ebp - 0x78]
cmp edx, 8
mov esi, dword [ebp - 0x68]
cmovae eax, ecx
mov dword [ebp - 0x8c], 0
setae byte [ebp - 0x79]
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
cmp word [eax + esi*2 - 2], 0x2f
jne 0x407505
xor edi, edi
jmp 0x4077d6
cmp byte [ebp - 0x79], 0
lea eax, [ebp - 0x78]
je 0x407513
lea eax, [ecx + esi*2]
jmp 0x407519
lea eax, [eax + esi*2]
lea ecx, [ebp - 0x78]
cmp ecx, eax
je 0x407532
mov edx, 0x5c
cmp word [ecx], 0x2f
jne 0x40752b
mov word [ecx], dx
add ecx, 2
cmp ecx, eax
jne 0x407522
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.0044da90
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0044de70
add esp, 0x18
test al, al
je 0x4076c1
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0044c2e0
add esp, 8
test al, al
je 0x4076c1
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0
cmovae eax, dword [ebp - 0x30]
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x407683
cmp esi, 0xffffffff
je 0x407683
push ebx
call fcn.0045fc60
mov edi, eax
test edi, edi
jne 0x4076b8
mov bl, 1
mov dword [ebp - 0x18], eax
nop
push 0x1000
push dword [ebp - 0x80]
push dword [ebp - 0x84]
call fcn.004603d0
mov edi, eax
test edi, edi
jle 0x40764a
push 0
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp - 0x80]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407623
cmp dword [ebp - 0x18], edi
je 0x407644
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x18]
push edi
push 0x4a88b0
push 0x4a8924
push 2
call fcn.00453ac0
add esp, 0x18
xor bl, bl
test bl, bl
jne 0x4075f0
jmp 0x407663
jns 0x407663
push edi
push 0x4a8944
push 0x4a8924
push 2
call fcn.00453ac0
add esp, 0x10
xor bl, bl
push dword [ebp - 0x84]
call fcn.0045f5e0
xor eax, eax
mov edi, 0xffffff98
test bl, bl
push esi
cmovne edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4076e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x30]
push eax
cmovae ecx, dword [ebp - 0x30]
push ecx
push 0x4a89e8
push 0x4a89c8
push 2
call fcn.00453ac0
add esp, 0x14
mov edi, 0xffffff98
test esi, esi
je 0x4076e6
cmp esi, 0xffffffff
je 0x4076e6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4076e6
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push 0x4a8980
push 0x4a89c8
push 2
call fcn.00453ac0
add esp, 0x10
mov edi, 0xffffff98
mov ecx, dword [ebp - 0x4c]
cmp ecx, 8
jb 0x407720
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407716
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407830
push ecx
push edx
call fcn.00465ef5
add esp, 8
mov ecx, dword [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
cmp ecx, 8
jb 0x40776e
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407764
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407830
push ecx
push edx
call fcn.00465ef5
add esp, 8
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp ecx, 8
jb 0x4077bc
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4077b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407830
push ecx
push edx
call fcn.00465ef5
add esp, 8
mov edx, dword [ebp - 0x64]
xor eax, eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x407806
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4077fc
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407830
push edx
push ecx
call fcn.00465ef5
add esp, 8
mov eax, edi
jmp 0x40780f
mov eax, 0xffffff99
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00465ee7
mov esp, ebp
pop ebp
ret
call fcn.00469eed
call fcn.00469eed
int3