Function at 0x423c08
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff3c
push ebx
mov eax, 0x4ddf00
call fcn.004b4ac0
mov word [ebp - 0x40], 8
lea eax, [ebp - 8]
call fcn.00401e38
inc dword [ebp - 0x34]
inc dword [ebp - 0x34]
mov word [ebp - 0x40], 0x14
mov dx, word [0x4dddc6]
mov word [ebp - 0x67], dx
mov dl, byte [0x4dddc8]
mov byte [ebp - 0x65], dl
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
add edx, 0x24
lea eax, [ebp - 8]
call fcn.004c232c
mov ecx, dword [ebp - 0x80]
mov al, byte [ecx]
mov byte [ebp - 0x2c], al
mov edx, dword [ebp - 0x80]
mov cl, byte [edx + 1]
mov byte [ebp - 0x2b], cl
mov eax, dword [ebp - 0x80]
mov dl, byte [eax + 2]
mov byte [ebp - 0x2a], dl
mov ecx, dword [ebp - 0x80]
mov eax, dword [ecx + 3]
mov dword [ebp - 0x29], eax
mov edx, dword [ebp - 0x80]
mov ecx, dword [edx + 7]
mov dword [ebp - 0x25], ecx
mov eax, dword [ebp - 0x80]
mov edx, dword [eax + 0xb]
mov dword [ebp - 0x21], edx
mov ecx, dword [ebp - 0x80]
mov eax, dword [ecx + 0xf]
mov dword [ebp - 0x1d], eax
mov edx, dword [ebp - 0x80]
mov ecx, dword [edx + 0x13]
mov dword [ebp - 0x19], ecx
mov eax, dword [ebp - 0x80]
mov edx, dword [eax + 0x17]
mov dword [ebp - 0x15], edx
mov ecx, dword [ebp - 0x80]
mov al, byte [ecx + 0x1b]
mov byte [ebp - 0x11], al
mov edx, dword [ebp - 0x80]
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x80]
mov edx, dword [eax + 0x20]
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0x80]
mov eax, dword [ecx + 0x28]
mov dword [ebp - 4], eax
push 0
push connect
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
add eax, 0x24
call fcn.00410e44
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
cmp edx, 0xffffffff
jne 0x423d26
xor eax, eax
push eax
dec dword [ebp - 0x34]
dec dword [ebp - 0x34]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004c22fc
pop eax
mov edx, dword [ebp - 0x50]
mov dword fs:[0], edx
jmp 0x423f5c
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x70], ecx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x15], eax
mov edx, dword [ebp - 0x70]
add edx, edx
lea edx, [edx + edx*2]
push edx
call fcn.004b404c
pop ecx
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x70]
add ecx, ecx
lea ecx, [ecx + ecx*2]
push ecx
push 0
push dword [ebp - 0x60]
call fcn.004b4668
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.00422db0
add esp, 8
push 0
lea ecx, [ebp - 0x58]
push ecx
push 0x20
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
mov dl, byte [ebp - 0x11]
cmp dl, 1
jne 0x423da6
push 0
lea ecx, [ebp - 0x58]
push ecx
mov eax, dword [ebp - 0x70]
add eax, eax
lea eax, [eax + eax*2]
push eax
push dword [ebp - 0x60]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
push 0x10000
call fcn.004b404c
pop ecx
mov dword [ebp - 0x64], eax
mov dl, byte [ebp - 0x2b]
mov byte [ebp - 0xc4], dl
mov ecx, dword [ebp - 0x21]
mov dword [ebp - 0xc3], ecx
mov eax, dword [ebp - 0x1d]
mov dword [ebp - 0xbf], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0xab], edx
lea ecx, [ebp - 0x67]
mov dword [ebp - 0xaf], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xa7], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x5c], edx
mov ecx, dword [ebp - 0x70]
add ecx, ecx
lea ecx, [ecx + ecx*2]
add ecx, 0x20
mov dword [ebp - 0x7c], ecx
xor eax, eax
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
cmp edx, ecx
jge 0x423efb
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x74]
mov cl, byte [eax + edx*2]
mov byte [ebp - 0x67], cl
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x74]
mov cl, byte [eax + edx*2 + 1]
mov byte [ebp - 0x66], cl
lea eax, [ebp - 0xc4]
push eax
call fcn.00422fa8
pop ecx
mov dword [ebp - 0x6c], eax
mov dl, byte [ebp - 0x11]
cmp dl, 1
jne 0x423e7e
mov ecx, dword [ebp - 0x74]
lea ecx, [ecx + ecx*2]
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x74]
mov dl, byte [edx + ebx*2]
mov byte [eax + ecx*2], dl
mov eax, dword [ebp - 0x74]
lea eax, [eax + eax*2]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x74]
mov dl, byte [edx + ebx*2 + 1]
mov byte [ecx + eax*2 + 1], dl
mov eax, dword [ebp - 0x74]
lea eax, [eax + eax*2]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x7c]
mov dword [ecx + eax*2 + 2], edx
mov al, byte [ebp - 0x2b]
cmp al, 1
jne 0x423eb4
mov cx, word [ebp - 0xbb]
mov word [ebp - 0x76], cx
push 0
lea eax, [ebp - 0x58]
push eax
push 2
lea edx, [ebp - 0x76]
push edx
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x7c]
add ecx, eax
add ecx, 2
mov dword [ebp - 0x7c], ecx
jmp 0x423eba
mov edx, dword [ebp - 0x6c]
add dword [ebp - 0x7c], edx
push 0
lea ecx, [ebp - 0x58]
push ecx
push dword [ebp - 0x6c]
push dword [ebp - 0x64]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
imul eax, dword [ebp - 0x74], 0x64
cdq
idiv dword [ebp - 0x70]
push eax
call fcn.00422d94
pop ecx
mov ecx, dword [0x4e518c]
mov eax, dword [ecx]
call fcn.0047fd80
inc dword [ebp - 0x74]
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
cmp edx, ecx
jl 0x423e11
mov al, byte [ebp - 0x11]
cmp al, 1
jne 0x423f2a
push 0
push 0
push 0x20
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp - 0x70]
add ecx, ecx
lea ecx, [ecx + ecx*2]
push ecx
push dword [ebp - 0x60]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
push dword [ebp - 0x64]
call fcn.004b405c
pop ecx
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
push eax
dec dword [ebp - 0x34]
dec dword [ebp - 0x34]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004c22fc
pop eax
mov edx, dword [ebp - 0x50]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret