Function at 0x414b39
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6bc
mov eax, dword [0x43e030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - reloc.urlmon.dll_ObtainUserAgentString], eax
mov eax, dword [eax]
mov dword [ebp - 0x664], ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x66c], ecx
cmp eax, ebx
jne 0x414b77
push 6
pop eax
jmp 0x414ed4
mov dword [ebp - 0x670], eax
mov dword [ebp - 0x678], 0x414a2b
mov dword [ebp - 0x674], 0x4149ea
mov dword [ebp - 0x644], 0x412298
mov dword [ebp - 0x640], 0x412293
mov dword [ebp - 0x650], 0x412298
mov dword [ebp - 0x64c], 0x412293
call fcn.004122c5
lea eax, [ebp - 0x6b8]
call fcn.00412b2e
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x6b8]
push eax
lea ecx, [ebp - 0x678]
call fcn.0041432e
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x414c03
mov esi, dword [ebp - 0x640]
lea eax, [ebp - 0x6b8]
call fcn.00412b54
mov dword [ebp - 0x62c], edi
cmp edi, ebx
je 0x414c14
mov eax, edi
jmp 0x414ed4
or dword [ebp - 0x660], 0xffffffff
mov dword [ebp - 0x634], ebx
mov dword [ebp - 0x658], ebx
mov dword [ebp - 0x630], ebx
cmp dword [ebp - 0x6a0], ebx
jbe 0x414eb4
mov dword [ebp - 0x638], ebx
mov eax, dword [ebp - 0x69c]
mov ecx, dword [ebp - 0x638]
lea esi, [ecx + eax]
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x660]
push eax
push dword [ebp - 0x630]
lea eax, [ebp - 0x678]
push eax
lea eax, [ebp - 0x6b8]
mov dword [ebp - 0x668], esi
call fcn.00412956
add esp, 0x24
mov dword [ebp - 0x62c], eax
cmp eax, ebx
jne 0x414eb4
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp - 0x416]
push ebx
push eax
call fcn.00421bc0
mov eax, dword [esi + 0x14]
add esp, 0xc
cmp eax, ebx
je 0x414ce3
lea ecx, [ebp - 0x418]
push ecx
push eax
call fcn.00414f9d
jmp 0x414ce5
xor eax, eax
cmp eax, ebx
je 0x414e87
cmp word [ebp - reloc.ADVAPI32.dll_RegCloseKey], bx
je 0x414d19
xor ecx, ecx
lea eax, [ebp - 0x418]
push 0x2f
pop edx
cmp dx, word [eax]
jne 0x414d0c
push 0x5c
pop edx
mov word [eax], dx
inc ecx
lea eax, [ebp + ecx*2 - 0x418]
cmp word [eax], bx
jne 0x414cfe
xor eax, eax
push edi
mov word [ebp - reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.00421bc0
mov eax, dword [ebp - 0x664]
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x414d44
mov eax, dword [eax + 4]
jmp 0x414d47
add eax, 4
lea ecx, [ebp - 0x418]
push ecx
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [ebp - 0x66c]
cmp ecx, ebx
je 0x414d71
lea eax, [ebp - 0x210]
call fcn.00405e78
cmp byte [esi + 0x1a], bl
je 0x414d8d
mov ecx, dword [ebp - reloc.urlmon.dll_ObtainUserAgentString]
lea eax, [ebp - 0x210]
push eax
call fcn.00414ee5
jmp 0x414e66
xor eax, eax
push 0x208
mov word [ebp - reloc.ADVAPI32.dll_RegCloseKey], ax
lea eax, [ebp - 0x626]
push ebx
push eax
call fcn.00421bc0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x435dc0
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.0041fb89
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, dword [ebp - reloc.urlmon.dll_ObtainUserAgentString]
lea eax, [ebp - 0x628]
push eax
call fcn.00414ee5
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x414e93
mov ecx, dword [ebp - 0x634]
mov edi, dword [ebp - 0x648]
push ebx
lea eax, [ebp - 0x65c]
push eax
mov eax, dword [ebp - 0x654]
push edi
add eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414ea1
cmp dword [ebp - 0x65c], edi
jne 0x414ea1
mov eax, dword [ebp - 0x668]
cmp byte [eax + 0x1c], bl
je 0x414e5b
push eax
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x414ea1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x414e93
inc dword [ebp - 0x630]
mov eax, dword [ebp - 0x630]
add dword [ebp - 0x638], 0x20
cmp eax, dword [ebp - 0x6a0]
jb 0x414c3f
jmp 0x414eb4
mov dword [ebp - 0x62c], 1
jmp 0x414eb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x62c], eax
jmp 0x414eb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebp - 0x62c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x634]
mov esi, dword [ebp - 0x640]
call esi
pop ecx
lea eax, [ebp - 0x6b8]
call fcn.00412b54
mov eax, dword [ebp - 0x62c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f23c
leave
ret 8