Function at 0x417c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5f3008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0xfffffffe
xor esi, esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], esi
mov eax, dword [edi + 0x3a14]
lea ecx, [esi + 1]
mov eax, dword [eax + 0x38]
mov eax, dword [eax]
test eax, eax
je 0x417cad
mov edx, dword [ebp + 0x1c]
cmp eax, edx
je 0x417cc5
mov eax, dword [eax]
inc ecx
test eax, eax
jne 0x417ca2
pop edi
pop esi
mov eax, 0xc81
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x1c
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x417cad
push 0
lea eax, [edi + 0x3a0c]
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 8]
push 4
push eax
push dword [edi + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x417d11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 0xc82
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp + 0x18]
mov ecx, 1
mov eax, dword [eax + ebx*4]
mov edx, dword [eax + 0x14]
mov eax, dword [edi + 0x3a14]
mov eax, dword [eax + 0x34]
mov eax, dword [eax]
test eax, eax
je 0x417d3b
nop
cmp eax, edx
je 0x417d53
mov eax, dword [eax]
inc ecx
test eax, eax
jne 0x417d30
pop edi
pop esi
mov eax, 0xc83
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x1c
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x417d3b
push 0
lea eax, [edi + 0x3a0c]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [edi + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x417d9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 0xc84
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x1c
mov edx, dword [ebp + 0x10]
cmp ebx, edx
jge 0x41803a
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov eax, dword [eax + ebx*4]
mov edi, dword [eax + 0x10]
cmp ebx, edx
jge 0x417ded
mov eax, dword [ebp - 0x14]
add eax, 0x9a1e
lea edx, [eax + esi*2]
mov eax, dword [ebp + 8]
lea esi, [eax + ebx*2]
movsx eax, word [edi + 4]
cmp ecx, eax
jge 0x417de7
mov ax, word [esi]
inc ecx
inc dword [ebp - 0x18]
add esi, 2
mov word [edx], ax
add edx, 2
lea eax, [ecx + ebx]
cmp eax, dword [ebp + 0x10]
jl 0x417dc7
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp + 0x10]
add ecx, ebx
mov ebx, ecx
cmp ecx, edx
jge 0x417ed0
mov eax, dword [ebp + 0x18]
mov edx, dword [edi + 0xc]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x10]
cmp edx, dword [eax + 0xc]
je 0x417ecd
mov edi, dword [ebp - 0x14]
mov ecx, 1
mov eax, dword [edi + 0x3a14]
mov eax, dword [eax + 0x30]
mov eax, dword [eax]
test eax, eax
je 0x417e30
cmp eax, edx
je 0x417e48
mov eax, dword [eax]
inc ecx
test eax, eax
jne 0x417e25
pop edi
pop esi
mov eax, 0xc85
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x1c
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x417e30
push 0
lea eax, [edi + 0x3a0c]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [edi + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417f46
push 0
lea eax, [edi + 0x3a0c]
mov dword [ebp - 8], esi
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [edi + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417f23
push 0
lea eax, [edi + 0x3a0c]
push eax
lea eax, [esi + esi]
push eax
lea eax, [edi + 0x9a1e]
push eax
push dword [edi + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41800f
mov edx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x18], esi
jmp 0x417da7
mov edx, dword [ebp + 0x10]
mov ebx, ecx
cmp ebx, edx
jl 0x417da7
test esi, esi
jle 0x418032
mov eax, dword [ebp - 0x14]
mov ecx, 1
mov eax, dword [eax + 0x3a14]
mov eax, dword [eax + 0x30]
mov eax, dword [eax]
test eax, eax
je 0x417f0b
mov edx, dword [edi + 0xc]
nop dword [eax]
cmp eax, edx
je 0x417f69
mov eax, dword [eax]
inc ecx
test eax, eax
jne 0x417f00
pop edi
pop esi
mov eax, 0xc88
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 0xc87
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 0xc86
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x1c
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x417f0b
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edi, dword [ebp - 0x14]
push 0
push ebx
push 4
push eax
push dword [edi + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x417fb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 0xc89
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x1c
push 0
push ebx
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push dword [edi + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x417ff1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 0xc8a
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x1c
push 0
push ebx
lea eax, [esi + esi]
push eax
lea eax, [edi + 0x9a1e]
push eax
push dword [edi + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x418040
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 0xee6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x1c
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
jmp 0x418040
lea ebx, [edi + 0x3a0c]
push 0
push ebx
push 4
lea eax, [ebp - 0xc]
push eax
push dword [edi + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41807c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 0xc8b
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x1c