Function at 0x414dd0
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 0x4150d9
cmp eax, ebx
je 0x4150d9
push esi
push 0x74
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x414f67
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.00416da0
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 0x414e70
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 0x414f62
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 0x414ea0
mov byte [esi + 0x5c], bl
mov cl, 0x72
cmp byte [edi], cl
jne 0x414eba
mov byte [esi + 0x5c], cl
mov al, byte [edi]
cmp al, 0x77
je 0x414ec4
cmp al, 0x61
jne 0x414ec8
mov byte [esi + 0x5c], 0x77
mov al, byte [edi]
cmp al, 0x30
jl 0x414eda
cmp al, 0x39
jg 0x414eda
movsx ebp, al
sub ebp, 0x30
jmp 0x414f0f
cmp al, 0x66
jne 0x414ee8
mov dword [esp + 0x18], 1
jmp 0x414f0f
cmp al, 0x68
jne 0x414ef6
mov dword [esp + 0x18], 2
jmp 0x414f0f
cmp al, 0x52
jne 0x414f04
mov dword [esp + 0x18], 3
jmp 0x414f0f
mov edx, dword [esp + 0x20]
add edx, 1
mov dword [esp + 0x20], edx
add edi, 1
cmp al, bl
je 0x414f20
lea eax, [esp + 0x74]
cmp dword [esp + 0x20], eax
jne 0x414eb3
mov al, byte [esi + 0x5c]
cmp al, bl
je 0x414f62
cmp al, 0x77
jne 0x414f7c
mov ecx, dword [esp + 0x18]
push 0x38
push 0x42edc0
push ecx
push 8
push 0xfffffffffffffff1
push 8
push ebp
push esi
call fcn.00416760
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 0x414f62
cmp eax, ebx
jne 0x414fa7
call fcn.00414af0
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00418bea
add esp, 0x68
ret
push 0x4000
call dword [sym.imp.MSVCR80.dll_malloc]
push 0x38
push 0x42edc0
push 0xfffffffffffffff1
push esi
mov dword [esi + 0x44], eax
mov dword [esi], eax
call fcn.004169e0
add esp, 0x14
test eax, eax
jne 0x414f62
cmp dword [esi + 0x44], ebx
je 0x414f62
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 0x414f62
cmp byte [esi + 0x5c], 0x77
jne 0x4150c4
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.00418bea
add esp, 0x68
ret
mov ecx, dword [esp + 0x70]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00418bea
add esp, 0x68
ret