Function at 0x416b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xe0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov ebx, 0xffffffff
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0xffffffff
mov eax, dword [0x4fa49c]
mov ecx, dword [ebp - 0x28]
mov edx, esp
mov dword [edx], ecx
mov dword [edx + 0x14], 0x80
mov dword [edx + 0x10], 2
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x18], 0
mov dword [edx + 4], 0x40000000
call eax
sub esp, 0x1c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], 0xa49d1c94
mov eax, dword [ebp - 0x38]
mov ecx, eax
sub ecx, 0x7b4ab6d9
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
jg 0x416e9c
jmp 0x416bf7
mov eax, dword [ebp - 0x3c]
sub eax, 0x94f45a05
mov dword [ebp - 0x44], eax
jg 0x416c23
jmp 0x416c0d
mov eax, dword [ebp - 0x3c]
sub eax, 0x8639ca75
mov dword [ebp - 0x48], eax
je 0x417175
jmp 0x416eb5
mov eax, dword [ebp - 0x3c]
sub eax, 0xa49d1c93
mov dword [ebp - 0x4c], eax
jg 0x416c4f
jmp 0x416c39
mov eax, dword [ebp - 0x3c]
sub eax, 0x94f45a06
mov dword [ebp - 0x50], eax
je 0x4171f5
jmp 0x416eb5
mov eax, dword [ebp - 0x3c]
sub eax, 0x5fed979e
mov dword [ebp - 0x54], eax
jg 0x416e83
jmp 0x416c65
mov eax, dword [ebp - 0x3c]
sub eax, 0x5bf6be12
mov dword [ebp - 0x58], eax
jg 0x416e6a
jmp 0x416c7b
mov eax, dword [ebp - 0x3c]
sub eax, 0x31cd29ee
mov dword [ebp - 0x5c], eax
jg 0x416e51
jmp 0x416c91
mov eax, dword [ebp - 0x3c]
sub eax, 0x1fdf0a90
mov dword [ebp - 0x60], eax
jg 0x416e38
jmp 0x416ca7
mov eax, dword [ebp - 0x3c]
sub eax, 0x1b24ef8c
mov dword [ebp - 0x64], eax
jg 0x416e1f
jmp 0x416cbd
mov eax, dword [ebp - 0x3c]
sub eax, 0x4bb28f2
mov dword [ebp - 0x68], eax
jg 0x416e06
jmp 0x416cd3
mov eax, dword [ebp - 0x3c]
sub eax, 0xfe24f6bc
mov dword [ebp - 0x6c], eax
jg 0x416ded
jmp 0x416ce9
mov eax, dword [ebp - 0x3c]
sub eax, 0xf7820cf7
mov dword [ebp - 0x70], eax
jg 0x416dd4
jmp 0x416cff
mov eax, dword [ebp - 0x3c]
sub eax, 0xf3496a39
mov dword [ebp - 0x74], eax
jg 0x416dbb
jmp 0x416d15
mov eax, dword [ebp - 0x3c]
sub eax, 0xeb1326bc
mov dword [ebp - 0x78], eax
jg 0x416da2
jmp 0x416d2b
mov eax, dword [ebp - 0x3c]
sub eax, 0xe960a508
mov dword [ebp - 0x7c], eax
jg 0x416d89
jmp 0x416d41
mov eax, dword [ebp - 0x3c]
sub eax, 0xa49d1c94
mov dword [ebp - 0x80], eax
je 0x416eba
jmp 0x416d57
mov eax, dword [ebp - 0x3c]
sub eax, 0xa5947189
mov dword [ebp - 0x84], eax
je 0x41711e
jmp 0x416d70
mov eax, dword [ebp - 0x3c]
sub eax, 0xaeeeb364
mov dword [ebp - 0x88], eax
je 0x416ff6
jmp 0x416eb5
mov eax, dword [ebp - 0x3c]
sub eax, 0xe960a509
mov dword [ebp - 0x8c], eax
je 0x417203
jmp 0x416eb5
mov eax, dword [ebp - 0x3c]
sub eax, 0xeb1326bd
mov dword [ebp - 0x90], eax
je 0x4171a3
jmp 0x416eb5
mov eax, dword [ebp - 0x3c]
sub eax, 0xf3496a3a
mov dword [ebp - 0x94], eax
je 0x417103
jmp 0x416eb5
mov eax, dword [ebp - 0x3c]
sub eax, 0xf7820cf8
mov dword [ebp - 0x98], eax
je 0x416ee5
jmp 0x416eb5
mov eax, dword [ebp - 0x3c]
sub eax, 0xfe24f6bd
mov dword [ebp - 0x9c], eax
je 0x4171b6
jmp 0x416eb5
mov eax, dword [ebp - 0x3c]
sub eax, 0x4bb28f3
mov dword [ebp - 0xa0], eax
je 0x417002
jmp 0x416eb5
mov eax, dword [ebp - 0x3c]
sub eax, 0x1b24ef8d
mov dword [ebp - 0xa4], eax
je 0x417169
jmp 0x416eb5
mov eax, dword [ebp - 0x3c]
sub eax, 0x1fdf0a91
mov dword [ebp - 0xa8], eax
je 0x416ed9
jmp 0x416eb5
mov eax, dword [ebp - 0x3c]
sub eax, 0x31cd29ef
mov dword [ebp - 0xac], eax
je 0x41722f
jmp 0x416eb5
mov eax, dword [ebp - 0x3c]
sub eax, 0x5bf6be13
mov dword [ebp - 0xb0], eax
je 0x41705d
jmp 0x416eb5
mov eax, dword [ebp - 0x3c]
sub eax, 0x5fed979f
mov dword [ebp - 0xb4], eax
je 0x416f40
jmp 0x416eb5
mov eax, dword [ebp - 0x3c]
sub eax, 0x7b4ab6da
mov dword [ebp - 0xb8], eax
je 0x4171d2
jmp 0x416eb5
jmp 0x417236
mov eax, 0xffffffff
mov ecx, 0xf7820cf8
mov edx, 0x1fdf0a91
mov esi, dword [ebp - 0x14]
cmp esi, eax
cmove ecx, edx
mov dword [ebp - 0x38], ecx
jmp 0x417236
mov dword [ebp - 0x38], 0xfe24f6bd
jmp 0x417236
mov eax, 0xe960a509
mov ecx, 0x5fed979f
mov edx, dword [0x4fa544]
mov esi, dword [0x4fa540]
mov edi, edx
sub edi, 0x6c6555e0
sub edi, 1
add edi, 0x6c6555e0
imul edx, edi
and edx, 1
cmp edx, 0
sete bl
cmp esi, 0xa
setl bh
mov dl, bl
and dl, bh
xor bl, bh
or dl, bl
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x38], eax
jmp 0x417236
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.00409e70
mov eax, 0xe960a509
mov ecx, 0xaeeeb364
mov bl, 1
mov edx, dword [0x4fa544]
mov esi, dword [0x4fa540]
mov edi, edx
sub edi, 0xc0512889
sub edi, 1
add edi, 0xc0512889
imul edx, edi
and edx, 1
cmp edx, 0
sete bh
cmp esi, 0xa
setl dl
mov dh, bh
xor dh, 1
mov dword [ebp - 0xbc], eax
mov al, dl
xor al, 1
xor bl, 0
mov ah, dh
and ah, 0
and bh, bl
mov byte [ebp - 0xbd], al
and al, 0
and dl, bl
or ah, bh
or al, dl
xor ah, al
mov al, byte [ebp - 0xbd]
or dh, al
xor dh, 1
or bl, 0
and dh, bl
or ah, dh
test ah, 1
mov esi, dword [ebp - 0xbc]
cmovne esi, ecx
mov dword [ebp - 0x38], esi
jmp 0x417236
mov dword [ebp - 0x38], 0x4bb28f3
jmp 0x417236
mov eax, 0x31cd29ef
mov ecx, 0x5bf6be13
mov edx, dword [0x4fa544]
mov esi, dword [0x4fa540]
mov edi, edx
add edi, 0x5fb7dead
sub edi, 1
sub edi, 0x5fb7dead
imul edx, edi
and edx, 1
cmp edx, 0
sete bl
cmp esi, 0xa
setl bh
mov dl, bl
and dl, bh
xor bl, bh
or dl, bl
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x38], eax
jmp 0x417236
mov eax, 0x31cd29ef
mov ecx, 0xf3496a3a
mov dl, 1
cmp dword [ebp - 0x20], 0
setne dh
and dh, 1
mov byte [ebp - 0xd], dh
mov esi, dword [0x4fa544]
mov edi, dword [0x4fa540]
mov ebx, esi
sub ebx, 0x4e22ca24
sub ebx, 1
add ebx, 0x4e22ca24
imul esi, ebx
and esi, 1
cmp esi, 0
sete dh
cmp edi, 0xa
setl bl
mov bh, dh
xor bh, 1
mov dword [ebp - 0xc4], eax
mov al, bl
xor al, 1
xor dl, 1
mov ah, bh
and ah, 1
and dh, dl
mov byte [ebp - 0xc5], al
and al, 1
and bl, dl
or ah, dh
or al, bl
xor ah, al
mov al, byte [ebp - 0xc5]
or bh, al
xor bh, 1
or dl, 1
and bh, dl
or ah, bh
test ah, 1
mov esi, dword [ebp - 0xc4]
cmovne esi, ecx
mov dword [ebp - 0x38], esi
jmp 0x417236
mov eax, 0xeb1326bd
mov ecx, 0xa5947189
mov dl, byte [ebp - 0xd]
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x38], eax
jmp 0x417236
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov esi, esp
lea edi, [ebp - 0x30]
mov dword [esi + 0xc], edi
mov dword [esi], edx
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [esi + 0x10], 0
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
mov ecx, 0x8639ca75
mov edx, 0x1b24ef8d
mov esi, dword [ebp - 0x30]
cmp esi, dword [ebp - 0x20]
cmovne ecx, edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0xcc], eax
jmp 0x417236
mov dword [ebp - 0x38], 0xfe24f6bd
jmp 0x417236
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
sub ecx, 0xba832c7d
sub ecx, eax
add ecx, 0xba832c7d
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x38], 0x4bb28f3
jmp 0x417236
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0xfe24f6bd
jmp 0x417236
mov eax, 0x94f45a06
mov ecx, 0x7b4ab6da
cmp dword [ebp - 0x2c], 0
cmovne eax, ecx
mov dword [ebp - 0x38], eax
jmp 0x417236
mov eax, dword [ebp - 0x2c]
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [ebp - 0x38], 0x94f45a06
mov dword [ebp - 0xd0], eax
jmp 0x417236
mov eax, dword [ebp - 0x34]
add esp, 0xe0
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.00409e70
mov dword [ebp - 0x38], 0x5fed979f
jmp 0x417236
mov dword [ebp - 0x38], 0x5bf6be13
jmp 0x416bdb