Function at 0x4fef20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6091f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0xbc], eax
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0xd8], esi
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
cmp dword [ebp + 8], esi
mov byte [esp + 0xd8], 1
je 0x4fefb2
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00513630
jmp 0x4fefc1
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.005132d0
mov edi, dword [esp + 0x18]
add esp, 8
cmp dword [edi - 0xc], 0xf
jle 0x4ff027
mov byte [esp + 0xd8], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4feff6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xd8], 0xffffffff
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ff01d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
jmp 0x4ff6f2
mov eax, dword [ebx + 0x34]
add eax, 0x10
shl eax, 7
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0xe0], 2
call fcn.00415030
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
push edx
push esi
push eax
call fcn.005da970
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 6
push str.Name:
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0xe4], 3
call fcn.0040aee0
mov eax, dword [ebx + 0x54]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.0040aee0
push 2
push 0x625fc4
lea eax, [esp + 0x1c]
push eax
call fcn.0040aee0
push 6
push str.Type:
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040aee0
mov eax, dword [ebx + 0x58]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.0040aee0
push 2
push 0x625fc4
lea eax, [esp + 0x1c]
push eax
call fcn.0040aee0
mov esi, dword [esp + 0x14]
mov eax, dword [esi - 0xc]
mov ecx, dword [esp + 0x18]
lea edi, [eax + eax + 2]
push edi
add ecx, 0x60
push esi
push ecx
mov dword [esp + 0x44], edi
call fcn.005d8ed0
add edi, 0x6f
and edi, 0xfffffff0
add esp, 0xc
cmp dword [ebx + 0x68], 0
mov dword [esp + 0x3c], edi
mov dword [ebx + 0x64], 0x5d
je 0x4ff1af
lea eax, [esi - 0x10]
mov byte [esp + 0xd8], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ff145
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005d28c2
mov byte [esp + 0xdc], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
add esp, 4
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ff17a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xd8], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ff1a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4ff6f2
mov eax, dword [esp + 0x28]
mov esi, eax
mov dword [esp + 0x20], 0
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0xe0], 4
call fcn.00415030
push esi
mov esi, dword [esp + 0x24]
push 0
push esi
call fcn.005da970
mov eax, dword [ebx + 0x34]
add esp, 0xc
test eax, eax
lea edx, [eax + eax*4]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], eax
lea esi, [esi + edx*2]
mov dword [esp + 0x2c], 0
jbe 0x4ff365
xor edi, edi
mov dword [esp + 0x30], edi
jmp 0x4ff214
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
cmp eax, dword [ebx + 0x34]
jae 0x4ff3a2
mov eax, dword [ebx + 0x30]
add eax, edi
mov eax, dword [eax]
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.00470800
mov edx, dword [esp + 0x2c]
mov byte [esp + 0xd8], 5
cmp edx, dword [ebx + 0x34]
jae 0x4ff3a2
mov eax, dword [ebx + 0x30]
add eax, edi
mov eax, dword [eax + 4]
sub eax, 0x10
call fcn.0040a210
lea edi, [eax + 0x10]
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x2c]
mov byte [esp + 0xd8], 6
cmp eax, dword [ebx + 0x34]
jae 0x4ff3a2
mov eax, dword [ebx + 0x30]
add eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
fld dword [eax + 8]
mov eax, dword [edi - 0xc]
mov ecx, dword [ecx - 0xc]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add al, al
mov byte [esp + 0x41], al
fstp dword [esp + 0x42]
mov eax, dword [esp + 0x4c]
mov edx, esi
sub edx, dword [esp + 0x20]
mov byte [esp + 0x40], cl
mov dword [esp + 0x46], edx
mov edx, dword [esp + 0x40]
mov dword [eax], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 4], edx
mov dx, word [esp + 0x48]
mov word [eax + 8], dx
add eax, 0xa
mov dword [esp + 0x4c], eax
movzx eax, cl
push eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
push eax
push esi
call fcn.005d8ed0
movzx eax, byte [esp + 0x4d]
add esi, dword [esp + 0x30]
add esp, 0xc
push eax
push edi
push esi
call fcn.005d8ed0
movzx eax, byte [esp + 0x4d]
add edi, 0xfffffff0
add esp, 0xc
add esi, eax
mov byte [esp + 0xd8], 5
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ff31f
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [esp + 0xd8], 4
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ff347
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add dword [esp + 0x30], 0xc
add eax, 1
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
jb 0x4ff210
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
sub esi, eax
cmp dword [ebx + 0x68], 0
mov dword [ebx + 0x64], 0x61
je 0x4ff3ac
push eax
call fcn.005d28c2
mov byte [esp + 0xdc], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4ff139
push 0x80070057
call fcn.00403650
mov ecx, dword [0x678fc8]
test ecx, ecx
je 0x4ff3d8
push 0xffffffffffffffff
push esi
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x34]
push edx
lea edx, [edi + eax]
push edx
call ecx
add esp, 0x14
test eax, eax
je 0x4ff455
mov eax, dword [esp + 0x20]
push eax
call fcn.005d28c2
mov byte [esp + 0xdc], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ff409
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005d28c2
mov byte [esp + 0xdc], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ff43e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xd8], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
jmp 0x4ff004
push 0x5c
lea ecx, [esp + 0x68]
push 0
push ecx
call fcn.005da970
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x68], 0x7d1ea609
mov word [esp + 0x6c], 1
mov word [esp + 0x6e], 0
call fcn.00470800
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx - 0xc]
mov eax, dword [eax]
push ecx
push eax
lea edx, [esp + 0x74]
push edx
call fcn.005d8ed0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ff4c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x94], eax
xor eax, eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0xa4], esi
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0xac], eax
mov dword [esp + 0x8c], 1
mov dword [esp + 0x90], 0x60
mov dword [esp + 0xa8], edx
mov ecx, 0x17
lea esi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
add eax, ecx
push eax
mov ecx, esi
xor eax, eax
call fcn.00405890
xor edi, edi
add esp, 4
mov dword [esi + 0x48], eax
mov dword [esp + 0x38], edi
push edi
push 0x80
push 2
push edi
push 1
mov byte [esp + 0xec], 7
mov edx, dword [esp + 0x30]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4ff60e
call fcn.0040f010
test eax, eax
jge 0x4ff614
mov eax, dword [esp + 0x20]
push eax
call fcn.005d28c2
mov byte [esp + 0xdc], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ff5e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call fcn.005d28c2
mov byte [esp + 0xdc], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4ff432
mov edi, eax
mov dword [esp + 0x38], edi
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
push 0
lea eax, [edx + ecx]
lea ecx, [esp + 0x28]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4ff638
call fcn.0040f010
mov eax, dword [ebx + 0x58]
mov ecx, dword [ebx + 0x54]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.00513220
add esp, 0xc
test edi, edi
mov dword [ebx + 0x64], 0x64
je 0x4ff65f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
push eax
call fcn.005d28c2
mov byte [esp + 0xdc], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ff694
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call fcn.005d28c2
mov byte [esp + 0xdc], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ff6c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xd8], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ff6f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.005d28b3
mov esp, ebp
pop ebp
ret 4