Function at 0x41afd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4511ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1184
call fcn.00431870
mov eax, dword [0x46aa78]
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov dword [esp + 0x118c], eax
mov edi, ecx
je 0x41b454
cmp byte [esi], 0
je 0x41b454
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x41b454
cmp byte [ebx], 0
je 0x41b454
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x41b041
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x41b454
push esi
lea ecx, [esp + 0x30]
call fcn.00402620
push 1
push 1
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x11ac], 0
call fcn.004213b0
add esp, 0x10
push eax
lea edx, [esp + 0x14]
push edx
lea ecx, [edi + 0x1c]
mov byte [esp + 0x11a4], 1
call fcn.00419b50
lea ecx, [esp + 0x48]
call fcn.00419910
lea ecx, [esp + 0x2c]
mov dword [esp + 0x119c], 0xffffffff
call fcn.00419910
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jne 0x41b0bf
push esi
push str._s_not_inserted
push 0xa
call fcn.0041d220
add esp, 0xc
jmp 0x41b463
mov edi, dword [ecx + 0x28]
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], edi
call fcn.00402620
push 1
push 0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0x11ac], 2
call fcn.004213b0
add esp, 0x10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x119c], 4
call fcn.00419910
mov eax, dword [esp + 0x7c]
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov ebx, 0x10
mov dword [esp + 0x1c], edx
cmp eax, ebx
mov eax, dword [esp + 0x68]
mov dword [esp + 0x20], edx
jae 0x41b129
lea eax, [esp + 0x68]
push 0x11000
push eax
push edi
call fcn.004181e0
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [esp + 0x10], esi
je 0x41b173
cmp dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x68]
jae 0x41b150
lea eax, [esp + 0x68]
push 8
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
call fcn.004185d0
add esp, 0x10
test eax, eax
je 0x41b173
push esi
call fcn.00417e50
mov edx, dword [edi + 4]
jmp 0x41b40c
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x41b2fd
xor eax, eax
mov byte [esp + 0x80], 0
mov ecx, 0x40
lea edi, [esp + 0x81]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
stosb byte es:[edi], al
lea eax, [esp + 0x84]
push ebx
push eax
call fcn.00430cf0
add esp, 0xc
lea ecx, [esp + 0x80]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov al, byte [esp + 0x80]
test al, al
je 0x41b204
lea edx, [esp + 0x80]
push edx
call fcn.00420d10
add esp, 4
test al, al
jne 0x41b204
test esi, esi
je 0x41b1e9
push esi
call fcn.00417e50
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x84]
push eax
push str.Path_s__WinErr_d
push 3
jmp 0x41b414
push 0
push 0x20
push 2
push 0
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41b245
test esi, esi
je 0x41b22e
push esi
call fcn.00417e50
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
push str.File_s__WinErr_d
push 3
jmp 0x41b414
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x41b2f6
mov byte [esp + 0x188], 0
xor eax, eax
mov ecx, 0x3ff
lea edi, [esp + 0x189]
rep stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
push 0
push esi
stosb byte es:[edi], al
call fcn.00418460
push 0x1000
lea edx, [esp + 0x198]
push edx
push esi
call fcn.00417f90
mov esi, eax
add esp, 0x18
test esi, esi
je 0x41b2f2
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x2c]
push eax
push esi
lea ecx, [esp + 0x194]
push ecx
push ebx
call edi
test eax, eax
je 0x41b353
cmp dword [esp + 0x28], esi
jne 0x41b353
mov edx, dword [esp + 0x10]
push edx
call fcn.004181b0
mov ecx, dword [esp + 0x20]
add esp, 4
cmp eax, ecx
jge 0x41b2f2
mov ecx, dword [esp + 0x10]
push 0x1000
lea eax, [esp + 0x18c]
push eax
push ecx
call fcn.00417f90
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41b298
mov esi, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x41b431
mov ebx, dword [esp + 0x1c]
inc ebx
test bl, 3
je 0x41b318
inc ebx
test bl, 3
jne 0x41b312
test byte [0x46bb38], 1
jne 0x41b37e
or dword [0x46bb38], 1
xor edi, edi
push 0x452190
mov dword [0x46bb2c], edi
mov dword [0x46bb30], edi
mov dword [0x46bb34], edi
call fcn.0043198d
add esp, 4
mov byte [esp + 0x119c], 4
jmp 0x41b380
mov edx, dword [esp + 0x10]
push edx
call fcn.00417e50
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 0x10]
push eax
push str.File_s__WinErr:__d
push 5
jmp 0x41b414
xor edi, edi
mov edx, dword [0x46bb2c]
cmp edx, edi
mov ecx, dword [0x46bb30]
jne 0x41b394
xor eax, eax
jmp 0x41b398
mov eax, ecx
sub eax, edx
cmp eax, ebx
jae 0x41b3b4
push edi
push ebx
mov ecx, 0x46bb28
call fcn.00408f40
mov ecx, dword [0x46bb30]
mov edx, dword [0x46bb2c]
cmp edx, edi
mov byte [esp + 0xf], 0
jne 0x41b3c1
xor eax, eax
jmp 0x41b3c5
sub ecx, edx
mov eax, ecx
lea ecx, [esp + 0xf]
push ecx
push eax
mov ecx, 0x46bb28
call fcn.00409900
cmp dword [esp + 0x1c], edi
jle 0x41b427
push edi
push edi
push esi
call fcn.00418460
mov edx, dword [esp + 0x28]
mov eax, dword [0x46bb2c]
push edx
push eax
push esi
call fcn.00417f90
mov ecx, dword [esp + 0x34]
add esp, 0x18
cmp eax, ecx
je 0x41b427
push esi
call fcn.00417e50
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 4]
push edx
push str.ziperr_d
push 0xe
call fcn.0041d220
add esp, 0x10
lea ecx, [esp + 0x64]
call fcn.00419910
jmp 0x41b463
mov eax, dword [0x46bb2c]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
test esi, esi
je 0x41b43e
push esi
call fcn.00417e50
add esp, 4
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x64]
mov dword [edx], eax
call fcn.00419910
mov al, 1
jmp 0x41b465
push 0x45675a
push 0xa
call fcn.0041d220
add esp, 8
xor al, al
mov ecx, dword [esp + 0x1194]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x118c]
call fcn.00430cd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14