Function at 0x40eb40
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x48d5b7
mov eax, dword fs:[0]
push eax
sub esp, 0x704
mov eax, dword [0x4b81f4]
xor eax, esp
mov dword [esp + 0x700], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b81f4]
xor eax, esp
push eax
lea eax, [esp + 0x718]
mov dword fs:[0], eax
mov eax, dword [esp + 0x72c]
mov ebp, dword [esp + 0x728]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
call fcn.0040c9f0
xor ebx, ebx
cmp byte [eax + 0x128], bl
je 0x40eba5
add eax, 0x18
jmp 0x40eba8
mov eax, dword [eax + 0x14]
add eax, 4
cmp eax, ebx
je 0x40ef7f
cmp word [eax], bx
je 0x40ef7f
push ebx
push ebx
push ebx
push ebx
push str.ErrorLog
push eax
lea ecx, [esp + 0x3c]
call fcn.0040d150
lea ecx, [esp + 0x24]
mov dword [esp + 0x720], ebx
call fcn.0040d740
test al, al
jne 0x40ec2b
mov byte [esp + 0x18], bl
mov dword [esp + 0x14], ebx
push ebx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x728], 1
call fcn.0040daf0
test al, al
jne 0x40ec19
lea edi, [esp + 0x14]
call fcn.0040e6d0
call fcn.0040e630
jmp 0x40ef76
lea eax, [esp + 0x24]
call fcn.0040e470
lea edi, [esp + 0x14]
call fcn.0040e630
push ebx
call fcn.0046c6ef
add esp, 4
lea ecx, [esp + 0x274]
mov esi, eax
mov edi, edx
call fcn.0040f730
push str._Y__M__D
push edi
push esi
lea eax, [esp + 0x280]
mov byte [esp + 0x72c], 2
call fcn.0040ff90
lea eax, [esp + 0x280]
cmp byte [esp + 0x390], bl
jne 0x40ec76
mov eax, dword [esp + 0x27c]
push ebx
lea edx, [esp + 0x150]
lea ebx, [eax + 4]
push edx
lea ecx, [esp + 0x2c]
call fcn.0040d320
lea ecx, [esp + 0x14c]
mov byte [esp + 0x720], 3
call fcn.0040d740
xor ebx, ebx
test al, al
jne 0x40ecfb
mov byte [esp + 0x18], bl
mov dword [esp + 0x14], ebx
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x154]
mov byte [esp + 0x728], 4
call fcn.0040daf0
test al, al
jne 0x40ecde
lea edi, [esp + 0x14]
call fcn.0040e6d0
call fcn.0040e630
jmp 0x40ef5e
lea eax, [esp + 0x14c]
call fcn.0040e470
lea edi, [esp + 0x14]
mov byte [esp + 0x720], 3
call fcn.0040e630
push str..log
lea ecx, [esp + 0x4c8]
mov byte [ebp + 4], bl
mov ebx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x154]
call fcn.0040d320
cmp byte [esp + 0x5e0], 0
lea eax, [esp + 0x4d0]
jne 0x40ed33
mov eax, dword [esp + 0x4cc]
xor ebp, ebp
push ebp
push 0x80
push 4
push ebp
push ebp
push 4
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40ee86
push 1
push esi
call fcn.00413b20
push 1
push esi
call fcn.00413b70
add esp, 0x10
push 2
push ebp
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40ee86
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebp
jne 0x40edb0
push ebp
lea edx, [esp + 0x18]
push edx
push 2
lea eax, [esp + 0x28]
push eax
push esi
mov byte [esp + 0x30], 0xff
mov byte [esp + 0x31], 0xfe
mov dword [esp + 0x28], ebp
call ebx
cmp dword [esp + 0x14], 2
jne 0x40ee86
lea ecx, [esp + 0x5ec]
call fcn.0040f730
mov ecx, dword [esp + 0x20]
push ecx
lea edi, [esp + 0x5f0]
call fcn.0040e990
lea ecx, [esp + 0x39c]
call fcn.0040f730
push 0x4add98
push ebp
call fcn.0046c6ef
add esp, 4
push edx
push eax
lea eax, [esp + 0x3a8]
call fcn.0040ff90
push 0x4add94
push 0x4ad42c
lea edx, [esp + 0x3a4]
call fcn.0040fd10
add esp, 8
mov eax, edi
call fcn.0040d4e0
push eax
push 0x4ad42c
lea edx, [esp + 0x3a4]
call fcn.0040fd10
push 0x4add08
push 0x4ad42c
lea edx, [esp + 0x3ac]
call fcn.0040fd10
mov edi, dword [esp + 0x3b0]
add esp, 0x10
push ebp
lea edx, [esp + 0x18]
push edx
add edi, edi
push edi
lea eax, [esp + 0x3a8]
mov dword [esp + 0x20], ebp
call fcn.0040d4e0
push eax
push esi
call ebx
lea ecx, [esp + 0x39c]
cmp dword [esp + 0x14], edi
je 0x40ef3a
call fcn.0040d4b0
lea ecx, [esp + 0x5ec]
call fcn.0040d4b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esp + 0x5e0], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x4c4], esi
jne 0x40eebd
mov eax, dword [esp + 0x4cc]
lea ecx, [esp + 0x4d0]
cmp eax, ecx
je 0x40eebd
push eax
call fcn.0046b865
add esp, 4
cmp byte [esp + 0x268], 0
mov dword [esp + 0x14c], esi
jne 0x40eee9
mov eax, dword [esp + 0x154]
lea edx, [esp + 0x158]
cmp eax, edx
je 0x40eee9
push eax
call fcn.0046b865
add esp, 4
cmp byte [esp + 0x390], 0
mov dword [esp + 0x274], esi
jne 0x40ef15
mov eax, dword [esp + 0x27c]
lea ecx, [esp + 0x280]
cmp eax, ecx
je 0x40ef15
push eax
call fcn.0046b865
add esp, 4
cmp byte [esp + 0x140], 0
mov dword [esp + 0x24], esi
jne 0x40ef7f
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
cmp eax, edx
je 0x40ef7f
push eax
call fcn.0046b865
add esp, 4
jmp 0x40ef7f
call fcn.0040d4b0
lea ecx, [esp + 0x5ec]
call fcn.0040d4b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x4c4]
call fcn.0040d4b0
lea ecx, [esp + 0x14c]
call fcn.0040d4b0
lea ecx, [esp + 0x274]
call fcn.0040d4b0
lea ecx, [esp + 0x24]
call fcn.0040d4b0
mov ecx, dword [esp + 0x718]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x700]
xor ecx, esp
call fcn.0046b4eb
add esp, 0x710
ret 8