Function at 0x490b20
Capabilities:
Delete file
Get common file path
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x564245
mov eax, dword fs:[0]
push eax
sub esp, 0x4e4
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x4e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x651788]
xor eax, esp
push eax
lea eax, [esp + 0x4f8]
mov dword fs:[0], eax
mov edx, dword [esp + 0x50c]
mov edi, dword [esp + 0x508]
mov eax, edx
mov esi, ecx
lea ebp, [eax + 2]
xor ebx, ebx
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x490b72
sub eax, ebp
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00402120
mov ecx, esi
call fcn.00490970
cmp dword [esi + 0x1c], ebx
jne 0x490c3c
push 5
mov esi, 7
push 0x582734
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.00402120
push 0xc
push str.DownloadFlag
lea ecx, [esp + 0x60]
mov dword [esp + 0x508], ebx
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
call fcn.00402120
mov eax, dword [edi]
mov eax, dword [eax + 8]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x5c]
push edx
mov ecx, edi
mov byte [esp + 0x508], 1
call eax
mov edi, 8
cmp dword [esp + 0x70], edi
jb 0x490c13
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00492573
add esp, 4
cmp dword [esp + 0x30], edi
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
jb 0x49110e
mov edx, dword [esp + 0x1c]
push edx
call fcn.00492573
add esp, 4
jmp 0x49110e
lea ecx, [esp + 0x50]
call fcn.00401b00
push 0x206
lea eax, [esp + 0xea]
push ebx
push eax
mov dword [esp + 0x50c], 2
mov word [esp + 0xf0], bx
call fcn.004afb50
push 0x206
lea ecx, [esp + 0x2fe]
push ebx
push ecx
mov word [esp + 0x304], bx
call fcn.004afb50
add esp, 0x18
lea edx, [esp + 0xe4]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x490d28
push 0x582734
lea ecx, [esp + 0x38]
call fcn.00401d20
push str.DownloadFlag
lea ecx, [esp + 0x1c]
mov byte [esp + 0x504], 3
call fcn.00401d20
mov eax, dword [edi]
mov eax, dword [eax + 8]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
mov byte [esp + 0x508], 4
call eax
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x490cfb
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00492573
add esp, 4
cmp dword [esp + 0x4c], esi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
jb 0x4910fa
mov edx, dword [esp + 0x38]
push edx
call fcn.00492573
add esp, 4
jmp 0x4910fa
lea eax, [esi + 0x20]
push eax
lea ecx, [esp + 0x94]
push ecx
call fcn.00471d30
add esp, 8
mov eax, dword [esp + 0x94]
mov ebp, 8
cmp dword [esp + 0xa8], ebp
mov byte [esp + 0x500], 5
jae 0x490d60
lea eax, [esp + 0x94]
lea edx, [esp + 0x2ec]
push edx
push eax
call fcn.0046f570
add esp, 8
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x38]
call fcn.00401d20
cmp dword [esp + 0xa8], ebp
mov eax, dword [esp + 0x94]
mov byte [esp + 0x500], 6
jae 0x490da1
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401d20
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x58]
mov byte [esp + 0x508], 7
call fcn.00401ba0
cmp dword [esp + 0x30], 8
movzx ebp, al
jb 0x490ddd
mov eax, dword [esp + 0x1c]
push eax
call fcn.00492573
add esp, 4
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
mov byte [esp + 0x500], 5
jb 0x490e0a
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00492573
add esp, 4
cmp ebp, ebx
lea ecx, [esp + 0x34]
jne 0x490eb3
push 0x582734
call fcn.00401d20
push str.DownloadFlag
lea ecx, [esp + 0x1c]
mov byte [esp + 0x504], 8
call fcn.00401d20
mov edx, dword [edi]
mov edx, dword [edx + 8]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
mov byte [esp + 0x508], 9
call edx
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x490e69
mov eax, dword [esp + 0x1c]
push eax
call fcn.00492573
add esp, 4
cmp dword [esp + 0x4c], esi
mov edi, 7
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
jb 0x490e8e
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00492573
add esp, 4
cmp dword [esp + 0xa8], esi
jb 0x490ea7
mov edx, dword [esp + 0x94]
push edx
call fcn.00492573
add esp, 4
mov dword [esp + 0xa8], edi
jmp 0x4910eb
push 0x5826c4
call fcn.00401d20
push str.DownloadFlag
lea ecx, [esp + 0x78]
mov byte [esp + 0x504], 0xa
call fcn.00401d20
mov eax, dword [edi]
mov eax, dword [eax + 8]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x78]
push edx
mov ecx, edi
mov byte [esp + 0x508], 0xb
call eax
mov edi, 8
cmp dword [esp + 0x8c], edi
jb 0x490f09
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00492573
add esp, 4
cmp dword [esp + 0x4c], edi
mov ebp, 7
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
mov byte [esp + 0x500], 5
jb 0x490f3c
mov edx, dword [esp + 0x38]
push edx
call fcn.00492573
add esp, 4
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0xb0]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
call fcn.00401d20
lea eax, [esp + 0x2ec]
mov byte [esp + 0x500], 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x490f70
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2f0]
push ecx
lea ecx, [esp + 0xb4]
call fcn.00403e10
mov ecx, esi
call fcn.004908b0
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0xcc]
push eax
call fcn.00471a50
add esp, 8
mov ecx, dword [esp + 0xcc]
mov ebp, 0x10
cmp dword [esp + 0xe0], ebp
mov byte [esp + 0x500], 0xd
jae 0x490fd7
lea ecx, [esp + 0xcc]
cmp dword [esi + 0x54], edi
jb 0x490fe1
mov eax, dword [esi + 0x40]
jmp 0x490fe4
lea eax, [esi + 0x40]
push ebx
push ecx
push eax
call fcn.004836d0
mov eax, dword [esp + 0xbc]
add esp, 0xc
cmp dword [esp + 0xc4], edi
jae 0x491006
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x17]
call fcn.0048fc70
cmp dword [esi + 0x8c], edi
mov byte [esp + 0x500], 0xe
jb 0x49102b
mov ecx, dword [esi + 0x78]
jmp 0x49102e
lea ecx, [esi + 0x78]
cmp dword [esi + 0x70], edi
jb 0x491038
mov eax, dword [esi + 0x5c]
jmp 0x49103b
lea eax, [esi + 0x5c]
cmp dword [esi + 0x54], edi
jb 0x491045
mov esi, dword [esi + 0x40]
jmp 0x491048
add esi, 0x40
push ecx
push eax
push esi
lea ecx, [esp + 0x23]
call fcn.0048fc80
lea ecx, [esp + 0x17]
mov byte [esp + 0x500], 0xd
call fcn.0051fcc0
cmp dword [esp + 0xe0], ebp
jb 0x49107e
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.00492573
add esp, 4
cmp dword [esp + 0xc4], edi
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
jb 0x4910b0
mov edx, dword [esp + 0xb0]
push edx
call fcn.00492573
add esp, 4
cmp dword [esp + 0xa8], edi
mov esi, 7
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebx
mov word [esp + 0xb0], bx
jb 0x4910e4
mov eax, dword [esp + 0x94]
push eax
call fcn.00492573
add esp, 4
mov dword [esp + 0xa8], esi
mov word [esp + 0x94], bx
mov dword [esp + 0xa4], ebx
lea ecx, [esp + 0x50]
mov dword [esp + 0x500], 0xffffffff
call fcn.00401b90
mov ecx, dword [esp + 0x4f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4e0]
xor ecx, esp
call fcn.004aeca3
add esp, 0x4f0
ret 8