Function at 0x414eb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x68
mov eax, dword [0x43d2ac]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x6c]
push ebx
xor ebx, ebx
push ebp
or ebp, 0xffffffff
cmp ecx, ebx
lea edx, [esp + 0x1c]
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebx
mov edi, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
je 0x4151b9
cmp eax, ebx
je 0x4151b9
push esi
push 0x74
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x415047
push ebx
push ebx
push ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x44], ebx
mov dword [esi], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebp
call fcn.00416e80
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x28]
add esp, 0xc
mov dword [esi + 0x50], ebx
mov dword [esi + 0x58], ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x414f50
sub eax, edx
add eax, 1
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
cmp eax, ebx
mov dword [esi + 0x54], eax
je 0x415042
mov ecx, dword [esp + 0x1c]
mov edx, eax
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
cmp al, bl
jne 0x414f80
mov byte [esi + 0x5c], bl
mov cl, 0x72
cmp byte [edi], cl
jne 0x414f9a
mov byte [esi + 0x5c], cl
mov al, byte [edi]
cmp al, 0x77
je 0x414fa4
cmp al, 0x61
jne 0x414fa8
mov byte [esi + 0x5c], 0x77
mov al, byte [edi]
cmp al, 0x30
jl 0x414fba
cmp al, 0x39
jg 0x414fba
movsx ebp, al
sub ebp, 0x30
jmp 0x414fef
cmp al, 0x66
jne 0x414fc8
mov dword [esp + 0x18], 1
jmp 0x414fef
cmp al, 0x68
jne 0x414fd6
mov dword [esp + 0x18], 2
jmp 0x414fef
cmp al, 0x52
jne 0x414fe4
mov dword [esp + 0x18], 3
jmp 0x414fef
mov edx, dword [esp + 0x20]
add edx, 1
mov dword [esp + 0x20], edx
add edi, 1
cmp al, bl
je 0x415000
lea eax, [esp + 0x74]
cmp dword [esp + 0x20], eax
jne 0x414f93
mov al, byte [esi + 0x5c]
cmp al, bl
je 0x415042
cmp al, 0x77
jne 0x41505c
mov ecx, dword [esp + 0x18]
push 0x38
push 0x42edd0
push ecx
push 8
push 0xfffffffffffffff1
push 8
push ebp
push esi
call fcn.00416840
push 0x4000
mov edi, eax
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 0x24
cmp edi, ebx
mov dword [esi + 0x48], eax
mov dword [esi + 0xc], eax
jne 0x415042
cmp eax, ebx
jne 0x415087
call fcn.00414bd0
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00418cca
add esp, 0x68
ret
push 0x4000
call dword [sym.imp.MSVCR80.dll_malloc]
push 0x38
push 0x42edd0
push 0xfffffffffffffff1
push esi
mov dword [esi + 0x44], eax
mov dword [esi], eax
call fcn.00416ac0
add esp, 0x14
test eax, eax
jne 0x415042
cmp dword [esi + 0x44], ebx
je 0x415042
mov dword [esi + 0x10], 0x4000
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [esp + 0x1c]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push edx
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, ebx
mov dword [esi + 0x40], eax
je 0x415042
cmp byte [esi + 0x5c], 0x77
jne 0x4151a4
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x1f]
mov byte [esp + 0x1f], 0x1f
mov edx, dword [esi + 0x40]
push ecx
push edx
call edi
push ebx
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x1f]
mov byte [esp + 0x1f], 0x8b
mov edx, dword [esi + 0x40]
push ecx
push edx
call edi
push ebx
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x1f]
mov byte [esp + 0x1f], 8
mov edx, dword [esi + 0x40]
push ecx
push edx
call edi
push ebx
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x1f]
mov byte [esp + 0x1f], bl
mov edx, dword [esi + 0x40]
push ecx
push edx
call edi
mov edx, dword [esi + 0x40]
push ebx
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x1f]
push ecx
push edx
call edi
mov edx, dword [esi + 0x40]
push ebx
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x1f]
push ecx
push edx
call edi
mov edx, dword [esi + 0x40]
push ebx
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x1f]
push ecx
push edx
call edi
mov edx, dword [esi + 0x40]
push ebx
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x1f]
push ecx
push edx
call edi
push ebx
lea eax, [esp + 0x18]
push eax
push 1
mov edx, dword [esi + 0x40]
lea ecx, [esp + 0x1f]
push ecx
push edx
call edi
push ebx
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x1f]
mov byte [esp + 0x1f], 0xb
mov edx, dword [esi + 0x40]
push ecx
push edx
call edi
mov dword [esi + 0x60], 0xa
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00418cca
add esp, 0x68
ret
mov ecx, dword [esp + 0x70]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00418cca
add esp, 0x68
ret