Function at 0x4150f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x120
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 [0x4fc49c]
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], 0x63dc3227
mov eax, dword [ebp - 0x38]
mov ecx, eax
sub ecx, 0x8bcbc162
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
jg 0x4151ad
jmp 0x415197
mov eax, dword [ebp - 0x3c]
sub eax, 0x87e38745
mov dword [ebp - 0x44], eax
je 0x415820
jmp 0x415581
mov eax, dword [ebp - 0x3c]
sub eax, 0x8f64d8f1
mov dword [ebp - 0x48], eax
jg 0x4151d9
jmp 0x4151c3
mov eax, dword [ebp - 0x3c]
sub eax, 0x8bcbc163
mov dword [ebp - 0x4c], eax
je 0x415a95
jmp 0x415581
mov eax, dword [ebp - 0x3c]
sub eax, 0xa382d08f
mov dword [ebp - 0x50], eax
jg 0x415205
jmp 0x4151ef
mov eax, dword [ebp - 0x3c]
sub eax, 0x8f64d8f2
mov dword [ebp - 0x54], eax
je 0x4155a5
jmp 0x415581
mov eax, dword [ebp - 0x3c]
sub eax, 0xacda38d6
mov dword [ebp - 0x58], eax
jg 0x415231
jmp 0x41521b
mov eax, dword [ebp - 0x3c]
sub eax, 0xa382d090
mov dword [ebp - 0x5c], eax
je 0x415acf
jmp 0x415581
mov eax, dword [ebp - 0x3c]
sub eax, 0xc0ed7ba6
mov dword [ebp - 0x60], eax
jg 0x41525d
jmp 0x415247
mov eax, dword [ebp - 0x3c]
sub eax, 0xacda38d7
mov dword [ebp - 0x64], eax
je 0x415aa3
jmp 0x415581
mov eax, dword [ebp - 0x3c]
sub eax, 0x7cbe475d
mov dword [ebp - 0x68], eax
jg 0x415568
jmp 0x415273
mov eax, dword [ebp - 0x3c]
sub eax, 0x7ae416b7
mov dword [ebp - 0x6c], eax
jg 0x41554f
jmp 0x415289
mov eax, dword [ebp - 0x3c]
sub eax, 0xc257a226
mov dword [ebp - 0x70], eax
jg 0x4152b5
jmp 0x41529f
mov eax, dword [ebp - 0x3c]
sub eax, 0xc0ed7ba7
mov dword [ebp - 0x74], eax
je 0x415a89
jmp 0x415581
mov eax, dword [ebp - 0x3c]
sub eax, 0xc65287a1
mov dword [ebp - 0x78], eax
jg 0x4152e1
jmp 0x4152cb
mov eax, dword [ebp - 0x3c]
sub eax, 0xc257a227
mov dword [ebp - 0x7c], eax
je 0x415ae7
jmp 0x415581
mov eax, dword [ebp - 0x3c]
sub eax, 0xcd89dba6
mov dword [ebp - 0x80], eax
jg 0x415310
jmp 0x4152f7
mov eax, dword [ebp - 0x3c]
sub eax, 0xc65287a2
mov dword [ebp - 0x84], eax
je 0x415735
jmp 0x415581
mov eax, dword [ebp - 0x3c]
sub eax, 0xd110c577
mov dword [ebp - 0x88], eax
jg 0x415342
jmp 0x415329
mov eax, dword [ebp - 0x3c]
sub eax, 0xcd89dba7
mov dword [ebp - 0x8c], eax
je 0x4156c2
jmp 0x415581
mov eax, dword [ebp - 0x3c]
sub eax, 0xeb95f507
mov dword [ebp - 0x90], eax
jg 0x415374
jmp 0x41535b
mov eax, dword [ebp - 0x3c]
sub eax, 0xd110c578
mov dword [ebp - 0x94], eax
je 0x415adb
jmp 0x415581
mov eax, dword [ebp - 0x3c]
sub eax, 0x8563047
mov dword [ebp - 0x98], eax
jg 0x4153a6
jmp 0x41538d
mov eax, dword [ebp - 0x3c]
sub eax, 0xeb95f508
mov dword [ebp - 0x9c], eax
je 0x4157e6
jmp 0x415581
mov eax, dword [ebp - 0x3c]
sub eax, 0x19773342
mov dword [ebp - 0xa0], eax
jg 0x4153d8
jmp 0x4153bf
mov eax, dword [ebp - 0x3c]
sub eax, 0x8563048
mov dword [ebp - 0xa4], eax
je 0x4156ea
jmp 0x415581
mov eax, dword [ebp - 0x3c]
sub eax, 0x1a311fe8
mov dword [ebp - 0xa8], eax
jg 0x41540a
jmp 0x4153f1
mov eax, dword [ebp - 0x3c]
sub eax, 0x19773343
mov dword [ebp - 0xac], eax
je 0x4158c9
jmp 0x415581
mov eax, dword [ebp - 0x3c]
sub eax, 0x26a82f78
mov dword [ebp - 0xb0], eax
jg 0x41543c
jmp 0x415423
mov eax, dword [ebp - 0x3c]
sub eax, 0x1a311fe9
mov dword [ebp - 0xb4], eax
je 0x415790
jmp 0x415581
mov eax, dword [ebp - 0x3c]
sub eax, 0x2acce913
mov dword [ebp - 0xb8], eax
jg 0x41546e
jmp 0x415455
mov eax, dword [ebp - 0x3c]
sub eax, 0x26a82f79
mov dword [ebp - 0xbc], eax
je 0x415833
jmp 0x415581
mov eax, dword [ebp - 0x3c]
sub eax, 0x51a28962
mov dword [ebp - 0xc0], eax
jg 0x4154a0
jmp 0x415487
mov eax, dword [ebp - 0x3c]
sub eax, 0x2acce914
mov dword [ebp - 0xc4], eax
je 0x41594f
jmp 0x415581
mov eax, dword [ebp - 0x3c]
sub eax, 0x612b0bad
mov dword [ebp - 0xc8], eax
jg 0x4154d2
jmp 0x4154b9
mov eax, dword [ebp - 0x3c]
sub eax, 0x51a28963
mov dword [ebp - 0xcc], eax
je 0x4155b1
jmp 0x415581
mov eax, dword [ebp - 0x3c]
sub eax, 0x63dc3226
mov dword [ebp - 0xd0], eax
jg 0x415504
jmp 0x4154eb
mov eax, dword [ebp - 0x3c]
sub eax, 0x612b0bae
mov dword [ebp - 0xd4], eax
je 0x41560c
jmp 0x415581
mov eax, dword [ebp - 0x3c]
sub eax, 0x63dc3227
mov dword [ebp - 0xd8], eax
je 0x415586
jmp 0x41551d
mov eax, dword [ebp - 0x3c]
sub eax, 0x74fbcd8d
mov dword [ebp - 0xdc], eax
je 0x4159a5
jmp 0x415536
mov eax, dword [ebp - 0x3c]
sub eax, 0x7561973d
mov dword [ebp - 0xe0], eax
je 0x4156ce
jmp 0x415581
mov eax, dword [ebp - 0x3c]
sub eax, 0x7ae416b8
mov dword [ebp - 0xe4], eax
je 0x415934
jmp 0x415581
mov eax, dword [ebp - 0x3c]
sub eax, 0x7cbe475e
mov dword [ebp - 0xe8], eax
je 0x4157f2
jmp 0x415581
jmp 0x415b05
mov eax, 0xffffffff
mov ecx, 0x51a28963
mov edx, 0x8f64d8f2
mov esi, dword [ebp - 0x14]
cmp esi, eax
cmove ecx, edx
mov dword [ebp - 0x38], ecx
jmp 0x415b05
mov dword [ebp - 0x38], 0x26a82f79
jmp 0x415b05
mov eax, 0xacda38d7
mov ecx, 0x612b0bae
mov edx, dword [0x4fc544]
mov esi, dword [0x4fc540]
mov edi, edx
add edi, 0xd6cab9b4
sub edi, 1
sub edi, 0xd6cab9b4
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 0x415b05
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.00409b60
mov eax, 0xacda38d7
mov ecx, 0xcd89dba7
mov bl, 1
mov edx, dword [0x4fc544]
mov esi, dword [0x4fc540]
mov edi, edx
add edi, 0x250e286b
sub edi, 1
sub edi, 0x250e286b
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 - 0xec], eax
mov al, dl
xor al, 1
xor bl, 0
mov ah, dh
and ah, 0
and bh, bl
mov byte [ebp - 0xed], al
and al, 0
and dl, bl
or ah, bh
or al, dl
xor ah, al
mov al, byte [ebp - 0xed]
or dh, al
xor dh, 1
or bl, 0
and dh, bl
or ah, dh
test ah, 1
mov esi, dword [ebp - 0xec]
cmovne esi, ecx
mov dword [ebp - 0x38], esi
jmp 0x415b05
mov dword [ebp - 0x38], 0x7561973d
jmp 0x415b05
mov eax, 0x87e38745
mov ecx, 0x8563048
cmp dword [ebp - 0x20], 0
cmovne eax, ecx
mov dword [ebp - 0x38], eax
jmp 0x415b05
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, 0x7cbe475e
mov edx, 0xc65287a2
mov esi, dword [ebp - 0x30]
cmp esi, dword [ebp - 0x20]
cmovne ecx, edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0xf4], eax
jmp 0x415b05
mov eax, 0xa382d090
mov ecx, 0x1a311fe9
mov edx, dword [0x4fc544]
mov esi, dword [0x4fc540]
mov edi, edx
sub edi, 0xf2662d04
sub edi, 1
add edi, 0xf2662d04
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 0x415b05
mov eax, 0xa382d090
mov ecx, 0xeb95f508
mov edx, 0
mov esi, dword [0x4fc544]
mov edi, dword [0x4fc540]
sub edx, 1
mov ebx, esi
add ebx, edx
imul esi, ebx
and esi, 1
cmp esi, 0
sete dl
cmp edi, 0xa
setl dh
mov bl, dl
and bl, dh
xor dl, dh
or bl, dl
test bl, 1
cmovne eax, ecx
mov dword [ebp - 0x38], eax
jmp 0x415b05
mov dword [ebp - 0x38], 0x26a82f79
jmp 0x415b05
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, 0x6e2ad050
sub ecx, eax
add ecx, 0x6e2ad050
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x38], 0x7561973d
jmp 0x415b05
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0x26a82f79
jmp 0x415b05
mov eax, 0xd110c578
mov ecx, 0x19773343
mov dl, 1
mov esi, dword [0x4fc544]
mov edi, dword [0x4fc540]
mov ebx, esi
add ebx, 0xaca5a950
sub ebx, 1
sub ebx, 0xaca5a950
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 - 0xf8], eax
mov al, bl
xor al, 1
xor dl, 0
mov ah, bh
and ah, 0
and dh, dl
mov byte [ebp - 0xf9], al
and al, 0
and bl, dl
or ah, dh
or al, bl
xor ah, al
mov al, byte [ebp - 0xf9]
or bh, al
xor bh, 1
or dl, 0
and bh, dl
or ah, bh
test ah, 1
mov esi, dword [ebp - 0xf8]
cmovne esi, ecx
mov dword [ebp - 0x38], esi
jmp 0x415b05
mov eax, 0xd110c578
mov ecx, 0x7ae416b8
cmp dword [ebp - 0x2c], 0
setne dl
and dl, 1
mov byte [ebp - 0xd], dl
mov esi, dword [0x4fc544]
mov edi, dword [0x4fc540]
mov ebx, esi
add ebx, 0xd6b1b7d3
sub ebx, 1
sub ebx, 0xd6b1b7d3
imul esi, ebx
and esi, 1
cmp esi, 0
sete dl
cmp edi, 0xa
setl dh
mov bl, dl
and bl, dh
xor dl, dh
or bl, dl
test bl, 1
cmovne eax, ecx
mov dword [ebp - 0x38], eax
jmp 0x415b05
mov eax, 0x8bcbc163
mov ecx, 0x2acce914
mov dl, byte [ebp - 0xd]
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x38], eax
jmp 0x415b05
mov eax, 0xc257a227
mov ecx, 0x74fbcd8d
mov edx, 0
mov esi, dword [0x4fc544]
mov edi, dword [0x4fc540]
sub edx, 1
mov ebx, esi
add ebx, edx
imul esi, ebx
and esi, 1
cmp esi, 0
sete dl
cmp edi, 0xa
setl dh
mov bl, dl
and bl, dh
xor dl, dh
or bl, dl
test bl, 1
cmovne eax, ecx
mov dword [ebp - 0x38], eax
jmp 0x415b05
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 ecx, 0xc257a227
mov edx, 0xc0ed7ba7
mov bl, 1
mov esi, 0
mov edi, dword [0x4fc544]
mov dword [ebp - 0x100], eax
mov eax, dword [0x4fc540]
sub esi, 1
mov dword [ebp - 0x104], eax
mov eax, edi
add eax, esi
imul edi, eax
and edi, 1
cmp edi, 0
sete bh
mov eax, dword [ebp - 0x104]
cmp eax, 0xa
setl al
mov ah, bh
xor ah, 1
mov byte [ebp - 0x105], al
xor al, 1
xor bl, 0
mov byte [ebp - 0x106], al
mov al, ah
and al, 0
and bh, bl
mov byte [ebp - 0x107], al
mov al, byte [ebp - 0x106]
and al, 0
mov byte [ebp - 0x108], al
mov al, byte [ebp - 0x105]
and al, bl
mov byte [ebp - 0x109], al
mov al, byte [ebp - 0x107]
or al, bh
mov bh, byte [ebp - 0x108]
mov byte [ebp - 0x10a], al
mov al, byte [ebp - 0x109]
or bh, al
mov al, byte [ebp - 0x10a]
xor al, bh
mov bh, byte [ebp - 0x106]
or ah, bh
xor ah, 1
or bl, 0
and ah, bl
or al, ah
test al, 1
cmovne ecx, edx
mov dword [ebp - 0x38], ecx
jmp 0x415b05
mov dword [ebp - 0x38], 0x8bcbc163
jmp 0x415b05
mov eax, dword [ebp - 0x34]
add esp, 0x120
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.00409b60
mov dword [ebp - 0x38], 0x612b0bae
jmp 0x415b05
mov dword [ebp - 0x38], 0x1a311fe9
jmp 0x415b05
mov dword [ebp - 0x38], 0x19773343
jmp 0x415b05
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], 0x74fbcd8d
mov dword [ebp - 0x110], eax
jmp 0x41517b