Function at 0x4072e8
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x419508
call fcn.0040cfe4
mov eax, 0x74a4
call fcn.0040c020
push ebx
push esi
push edi
push 0x18
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0xa7]
mov byte [ebp - 0xa8], bl
mov esi, 0x1000
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x30], 0x64
stosb byte es:[edi], al
call fcn.004065be
lea eax, [ebp - 0x24b0]
push 0x400
push eax
call fcn.00406461
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.0040b408
add esp, 0x14
mov edi, 0x41b6bc
test eax, eax
je 0x4073bf
push 0x10
lea eax, [ebp - 0x98]
push ebx
push eax
mov byte [ebp - 0x1298], bl
call fcn.0040dbff
add esp, 0xc
push eax
push 0x41b6b4
push 6
call fcn.00408cb1
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x12b0]
push eax
call fcn.0040ba39
add esp, 0xc
cmp byte [ebp - 0x24b0], bl
je 0x4073aa
lea eax, [ebp - 0x24b0]
push edi
push eax
call fcn.0040bb70
pop ecx
pop ecx
lea eax, [ebp - 0x12b0]
push eax
lea eax, [ebp - 0x24b0]
push eax
call fcn.0040bb70
pop ecx
pop ecx
call fcn.0040d655
mov eax, dword [0x4200d0]
mov ecx, 0xe10
cdq
idiv ecx
push eax
push 0x41b6ac
push 6
call fcn.00408cb1
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x12b0]
push eax
call fcn.0040ba39
add esp, 0xc
cmp byte [ebp - 0x24b0], bl
je 0x407407
lea eax, [ebp - 0x24b0]
push edi
push eax
call fcn.0040bb70
pop ecx
pop ecx
lea eax, [ebp - 0x12b0]
push eax
lea eax, [ebp - 0x24b0]
push eax
call fcn.0040bb70
pop ecx
lea eax, [ebp - 0x2c]
pop ecx
push 0x3e8
push 1
push eax
push 0x41b688
push 0x23
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040a212
add esp, 0x10
test eax, eax
jne 0x407471
fld qword [ebp - 0x2c]
push ecx
push ecx
lea eax, [ebp - 0x12b0]
fstp qword [esp]
push 0x41b67c
push eax
call fcn.0040ba39
lea eax, [ebp - 0x12b0]
push eax
lea eax, [ebp - 0x24b0]
push eax
call fcn.0040bb70
add esp, 0x18
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
push 0x41b660
push 0x18
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040a212
add esp, 0x10
test eax, eax
jne 0x4074c1
fld qword [ebp - 0x2c]
push ecx
push ecx
lea eax, [ebp - 0x12b0]
fstp qword [esp]
push 0x41b654
push eax
call fcn.0040ba39
lea eax, [ebp - 0x12b0]
push eax
lea eax, [ebp - 0x24b0]
push eax
call fcn.0040bb70
add esp, 0x18
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
push 0x41b630
push 0x23
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040a212
add esp, 0x10
test eax, eax
jne 0x407511
fld qword [ebp - 0x2c]
push ecx
push ecx
lea eax, [ebp - 0x12b0]
fstp qword [esp]
push 0x41b624
push eax
call fcn.0040ba39
lea eax, [ebp - 0x12b0]
push eax
lea eax, [ebp - 0x24b0]
push eax
call fcn.0040bb70
add esp, 0x18
push 1
call fcn.00408707
cmp eax, ebx
pop ecx
je 0x407547
push eax
lea eax, [ebp - 0x12b0]
push 0x41b61c
push eax
call fcn.0040ba39
lea eax, [ebp - 0x12b0]
push eax
lea eax, [ebp - 0x24b0]
push eax
call fcn.0040bb70
add esp, 0x14
jmp 0x40755a
lea eax, [ebp - 0x24b0]
push 0x41b614
push eax
call fcn.0040bb70
pop ecx
pop ecx
mov al, byte [ebp - 0xd]
push ebx
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call fcn.00407c87
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
call fcn.0040930f
test eax, eax
pop ecx
je 0x40760e
lea eax, [ebp - 0x12b0]
push 0x41b60c
push eax
mov byte [ebp - 0xd], 1
call fcn.0040bb60
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
mov edi, dword [eax]
cmp edi, eax
je 0x4075d8
cmp byte [ebp - 0xd], bl
jne 0x4075bd
lea eax, [ebp - 0x12b0]
push 0x41aff8
push eax
call fcn.0040bb70
pop ecx
pop ecx
push dword [edi + 8]
lea eax, [ebp - 0x12b0]
mov byte [ebp - 0xd], bl
push eax
call fcn.0040bb70
mov edi, dword [edi]
pop ecx
cmp edi, dword [ebp - 0x1c]
pop ecx
jne 0x4075a5
lea eax, [ebp - 0x12b0]
push eax
lea eax, [ebp - 0x24b0]
push eax
call fcn.0040bb70
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
mov edi, dword [eax]
cmp edi, eax
je 0x407606
push dword [edi + 8]
call fcn.0040b5d6
mov edi, dword [edi]
pop ecx
cmp edi, dword [ebp - 0x1c]
jne 0x4075f6
lea ecx, [ebp - 0x20]
call fcn.00407c3b
lea eax, [ebp - 0x34b0]
mov dword [ebp - 0x14], esi
push eax
lea eax, [ebp - 0x24b0]
push eax
call fcn.00407ddf
lea eax, [ebp - 0x14b0]
push eax
call fcn.004079c5
add esp, 0xc
call fcn.00402f78
mov ecx, 0x423f80
call fcn.00404e66
push 0x4000
lea eax, [ebp - 0x74b0]
push ebx
push eax
call fcn.0040bc80
lea eax, [ebp - 0x44]
push eax
call fcn.004032eb
add esp, 0x10
mov eax, dword [eax + 4]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x407670
mov eax, 0x41a8d8
push eax
call dword [sym.imp.kernel32.dll_GetSystemDefaultLangID]
movzx eax, ax
push eax
call fcn.00408695
push eax
lea eax, [ebp - 0x14b0]
push eax
lea eax, [ebp - 0x34b0]
push eax
push 0x423f34
push 0x1194
push 0x75
push 0x41b5d8
push 0x32
call fcn.00408cb1
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x74b0]
push eax
call fcn.0040ba39
add esp, 0x28
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
push 1
call fcn.00404d0d
mov eax, dword [0x423d24]
cmp dword [eax + 0x1024], ebx
je 0x4076e6
lea eax, [ebp - 0x74b0]
push 0x41b5cc
push eax
call fcn.0040bb70
pop ecx
pop ecx
push 0x41b5bc
push 0xf
call fcn.00408cb1
push eax
lea eax, [ebp - 0x74b0]
push eax
call fcn.0040bb70
lea eax, [ebp - 0x24b0]
push eax
lea eax, [ebp - 0x74b0]
push eax
call fcn.0040bb70
lea eax, [ebp - 0x74b0]
push 0x41b5b8
push eax
call fcn.0040bb70
lea eax, [ebp - 0x14b0]
push eax
lea eax, [ebp - 0x74b0]
push eax
call fcn.0040bb70
lea eax, [ebp - 0x74b0]
push eax
call fcn.0040c050
push eax
lea eax, [ebp - 0x74b0]
push eax
push ebx
call fcn.00408851
mov edi, eax
lea eax, [ebp - 0x74b0]
push 0x2e
push eax
call fcn.0040d600
add esp, 0x40
mov dword [ebp - 0x24], eax
push edi
push 0x41b5b0
push 7
call fcn.00408cb1
pop ecx
pop ecx
push eax
push dword [ebp - 0x24]
call fcn.0040ba39
add esp, 0xc
lea eax, [ebp - 0x74b0]
push eax
push 0x41b5a0
push 0xd
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040a709
lea eax, [ebp - 0x2b0]
push 0x41b58c
push eax
call fcn.0040bb60
mov edi, 0x41b580
push edi
push 0xa
call fcn.00408cb1
push eax
lea eax, [ebp - 0x1ac]
push eax
call fcn.0040bb60
push esi
lea eax, [ebp - 0x12b0]
push ebx
push eax
call fcn.0040bc80
add esp, 0x2c
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
lea eax, [ebp - 0x12b0]
push eax
lea eax, [ebp - 0x74b0]
push eax
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x2b0]
push eax
call fcn.0040a521
cmp eax, ebx
je 0x407849
push esi
lea eax, [ebp - 0x12b0]
push ebx
push eax
call fcn.0040bc80
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
lea eax, [ebp - 0x12b0]
push eax
lea eax, [ebp - 0x74b0]
push eax
push edi
push 0xa
call fcn.00408cb1
pop ecx
pop ecx
push eax
push 0x41b570
push 0xd
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040a521
lea eax, [ebp - 0x12b0]
push eax
push 0x41b558
call fcn.0040a709
pop ecx
pop ecx
call fcn.0040a42e
test al, al
jne 0x40786e
call fcn.0040a4ab
test al, al
je 0x4078cc
call fcn.0040a33c
test al, al
je 0x4078cc
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
push 0x41b54c
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4078cc
push 2
push ebx
push ebx
push esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x12b0]
push eax
call fcn.0040c050
pop ecx
push eax
lea eax, [ebp - 0x12b0]
push eax
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jbe 0x40795c
cmp byte [ebp - 0x12b0], bl
je 0x40795c
mov byte [ebp + eax - 0x12b0], bl
lea eax, [ebp - 0x12b0]
mov dword [0x423fa8], ebx
lea esi, [ebp - 0x12b0]
push eax
call fcn.00403451
cmp eax, ebx
pop ecx
jle 0x407908
add esi, eax
push esi
jmp 0x4078f9
jl 0x407992
mov eax, dword [0x423f84]
mov esi, dword [eax]
cmp esi, eax
je 0x407955
mov ecx, dword [esi + 0x1c]
call fcn.0040428e
mov ecx, dword [esi + 8]
mov eax, dword [0x423f60]
cmp ecx, eax
je 0x407937
mov esi, ecx
mov ecx, dword [esi]
cmp ecx, eax
jne 0x40792d
jmp 0x40794d
mov eax, dword [esi + 4]
cmp esi, dword [eax + 8]
jne 0x407946
mov esi, eax
mov eax, dword [eax + 4]
jmp 0x40793a
cmp dword [esi + 8], eax
je 0x40794d
mov esi, eax
cmp esi, dword [0x423f84]
jne 0x407919
call fcn.00402df5
jmp 0x407992
push 0x41b510
push 0x3a
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407d76
inc dword [0x423fa8]
mov eax, dword [0x423fa8]
dec eax
pop ecx
and eax, 3
movzx eax, byte [eax + 0x41f22c]
imul eax, eax, 0xe10
mov dword [0x41f1cc], eax
push ebx
mov dword [0x423f94], ebx
call fcn.0040c33a
add eax, dword [0x41f1cc]
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x20]
mov dword [0x423f90], eax
call fcn.00407c10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret