Function at 0x4051d0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42769c
mov eax, dword fs:[0]
push eax
sub esp, 0x710
mov eax, dword [0x4334ac]
xor eax, esp
mov dword [esp + 0x708], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4334ac]
xor eax, esp
push eax
lea eax, [esp + 0x724]
mov dword fs:[0], eax
mov eax, dword [esp + 0x734]
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
cmp byte [0x436791], bl
jne 0x40551f
call fcn.00404870
cmp byte [eax + 0x96a], bl
je 0x40551f
cmp byte [0x436791], bl
jne 0x40551f
call fcn.00404870
cmp byte [eax + 0x128], bl
je 0x405257
add eax, 0x18
jmp 0x40525a
mov eax, dword [eax + 0x14]
add eax, 4
cmp eax, ebx
je 0x40551f
cmp word [eax], bx
je 0x40551f
push ebx
push ebx
push ebx
push ebx
push str.ErrorLog
push eax
lea ecx, [esp + 0x3bc]
call fcn.00406d20
lea ecx, [esp + 0x3a4]
mov dword [esp + 0x72c], ebx
call fcn.004076d0
test al, al
je 0x405513
push ebx
call fcn.00416fbc
add esp, 4
lea edi, [esp + 0x27c]
mov esi, eax
mov ebp, edx
call fcn.00408250
push str._Y__M__D
push ebp
push esi
mov eax, edi
mov byte [esp + 0x738], 1
call fcn.00408c00
lea eax, [esp + 0x288]
cmp byte [esp + 0x398], bl
jne 0x4052e5
mov eax, dword [esp + 0x284]
push ebx
push ebx
push ebx
push ebx
add eax, 4
push eax
lea edx, [esp + 0x3b8]
push edx
lea ecx, [esp + 0x16c]
call fcn.00406f70
lea ecx, [esp + 0x154]
mov byte [esp + 0x72c], 2
call fcn.004076d0
test al, al
jne 0x405373
mov byte [esp + 0x28], bl
mov dword [esp + 0x24], ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x15c]
mov byte [esp + 0x734], 3
call fcn.00407950
test al, al
jne 0x405356
lea ecx, [esp + 0x24]
call fcn.00404d40
lea ecx, [esp + 0x24]
call fcn.00404c90
jmp 0x4054fb
lea eax, [esp + 0x154]
call fcn.00408160
lea ecx, [esp + 0x24]
mov byte [esp + 0x72c], 2
call fcn.00404c90
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push ebx
push ebx
push ebx
push str..log
push edx
lea eax, [esp + 0x168]
mov byte [ecx + 4], bl
push eax
lea ecx, [esp + 0x60c]
call fcn.00406f70
push ebx
push 0x80
push 4
push ebx
push ebx
push 4
lea ecx, [esp + 0x60c]
call fcn.00407330
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4054cf
push 1
push esi
call fcn.00406140
push 1
push esi
call fcn.00406190
add esp, 0x10
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4054cf
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x40541f
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x28]
push edx
push esi
mov byte [esp + 0x30], 0xff
mov byte [esp + 0x31], 0xfe
mov dword [esp + 0x2c], ebx
call ebp
cmp dword [esp + 0x18], 2
jne 0x4054cf
lea edi, [esp + 0x4cc]
call fcn.00408250
mov eax, dword [esp + 0x20]
push eax
call fcn.00405000
lea edi, [esp + 0x2c]
call fcn.00408250
push 0x42b538
push ebx
call fcn.00416fbc
add esp, 4
push edx
push eax
mov eax, edi
call fcn.00408c00
push 0x42b534
push 0x42b32c
mov edx, edi
call fcn.00408980
add esp, 8
lea ecx, [esp + 0x4cc]
call fcn.00407330
push eax
push 0x42b32c
mov edx, edi
call fcn.00408980
push 0x42b4c0
push 0x42b32c
mov edx, edi
call fcn.00408980
mov edi, dword [esp + 0x40]
add esp, 0x10
push ebx
lea ecx, [esp + 0x1c]
push ecx
add edi, edi
push edi
lea eax, [esp + 0x38]
mov dword [esp + 0x24], ebx
call fcn.00408960
push eax
push esi
call ebp
lea ecx, [esp + 0x2c]
cmp dword [esp + 0x18], edi
je 0x4054d7
call fcn.00408470
lea ecx, [esp + 0x4cc]
call fcn.00408470
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4054ef
call fcn.00408470
lea ecx, [esp + 0x4cc]
call fcn.00408470
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x5f4]
call fcn.00408470
lea ecx, [esp + 0x154]
call fcn.00408470
lea ecx, [esp + 0x27c]
call fcn.00408470
lea ecx, [esp + 0x3a4]
call fcn.00408470
mov ecx, dword [esp + 0x724]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x708]
xor ecx, esp
call fcn.00415c3e
add esp, 0x71c
ret 4