Function at 0x1001cf30
Capabilities:
Check http status code
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100749b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x914
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.1001ee30
cmp eax, 3
jl 0x1001cf6f
mov eax, dword [ebp + 8]
push eax
push str.CNadUtil::DownloadURL__s_
call fcn.10003d40
add esp, 8
mov ecx, dword [ebp + 0xc]
xor edi, edi
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x18], 0
call fcn.1005bbb3
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], edi
cmp eax, edi
je 0x1001cf98
push str..tmp
lea ecx, [ebp - 0x14]
call fcn.1005bf21
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x1001d37d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call ebx
test eax, eax
je 0x1001d37d
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x1c], edi
call fcn.1005e348
push edi
push edi
push edi
push edi
push 1
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.10065a01
mov esi, dword [ebp + 0x14]
mov byte [ebp - 4], 3
cmp esi, edi
je 0x1001cfe7
lea ecx, [ebp - 0x34]
call fcn.10025960
mov dword [esi], eax
lea ecx, [ebp - 0x34]
call fcn.10025960
mov edx, dword [ebp + 0x10]
push edx
push eax
call fcn.100230d0
add esp, 8
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], eax
push edi
push 0x1388
push 2
call fcn.10025970
push edi
push 0x1388
push 6
lea ecx, [ebp - 0x34]
call fcn.10025970
mov ecx, 0x1b
mov esi, str.Accept:___r_nAccept_Encoding:_gzip__deflate_r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.1_
lea edi, [ebp - 0x120]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x13
mov esi, str.Accept:___r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.1_
lea edi, [ebp - 0xb4]
rep movsd dword es:[edi], dword [esi]
call fcn.10022de0
cmp eax, 7
jl 0x1001d08f
xor edi, edi
lea eax, [ebp - 0x40]
push edi
push 4
push eax
push 0x41
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x40], 1
call fcn.10065dd7
lea ecx, [ebp - 0x120]
push ecx
call ebx
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x120]
push eax
push edx
push reloc.OLEAUT32.dll_SysReAllocString
push 1
push ebx
lea ecx, [ebp - 0x34]
call fcn.10065c22
mov esi, eax
jmp 0x1001d0b7
lea eax, [ebp - 0xb4]
push eax
call ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0xb4]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
push 1
push ebx
lea ecx, [ebp - 0x34]
call fcn.10065c22
mov esi, eax
xor edi, edi
mov edx, dword [ebp - 0x1c]
push edx
call fcn.100231b0
add esp, 4
lea eax, [ebp + 0x10]
mov ecx, esi
mov dword [ebp - 0x1c], edi
push eax
mov dword [ebp + 0x10], edi
call fcn.100676ca
cmp eax, edi
je 0x1001d324
mov eax, dword [ebp + 0x10]
cmp eax, 0xc8
jb 0x1001d324
cmp eax, 0x12b
ja 0x1001d324
lea ecx, [ebp - 0x20]
push edi
push ecx
push 5
mov ecx, esi
mov dword [ebp - 0x20], edi
call fcn.1006767c
cmp eax, edi
jne 0x1001d10d
mov dword [ebp - 0x20], edi
lea ecx, [ebp - 0x50]
call fcn.1005ce84
push edi
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.1000e700
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.10002f50
lea edx, [ebp + 0x10]
push eax
push edx
call fcn.1001bfd0
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.10002f50
push eax
call fcn.1001c1a0
add esp, 4
lea ecx, [ebp + 0x10]
test al, al
sete bl
mov byte [ebp - 4], 5
call fcn.1005bb45
test bl, bl
je 0x1001d17a
push 0
lea ecx, [ebp - 0x14]
call fcn.10002f50
push eax
call fcn.1001bf50
add esp, 8
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x14]
push eax
push 0x9001
call fcn.10002f50
push eax
lea ecx, [ebp - 0x50]
call fcn.1005d036
test eax, eax
jne 0x1001d1de
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x4c]
test esi, esi
je 0x1001d1ac
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x34]
call fcn.10065aa6
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1001d1c1
mov dword [eax], 0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.1000e7a0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.1005cf79
jmp 0x1001d365
xor ebx, ebx
mov edx, dword [esi]
lea eax, [ebp - 0x920]
push 0x800
push eax
mov ecx, esi
call dword [edx + 0x34]
mov edi, eax
test edi, edi
jle 0x1001d20d
lea ecx, [ebp - 0x920]
push edi
push ecx
lea ecx, [ebp - 0x50]
call fcn.1005d18d
add ebx, edi
jmp 0x1001d1e0
lea ecx, [ebp - 0x50]
call fcn.1005d251
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x4c]
test esi, esi
je 0x1001d229
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x34]
call fcn.10065aa6
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1001d23e
mov dword [eax], 0
xor al, al
test al, al
jne 0x1001d255
mov eax, dword [ebp - 0x20]
test eax, eax
jbe 0x1001d24f
cmp ebx, eax
jl 0x1001d255
mov byte [ebp - 0x18], 1
jmp 0x1001d264
lea ecx, [ebp - 0x14]
call fcn.10002f50
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.1000e7a0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.1005cf79
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.100659bc
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.1001cf20
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1001d2a7
mov dword [eax], 0
mov al, byte [ebp - 0x18]
test al, al
je 0x1001d2d3
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1001d2d3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
lea ecx, [ebp - 0x14]
call fcn.10002f50
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x1001d2d3
mov byte [ebp - 0x18], al
call fcn.1001ee30
cmp eax, 3
jl 0x1001d301
push esi
call fcn.1001eac0
mov ecx, dword [ebp + 8]
add esp, 4
push eax
mov eax, dword [ebp - 0x18]
and eax, 0xff
push eax
push ecx
push str.CNadUtil::DownloadURL__s____return__d___d_bytes_
call fcn.10003d40
add esp, 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.1005bb45
mov al, byte [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x4c]
cmp esi, edi
je 0x1001d338
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x34]
call fcn.10065aa6
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x1001d349
mov dword [eax], edi
call fcn.1001ee30
cmp eax, 1
jl 0x1001d365
mov ecx, dword [ebp + 0x10]
push ebx
push ecx
push str.CKeymanDlg::DownloadURL_____FALSE_Status:__d___s_
call fcn.10003d40
add esp, 0xc
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.100659bc
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.1001cf20
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.1005bb45
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret