Function at 0x423634
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff4c
mov eax, 0x4ddec0
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 [0x4dddc3]
mov word [ebp - 0x5f], dx
mov dl, byte [0x4dddc5]
mov byte [ebp - 0x5d], dl
mov ecx, dword [ebp + 8]
mov al, byte [ecx + 1]
cmp al, 1
jne 0x4236a5
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 0x423c02
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
add edx, 0x24
lea eax, [ebp - 8]
call fcn.004c232c
mov ecx, dword [ebp - 0x70]
mov al, byte [ecx]
mov byte [ebp - 0x2c], al
mov edx, dword [ebp - 0x70]
mov cl, byte [edx + 1]
mov byte [ebp - 0x2b], cl
mov eax, dword [ebp - 0x70]
mov dl, byte [eax + 2]
mov byte [ebp - 0x2a], dl
mov ecx, dword [ebp - 0x70]
mov eax, dword [ecx + 3]
mov dword [ebp - 0x29], eax
mov edx, dword [ebp - 0x70]
mov ecx, dword [edx + 7]
mov dword [ebp - 0x25], ecx
mov eax, dword [ebp - 0x70]
mov edx, dword [eax + 0xb]
mov dword [ebp - 0x21], edx
mov ecx, dword [ebp - 0x70]
mov eax, dword [ecx + 0xf]
mov dword [ebp - 0x1d], eax
mov edx, dword [ebp - 0x70]
mov ecx, dword [edx + 0x13]
mov dword [ebp - 0x19], ecx
mov eax, dword [ebp - 0x70]
mov edx, dword [eax + 0x17]
mov dword [ebp - 0x15], edx
mov ecx, dword [ebp - 0x70]
mov al, byte [ecx + 0x1b]
mov byte [ebp - 0x11], al
mov edx, dword [ebp - 0x70]
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x70]
mov edx, dword [eax + 0x20]
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0x70]
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 0x423781
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 0x423c02
lea ecx, [ebp - 0x90]
push ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.00422db0
add esp, 8
push 0
lea edx, [ebp - 0x58]
push edx
push 0x20
lea ecx, [ebp - 0x90]
push ecx
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
push 0x10000
call fcn.004b404c
pop ecx
mov dword [ebp - 0x5c], eax
mov al, byte [ebp - 0x2b]
mov byte [ebp - 0xb4], al
mov edx, dword [ebp - 0x21]
mov dword [ebp - 0xb3], edx
mov ecx, dword [ebp - 0x1d]
mov dword [ebp - 0xaf], ecx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x9b], eax
lea edx, [ebp - 0x5f]
mov dword [ebp - 0x9f], edx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x97], ecx
mov al, byte [ebp - 0x2a]
sub al, 1
jb 0x423811
je 0x423906
dec al
je 0x4239e8
dec al
je 0x423aca
jmp 0x423bd0
mov edx, dword [ebp - 0x21]
sar edx, 1
jns 0x42381b
adc edx, 0
mov dword [ebp - 0xb3], edx
mov dword [ebp - 0x68], 0x20
mov cl, byte [ebp - 0x68]
mov byte [ebp - 0x5f], cl
mov byte [ebp - 0x5e], 0
lea eax, [ebp - 0xb4]
push eax
call fcn.00422fa8
pop ecx
mov dword [ebp - 0x64], eax
push 0
lea edx, [ebp - 0x58]
push edx
push dword [ebp - 0x64]
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
inc dword [ebp - 0x68]
mov ecx, dword [ebp - 0x68]
cmp ecx, 0x7f
jle 0x423828
mov eax, dword [ebp - 0x21]
mov dword [ebp - 0xb3], eax
mov dword [ebp - 0x68], 0xa1
mov dword [ebp - 0x6c], 0x40
mov edx, dword [ebp - 0x6c]
cmp edx, 0x7f
jne 0x423887
mov dword [ebp - 0x6c], 0xa1
mov cl, byte [ebp - 0x68]
mov byte [ebp - 0x5f], cl
mov al, byte [ebp - 0x6c]
mov byte [ebp - 0x5e], al
mov byte [ebp - 0x5d], 0
lea edx, [ebp - 0xb4]
push edx
call fcn.00422fa8
pop ecx
mov dword [ebp - 0x64], eax
push 0
lea ecx, [ebp - 0x58]
push ecx
push dword [ebp - 0x64]
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
inc dword [ebp - 0x6c]
mov eax, dword [ebp - 0x6c]
cmp eax, 0xfe
jle 0x423878
mov edx, dword [ebp - 0x68]
add edx, 0xffffff5f
imul eax, edx, 0x64
mov ecx, 0x5d
cdq
idiv ecx
push eax
call fcn.00422d94
pop ecx
mov eax, dword [0x4e518c]
mov eax, dword [eax]
call fcn.0047fd80
inc dword [ebp - 0x68]
mov edx, dword [ebp - 0x68]
cmp edx, 0xfe
jle 0x423871
jmp 0x423bd0
mov ecx, dword [ebp - 0x21]
sar ecx, 1
jns 0x423910
adc ecx, 0
mov dword [ebp - 0xb3], ecx
mov dword [ebp - 0x68], 0x20
mov al, byte [ebp - 0x68]
mov byte [ebp - 0x5f], al
mov byte [ebp - 0x5e], 0
lea edx, [ebp - 0xb4]
push edx
call fcn.00422fa8
pop ecx
mov dword [ebp - 0x64], eax
push 0
lea ecx, [ebp - 0x58]
push ecx
push dword [ebp - 0x64]
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
inc dword [ebp - 0x68]
mov eax, dword [ebp - 0x68]
cmp eax, 0x7f
jle 0x42391d
mov edx, dword [ebp - 0x21]
mov dword [ebp - 0xb3], edx
mov dword [ebp - 0x68], 0x81
mov dword [ebp - 0x6c], 0x40
mov cl, byte [ebp - 0x68]
mov byte [ebp - 0x5f], cl
mov al, byte [ebp - 0x6c]
mov byte [ebp - 0x5e], al
mov byte [ebp - 0x5d], 0
lea edx, [ebp - 0xb4]
push edx
call fcn.00422fa8
pop ecx
mov dword [ebp - 0x64], eax
push 0
lea ecx, [ebp - 0x58]
push ecx
push dword [ebp - 0x64]
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
inc dword [ebp - 0x6c]
mov eax, dword [ebp - 0x6c]
cmp eax, 0xfe
jle 0x42396d
mov edx, dword [ebp - 0x68]
add edx, 0xffffff7f
imul eax, edx, 0x64
mov ecx, 0x7d
cdq
idiv ecx
push eax
call fcn.00422d94
pop ecx
mov eax, dword [0x4e518c]
mov eax, dword [eax]
call fcn.0047fd80
inc dword [ebp - 0x68]
mov edx, dword [ebp - 0x68]
cmp edx, 0xfe
jle 0x423966
jmp 0x423bd0
mov ecx, dword [ebp - 0x21]
sar ecx, 1
jns 0x4239f2
adc ecx, 0
mov dword [ebp - 0xb3], ecx
mov dword [ebp - 0x68], 0x20
mov al, byte [ebp - 0x68]
mov byte [ebp - 0x5f], al
mov byte [ebp - 0x5e], 0
lea edx, [ebp - 0xb4]
push edx
call fcn.00422fa8
pop ecx
mov dword [ebp - 0x64], eax
push 0
lea ecx, [ebp - 0x58]
push ecx
push dword [ebp - 0x64]
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
inc dword [ebp - 0x68]
mov eax, dword [ebp - 0x68]
cmp eax, 0x7f
jle 0x4239ff
mov edx, dword [ebp - 0x21]
mov dword [ebp - 0xb3], edx
mov dword [ebp - 0x68], 0xa1
mov dword [ebp - 0x6c], 0xa0
mov cl, byte [ebp - 0x68]
mov byte [ebp - 0x5f], cl
mov al, byte [ebp - 0x6c]
mov byte [ebp - 0x5e], al
mov byte [ebp - 0x5d], 0
lea edx, [ebp - 0xb4]
push edx
call fcn.00422fa8
pop ecx
mov dword [ebp - 0x64], eax
push 0
lea ecx, [ebp - 0x58]
push ecx
push dword [ebp - 0x64]
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
inc dword [ebp - 0x6c]
mov eax, dword [ebp - 0x6c]
cmp eax, 0xfe
jle 0x423a4f
mov edx, dword [ebp - 0x68]
add edx, 0xffffff5f
imul eax, edx, 0x64
mov ecx, 0x5d
cdq
idiv ecx
push eax
call fcn.00422d94
pop ecx
mov eax, dword [0x4e518c]
mov eax, dword [eax]
call fcn.0047fd80
inc dword [ebp - 0x68]
mov edx, dword [ebp - 0x68]
cmp edx, 0xfe
jle 0x423a48
jmp 0x423bd0
mov ecx, dword [ebp - 0x21]
sar ecx, 1
jns 0x423ad4
adc ecx, 0
mov dword [ebp - 0xb3], ecx
mov dword [ebp - 0x68], 0x20
mov eax, dword [ebp - 0x68]
cmp eax, 0x80
jne 0x423af2
mov dword [ebp - 0x68], 0xa0
mov dl, byte [ebp - 0x68]
mov byte [ebp - 0x5f], dl
mov byte [ebp - 0x5e], 0
lea ecx, [ebp - 0xb4]
push ecx
call fcn.00422fa8
pop ecx
mov dword [ebp - 0x64], eax
push 0
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x64]
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
inc dword [ebp - 0x68]
mov edx, dword [ebp - 0x68]
cmp edx, 0xdf
jle 0x423ae1
mov ecx, dword [ebp - 0x21]
mov dword [ebp - 0xb3], ecx
mov dword [ebp - 0x68], 0x81
mov eax, dword [ebp - 0x68]
cmp eax, 0xa0
jne 0x423b4f
mov dword [ebp - 0x68], 0xe0
mov dword [ebp - 0x6c], 0x40
mov dl, byte [ebp - 0x68]
mov byte [ebp - 0x5f], dl
mov cl, byte [ebp - 0x6c]
mov byte [ebp - 0x5e], cl
mov byte [ebp - 0x5d], 0
lea eax, [ebp - 0xb4]
push eax
call fcn.00422fa8
pop ecx
mov dword [ebp - 0x64], eax
push 0
lea edx, [ebp - 0x58]
push edx
push dword [ebp - 0x64]
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
inc dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xfc
jle 0x423b56
mov eax, dword [ebp - 0x68]
add eax, 0xffffff7f
imul eax, eax, 0x64
mov ecx, 0x7b
cdq
idiv ecx
push eax
call fcn.00422d94
pop ecx
mov eax, dword [0x4e518c]
mov eax, dword [eax]
call fcn.0047fd80
inc dword [ebp - 0x68]
mov edx, dword [ebp - 0x68]
cmp edx, 0xfc
jle 0x423b3e
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
mov esp, ebp
pop ebp
ret