Function at 0x40a08a
Capabilities:
Delete file

Disassembly:
mov eax, 0x41a5e9
call fcn.00410e40
sub esp, 0x230
mov eax, dword [0x4240b8]
push ebx
push esi
mov dword [ebp - 0x10], eax
call fcn.00409e9b
lea eax, [ebp - 0x22c]
push eax
call fcn.00406737
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [0x424c6c]
lea eax, [ebp - 0x22c]
push 0x4256d8
call fcn.004067d7
test eax, eax
jne 0x40a0dc
or ebx, 0xffffffff
jmp 0x40a426
push edi
push str.GetOemInfo_connect_succeed._n
call fcn.00409a2f
mov eax, dword [ebp + 8]
add eax, 4
push eax
call fcn.0040f1eb
pop ecx
pop ecx
mov esi, eax
mov eax, dword [0x424e6c]
mov edi, 0x424e6c
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x230], eax
push esi
mov byte [ebp - 4], 1
push dword [0x424e3c]
lea eax, [ebp - 0x230]
push eax
call fcn.004023bd
add esp, 0xc
push dword [ebp - 0x230]
lea eax, [ebp - 0x22c]
push 0x41e090
call fcn.00406825
test eax, eax
jne 0x40a14b
push 0xfffffffffffffffe
pop ebx
jmp 0x40a417
push str.GetOemInfo_OpenRequest_succeed._n
call fcn.00409a2f
lea eax, [ebp - 0x21c]
mov dword [esp], 0x41cd34
push eax
call fcn.0040ae7b
push ebx
push ebx
push ebx
push ebx
lea esi, [ebp - 0x22c]
mov byte [ebp - 4], 2
call fcn.0040687b
test eax, eax
jne 0x40a187
push 0xfffffffffffffffd
pop ebx
jmp 0x40a409
push str.GetOemInfo_SendRequest_succeed._n
call fcn.00409a2f
pop ecx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.004069b6
test eax, eax
jne 0x40a1ad
push 0xfffffffffffffffc
jmp 0x40a181
cmp dword [ebp - 0x224], ebx
je 0x40a1c7
push dword [ebp - 0x224]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x224], ebx
cmp dword [ebp - 0x228], ebx
je 0x40a1e1
push dword [ebp - 0x228]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x228], ebx
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 6
jge 0x40a1f8
push ebx
call fcn.0040a44b
jmp 0x40a409
mov eax, dword [0x424e6c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 3
mov eax, dword [0x424e6c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 4
mov eax, dword [0x424e6c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 5
push dword [ebp - 0x21c]
lea eax, [ebp + 8]
call fcn.004052c7
mov edi, dword [ebp + 8]
push edi
push str.GetOemInfo_Read__s_n
call fcn.00409a2f
pop ecx
pop ecx
push ebx
push ebx
push edi
lea ecx, [ebp - 0x22c]
call fcn.00406a8e
mov esi, eax
push esi
push str.GetOemInfo_URL_size__d_n
call fcn.00409a2f
cmp esi, ebx
pop ecx
pop ecx
jg 0x40a281
or ebx, 0xffffffff
jmp 0x40a3e5
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00406c4f
push dword [ebp - 0x23c]
lea eax, [ebp - 0x22c]
push dword [ebp - 0x234]
call fcn.004067d7
test eax, eax
je 0x40a279
push dword [ebp - 0x238]
lea eax, [ebp - 0x22c]
push 0x41e090
call fcn.00406825
test eax, eax
jne 0x40a2dc
push 0xfffffffffffffffe
pop ebx
jmp 0x40a3e5
push str.GetOemInfo_OpenRequest_succeed._n
call fcn.00409a2f
pop ecx
push ebx
push ebx
push ebx
push ebx
lea esi, [ebp - 0x22c]
call fcn.0040687b
test eax, eax
jne 0x40a2fe
push 0xfffffffffffffffd
jmp 0x40a2d6
push str.GetOemInfo_SendRequest_succeed._n
call fcn.00409a2f
pop ecx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.004069b6
test eax, eax
jne 0x40a324
push 0xfffffffffffffffc
jmp 0x40a2d6
cmp dword [ebp - 0x224], ebx
je 0x40a33e
push dword [ebp - 0x224]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x224], ebx
cmp dword [ebp - 0x228], ebx
je 0x40a358
push dword [ebp - 0x228]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x228], ebx
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0040f24f
pop ecx
pop ecx
inc eax
inc eax
push str.oem.xml
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push 0x420040
push eax
call fcn.0040f92b
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
jne 0x40a3a9
push 0xfffffffffffffffb
jmp 0x40a2d6
push ebx
push ebx
push esi
call fcn.0040fe09
mov eax, dword [ebp - 0x21c]
push esi
push dword [eax - 0xc]
push 1
push eax
call fcn.0040ff59
push esi
call fcn.0040f9e8
add esp, 0x20
lea eax, [ebp - 0x218]
push eax
call fcn.0040a44b
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
call fcn.0040252d
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
call fcn.0040252d
lea eax, [edi - 0x10]
call fcn.0040252d
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.0040252d
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
call fcn.0040252d
pop edi
lea esi, [ebp - 0x22c]
call fcn.004067a7
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, ebx
pop ebx
call fcn.00410647
leave
ret 4