Function at 0x4162f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x344
mov eax, dword [0x470be4]
xor eax, esp
mov dword [esp + 0x340], eax
mov eax, dword [esp + 0x348]
test eax, eax
push esi
mov esi, dword [esp + 0x354]
jne 0x416321
mov eax, 0x10000
jmp 0x4165d0
cmp dword [eax], 1
je 0x416330
mov eax, 0x80000
jmp 0x4165d0
push ebx
push ebp
push edi
mov edi, dword [eax + 4]
or ebx, 0xffffffff
cmp dword [edi + 4], ebx
je 0x416349
mov eax, dword [edi]
push eax
call fcn.00413d60
add esp, 4
mov eax, dword [edi]
mov ebp, dword [esp + 0x35c]
mov dword [edi + 4], ebx
cmp ebp, dword [eax + 4]
jl 0x416364
mov eax, 0x10000
jmp 0x4165cd
cmp ebp, dword [eax + 0x10]
jge 0x416372
push eax
call fcn.00413ab0
add esp, 4
mov ecx, dword [edi]
cmp dword [ecx + 0x10], ebp
jge 0x416392
lea esp, [esp]
mov edx, dword [edi]
push edx
call fcn.00413b00
mov eax, dword [edi]
add esp, 4
cmp dword [eax + 0x10], ebp
jl 0x416380
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov ecx, edi
call fcn.00413ee0
test byte [esp + 0x124], 0x10
mov al, byte [esi]
je 0x4163e6
cmp al, 0x2f
je 0x4163bd
cmp al, 0x5c
je 0x4163bd
test al, al
je 0x4163cf
cmp byte [esi + 1], 0x3a
jne 0x4163cf
push esi
push 0
call fcn.00414420
add esp, 8
xor eax, eax
jmp 0x4165cd
push esi
add edi, 0x140
push edi
call fcn.00414420
add esp, 8
xor eax, eax
jmp 0x4165cd
test al, al
mov ebp, esi
mov ecx, esi
je 0x416405
mov edi, edi
cmp al, 0x2f
je 0x4163f8
cmp al, 0x5c
jne 0x4163fb
lea ebp, [ecx + 1]
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x4163f0
lea edx, [esp + 0x148]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x416410
cmp ebp, esi
jne 0x41648e
mov byte [esp + 0x148], cl
push ebp
lea eax, [esp + 0x14c]
push eax
lea esi, [edi + 0x140]
push esi
lea ecx, [esp + 0x258]
push str._s_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x15c]
push edx
push esi
call fcn.00414420
add esp, 0x1c
mov eax, dword [esp + 0x124]
push 0
push eax
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, ebx
jne 0x4164f2
mov eax, 0x200
jmp 0x4165cd
mov edx, ebp
sub edx, esi
mov byte [esp + edx + 0x148], 0
mov al, byte [esp + 0x148]
cmp al, 0x2f
je 0x4164bf
cmp al, 0x5c
je 0x4164bf
test al, al
je 0x416427
cmp byte [esp + 0x149], 0x3a
jne 0x416427
push ebp
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x254]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x158]
push edx
push 0
call fcn.00414420
add esp, 0x18
jmp 0x41645b
mov edx, dword [edi + 0x138]
mov eax, dword [edi]
push edx
push eax
call fcn.00415ce0
add esp, 8
cmp dword [edi + 0x13c], 0
jne 0x416520
push 0x4000
call fcn.0041c482
add esp, 4
mov dword [edi + 0x13c], eax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x14], 0
mov edi, edi
mov edx, dword [edi + 0x13c]
mov eax, dword [edi]
lea ecx, [esp + 0x13]
push ecx
push 0x4000
push edx
push eax
call fcn.00415e70
mov esi, eax
add esp, 0x10
cmp esi, 0xffffff96
je 0x416584
test esi, esi
jl 0x41657a
jle 0x41656f
mov edx, dword [edi + 0x13c]
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
push edx
push ebp
call ebx
test eax, eax
je 0x41658e
cmp byte [esp + 0x13], 0
jne 0x416598
test esi, esi
jne 0x416530
mov dword [esp + 0x14], 0x5000000
jmp 0x4165b7
mov dword [esp + 0x14], 0x1000
jmp 0x4165b7
mov dword [esp + 0x14], 0x400
jmp 0x4165b7
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x12c]
push ecx
lea edx, [esp + 0x138]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
push eax
call fcn.00413d60
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x344]
pop esi
xor ecx, esp
mov dword [0x472ac4], eax
call fcn.00438282
add esp, 0x344
ret