Function at 0x423208
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe38
push ebx
mov eax, 0x4dde80
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 [0x4dddc1]
mov word [ebp - 0x76], dx
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
mov edx, dword [ebp + 8]
mov cl, byte [edx + 0x1b]
test cl, cl
jne 0x423310
mov eax, dword [ebp + 8]
mov edx, dword [eax + 3]
test edx, edx
jl 0x4232ea
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 7]
cmp eax, 0xff
jle 0x423310
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 0x42362c
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 7]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 3]
cmp eax, ecx
jge 0x423346
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 0x42362c
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 0x42339a
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 0x42362c
mov ecx, dword [ebp + 8]
mov al, byte [ecx + 0x1b]
test al, al
jne 0x4233f2
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 7]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 3]
sub ecx, edx
inc ecx
mov dword [ebp - 0x68], ecx
xor ecx, ecx
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x68]
cmp eax, edx
jge 0x4233e7
mov cl, byte [ebp - 0x64]
mov eax, dword [ebp + 8]
mov dl, byte [eax + 3]
add cl, dl
mov eax, dword [ebp - 0x64]
mov byte [ebp + eax - 0x1a4], cl
inc dword [ebp - 0x64]
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
cmp edx, ecx
jl 0x4233c5
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x74], eax
jmp 0x423404
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 0x74], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x68], edx
mov cl, byte [ebp - 0x2b]
cmp cl, 1
jne 0x423410
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x15], eax
lea edx, [ebp - 0xa0]
push edx
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00422db0
add esp, 8
mov eax, dword [ebp - 0x68]
add eax, eax
lea eax, [eax + eax*2]
push eax
call fcn.004b404c
pop ecx
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x68]
add edx, edx
lea edx, [edx + edx*2]
push edx
push 0
push dword [ebp - 0x5c]
call fcn.004b4668
add esp, 0xc
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 0x42348a
push 0
lea ecx, [ebp - 0x58]
push ecx
mov eax, dword [ebp - 0x68]
add eax, eax
lea eax, [eax + eax*2]
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
push 0x10000
call fcn.004b404c
pop ecx
mov dword [ebp - 0x60], eax
mov dl, byte [ebp - 0x2b]
mov byte [ebp - 0x1c8], dl
mov ecx, dword [ebp - 0x21]
mov dword [ebp - 0x1c7], ecx
mov eax, dword [ebp - 0x1d]
mov dword [ebp - 0x1c3], eax
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x1af], edx
lea ecx, [ebp - 0x76]
mov dword [ebp - 0x1b3], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1ab], eax
mov edx, dword [ebp - 0x68]
add edx, edx
lea edx, [edx + edx*2]
add edx, 0x20
mov dword [ebp - 0x70], edx
xor ecx, ecx
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x68]
cmp eax, edx
jge 0x4235c2
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x64]
mov dl, byte [ecx + eax]
mov byte [ebp - 0x76], dl
lea ecx, [ebp - 0x1c8]
push ecx
call fcn.00422fa8
pop ecx
mov dword [ebp - 0x7c], eax
mov al, byte [ebp - 0x11]
cmp al, 1
jne 0x423545
mov edx, dword [ebp - 0x64]
lea edx, [edx + edx*2]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x64]
mov al, byte [eax + ebx]
mov byte [ecx + edx*2], al
mov edx, dword [ebp - 0x64]
lea edx, [edx + edx*2]
mov ecx, dword [ebp - 0x5c]
mov byte [ecx + edx*2 + 1], 0
mov eax, dword [ebp - 0x64]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x70]
mov dword [edx + eax*2 + 2], ecx
mov al, byte [ebp - 0x2b]
cmp al, 1
jne 0x42357b
mov dx, word [ebp - 0x1bf]
mov word [ebp - 0x6a], dx
push 0
lea ecx, [ebp - 0x58]
push ecx
push 2
lea eax, [ebp - 0x6a]
push eax
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
mov edx, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x70]
add edx, ecx
add edx, 2
mov dword [ebp - 0x70], edx
jmp 0x423581
mov eax, dword [ebp - 0x7c]
add dword [ebp - 0x70], eax
push 0
lea edx, [ebp - 0x58]
push edx
push dword [ebp - 0x7c]
push dword [ebp - 0x60]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
imul eax, dword [ebp - 0x64], 0x64
cdq
idiv dword [ebp - 0x68]
push eax
call fcn.00422d94
pop ecx
mov ecx, dword [0x4e518c]
mov eax, dword [ecx]
call fcn.0047fd80
inc dword [ebp - 0x64]
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
cmp edx, ecx
jl 0x4234ef
mov al, byte [ebp - 0x11]
cmp al, 1
jne 0x4235f1
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 - 0x68]
add ecx, ecx
lea ecx, [ecx + ecx*2]
push ecx
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
push dword [ebp - 0x60]
call fcn.004b405c
pop ecx
push dword [ebp - 0x5c]
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