Function at 0x48ae50
Capabilities:
Check http status code
Copy file
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x695622
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc80
mov eax, dword [0x6ce36c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
mov dword [ebp - 0xc80], ecx
mov eax, dword [ebp - 0xc80]
add eax, 0x208
push eax
lea ecx, [ebp - 0x430]
call fcn.0049ca60
mov dword [ebp - 4], 0
push 0x69e284
lea ecx, [ebp - 0x430]
call fcn.0049cb70
mov ecx, dword [ebp - 0xc80]
add ecx, 1
push ecx
lea ecx, [ebp - 0x430]
call fcn.0049cb70
push str._tmp
lea ecx, [ebp - 0x430]
call fcn.0049cb70
lea ecx, [ebp - 0x4ec]
call fcn.0049ca30
mov byte [ebp - 4], 1
push 0x69ea0c
push 0x6f23ec
call fcn.004bbe50
add esp, 8
movzx edx, al
test edx, edx
je 0x48af0c
push 0x69ea0c
lea ecx, [ebp - 0x4ec]
call fcn.0049cb30
jmp 0x48af55
push 0x69d8f9
push 0x6f23ec
call fcn.004bbef0
add esp, 8
movzx eax, al
test eax, eax
je 0x48af55
push 0x6f23ec
lea ecx, [ebp - 0x4ec]
call fcn.0049cb10
push 0x69e698
lea ecx, [ebp - 0x4ec]
call fcn.0049cb70
push 0x6f23c0
lea ecx, [ebp - 0x4ec]
call fcn.0049cb50
mov ecx, dword [str.Accept:___r_n_r_n]
mov dword [ebp - 0x520], ecx
mov edx, dword [0x69ea00]
mov dword [ebp - 0x51c], edx
mov eax, dword [0x69ea04]
mov dword [ebp - 0x518], eax
mov ecx, dword [0x69ea08]
mov dword [ebp - 0x514], ecx
push 0
push 0
push 0x80
push 2
push 0
push 0x40000000
lea ecx, [ebp - 0x430]
call fcn.0049cd70
push eax
mov ecx, dword [ebp - 0xc80]
add ecx, 0x238
call fcn.0048bb70
mov edx, dword [ebp - 0xc80]
mov dword [edx + 0x23c], eax
mov eax, dword [ebp - 0xc80]
cmp dword [eax + 0x23c], 0
jge 0x48b047
mov ecx, dword [ebp - 0xc80]
mov dword [ecx + 0x184], 0xffffffff
push 0x69e9c4
mov ecx, dword [ebp - 0xc80]
add ecx, 0x45c
call fcn.0049cb30
lea ecx, [ebp - 0x430]
call fcn.0049cd70
push eax
mov ecx, dword [ebp - 0xc80]
add ecx, 0x478
call fcn.0049cb30
mov dword [ebp - 0xc30], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ec]
call fcn.0049caf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.0049caf0
mov eax, dword [ebp - 0xc30]
jmp 0x48bb54
mov dword [ebp - 0x4d0], 0
push 0x69d8f9
lea edx, [ebp - 0x4ec]
push edx
call fcn.004bbef0
add esp, 8
movzx eax, al
test eax, eax
je 0x48b076
mov dword [ebp - 0x4d0], 3
push 0x69ea0c
lea ecx, [ebp - 0x4ec]
push ecx
call fcn.004bbe50
add esp, 8
movzx edx, al
test edx, edx
je 0x48b0ab
mov dword [ebp - 0x4d0], 1
push 0x69d8f9
lea ecx, [ebp - 0x4ec]
call fcn.0049cb30
push 0x69d8f9
lea eax, [ebp - 0x4ec]
push eax
call fcn.004bbe50
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x48b0d2
mov dword [ebp - 0xc84], 0
jmp 0x48b0e3
lea ecx, [ebp - 0x4ec]
call fcn.0049cd70
mov dword [ebp - 0xc84], eax
push 0
push 0
mov edx, dword [ebp - 0xc84]
push edx
mov eax, dword [ebp - 0x4d0]
push eax
push str.WOLF_RPG_EDITOR
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [ebp - 0xc80]
mov dword [ecx + 0x230], eax
mov edx, dword [ebp - 0xc80]
cmp dword [edx + 0x230], 0
jne 0x48b1ef
mov eax, dword [ebp - 0xc80]
add eax, 1
push eax
push 0x69e988
lea ecx, [ebp - 0x62c]
push ecx
call fcn.004cb929
add esp, 0xc
mov ecx, dword [ebp - 0xc80]
add ecx, 0x1ec
call fcn.0049cd70
push eax
push 0x69e984
lea edx, [ebp - 0x72c]
push edx
call fcn.004cb929
add esp, 0xc
mov eax, dword [ebp - 0xc80]
mov dword [eax + 0x184], 0xffffffff
lea ecx, [ebp - 0x62c]
push ecx
mov ecx, dword [ebp - 0xc80]
add ecx, 0x45c
call fcn.0049cb30
push 0x69e938
mov ecx, dword [ebp - 0xc80]
add ecx, 0x478
call fcn.0049cb30
lea edx, [ebp - 0x72c]
push edx
mov ecx, dword [ebp - 0xc80]
add ecx, 0x494
call fcn.0049cb30
mov dword [ebp - 0xc34], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ec]
call fcn.0049caf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.0049caf0
mov eax, dword [ebp - 0xc34]
jmp 0x48bb54
mov dword [ebp - 0x524], 0x80
push 0
push 0x84000000
lea eax, [ebp - 0x520]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x520]
push ecx
mov ecx, dword [ebp - 0xc80]
add ecx, 0x1ec
call fcn.0049cd70
push eax
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + 0x230]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ecx, dword [ebp - 0xc80]
mov dword [ecx + 0x234], eax
push 0
lea edx, [ebp - 0x524]
push edx
lea eax, [ebp - 0x4cc]
push eax
push 0x13
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + 0x234]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp - 0x4cc]
push eax
call fcn.004cbdaf
add esp, 4
mov dword [ebp - 0x4f0], eax
mov ecx, dword [ebp - 0xc80]
cmp dword [ecx + 0x234], 0
jne 0x48b36a
mov edx, dword [ebp - 0x4f0]
push edx
mov eax, dword [ebp - 0xc80]
add eax, 1
push eax
push 0x69e900
lea ecx, [ebp - 0x82c]
push ecx
call fcn.004cb929
add esp, 0x10
mov ecx, dword [ebp - 0xc80]
add ecx, 0x1ec
call fcn.0049cd70
push eax
push str.URL___s
lea edx, [ebp - 0x92c]
push edx
call fcn.004cb929
add esp, 0xc
mov eax, dword [ebp - 0xc80]
mov dword [eax + 0x184], 0xffffffff
lea ecx, [ebp - 0x82c]
push ecx
mov ecx, dword [ebp - 0xc80]
add ecx, 0x45c
call fcn.0049cb30
push 0x69e938
mov ecx, dword [ebp - 0xc80]
add ecx, 0x478
call fcn.0049cb30
lea edx, [ebp - 0x92c]
push edx
mov ecx, dword [ebp - 0xc80]
add ecx, 0x494
call fcn.0049cb30
mov dword [ebp - 0xc38], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ec]
call fcn.0049caf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.0049caf0
mov eax, dword [ebp - 0xc38]
jmp 0x48bb54
cmp dword [ebp - 0x4f0], 0xc8
je 0x48b451
mov eax, dword [ebp - 0x4f0]
push eax
mov ecx, dword [ebp - 0xc80]
add ecx, 1
push ecx
push 0x69e900
lea edx, [ebp - 0xa2c]
push edx
call fcn.004cb929
add esp, 0x10
mov ecx, dword [ebp - 0xc80]
add ecx, 0x1ec
call fcn.0049cd70
push eax
push str.URL___s
lea eax, [ebp - 0xb2c]
push eax
call fcn.004cb929
add esp, 0xc
mov ecx, dword [ebp - 0xc80]
mov dword [ecx + 0x184], 0xffffffff
lea edx, [ebp - 0xa2c]
push edx
mov ecx, dword [ebp - 0xc80]
add ecx, 0x45c
call fcn.0049cb30
push 0x69e8d4
mov ecx, dword [ebp - 0xc80]
add ecx, 0x478
call fcn.0049cb30
lea eax, [ebp - 0xb2c]
push eax
mov ecx, dword [ebp - 0xc80]
add ecx, 0x494
call fcn.0049cb30
mov dword [ebp - 0xc3c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ec]
call fcn.0049caf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.0049caf0
mov eax, dword [ebp - 0xc3c]
jmp 0x48bb54
mov dword [ebp - 0x4f4], 0x400
push 0
lea ecx, [ebp - 0x4f4]
push ecx
lea edx, [ebp - 0x414]
push edx
push 5
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + 0x234]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
setne dl
mov byte [ebp - 0x529], dl
mov eax, dword [ebp - 0xc80]
mov dword [eax + 0x188], 0
lea ecx, [ebp - 0x414]
push ecx
call fcn.004cbdaf
add esp, 4
mov edx, dword [ebp - 0xc80]
mov dword [edx + 0x18c], eax
movzx eax, byte [ebp - 0x529]
test eax, eax
jne 0x48b4d1
mov ecx, dword [ebp - 0xc80]
mov dword [ecx + 0x18c], 0x5f5e100
mov edx, dword [ebp - 0xc80]
mov dword [edx + 0x448], 0
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + 0x18c]
add ecx, 0xa
push ecx
call fcn.004cb917
add esp, 4
mov edx, dword [ebp - 0xc80]
mov dword [edx + 0x444], eax
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + 0x18c]
add ecx, 0xa
push ecx
push 0
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + 0x444]
push eax
call fcn.004cb810
add esp, 0xc
mov ecx, dword [ebp - 0xc80]
mov dword [ecx + 0x184], 0
mov edx, dword [ebp - 0xc80]
mov dword [edx + 0x44c], 0
mov byte [ebp - 0xd], 0
push 0
call fcn.004dcfb0
add esp, 4
mov dword [ebp - 0x528], eax
mov eax, 1
test eax, eax
je 0x48b7e7
mov ecx, dword [ebp - 0xc80]
add ecx, 0x228
push ecx
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + 0x440]
push eax
mov ecx, dword [ebp - 0xc80]
add ecx, 0x240
push ecx
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + 0x234]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0xc80]
mov dword [ecx + 0x224], eax
mov edx, dword [ebp - 0xc80]
cmp dword [edx + 0x224], 0
je 0x48b755
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + 0x188]
mov edx, dword [ebp - 0xc80]
add ecx, dword [edx + 0x228]
mov eax, dword [ebp - 0xc80]
mov dword [eax + 0x188], ecx
push 0
call fcn.004dcfb0
add esp, 4
mov ecx, dword [ebp - 0xc80]
sub eax, dword [ecx + 0x194]
cdq
mov ecx, 0x3e8
idiv ecx
mov edx, dword [ebp - 0xc80]
mov dword [edx + 0x198], eax
mov eax, dword [ebp - 0xc80]
cmp dword [eax + 0x198], 1
jge 0x48b62f
mov dword [ebp - 0xc88], 1
jmp 0x48b641
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + 0x198]
mov dword [ebp - 0xc88], edx
mov eax, dword [ebp - 0xc80]
mov eax, dword [eax + 0x188]
cdq
idiv dword [ebp - 0xc88]
mov ecx, dword [ebp - 0xc80]
mov dword [ecx + 0x190], eax
mov edx, dword [ebp - 0xc80]
cmp dword [edx + 0x190], 1
jge 0x48b67b
mov dword [ebp - 0xc8c], 1
jmp 0x48b68d
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + 0x190]
mov dword [ebp - 0xc8c], ecx
mov edx, dword [ebp - 0xc80]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [edx + 0x18c]
sub ecx, dword [eax + 0x188]
mov eax, ecx
cdq
idiv dword [ebp - 0xc8c]
mov edx, dword [ebp - 0xc80]
mov dword [edx + 0x19c], eax
mov eax, dword [ebp - 0xc80]
mov dword [eax + 0x184], 0
mov ecx, dword [ebp - 0xc80]
cmp dword [ecx + 0x228], 0
jne 0x48b6e2
mov byte [ebp - 0xd], 1
jmp 0x48b7e7
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + 0x228]
push eax
mov ecx, dword [ebp - 0xc80]
add ecx, 0x240
push ecx
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + 0x444]
mov ecx, dword [ebp - 0xc80]
add eax, dword [ecx + 0x448]
push eax
call fcn.004cb4d0
add esp, 0xc
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + 0x448]
mov ecx, dword [ebp - 0xc80]
add eax, dword [ecx + 0x228]
mov edx, dword [ebp - 0xc80]
mov dword [edx + 0x448], eax
mov eax, dword [ebp - 0xc80]
cmp dword [eax + 0x23c], 0
jl 0x48b755
jmp 0x48b560
mov ecx, dword [ebp - 0xc80]
add ecx, 1
push ecx
push 0x69e89c
lea edx, [ebp - 0xc2c]
push edx
call fcn.004cb929
add esp, 0xc
lea eax, [ebp - 0xc2c]
push eax
mov ecx, dword [ebp - 0xc80]
add ecx, 0x45c
call fcn.0049cb30
push 0x69e880
mov ecx, dword [ebp - 0xc80]
add ecx, 0x478
call fcn.0049cb30
mov ecx, dword [ebp - 0xc80]
mov dword [ecx + 0x184], 0xffffffff
mov dword [ebp - 0xc40], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ec]
call fcn.0049caf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.0049caf0
mov eax, dword [ebp - 0xc40]
jmp 0x48bb54
mov edx, dword [ebp - 0xc80]
cmp dword [edx + 0x1cc], 0
jle 0x48b814
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + 0x444]
push ecx
mov ecx, dword [ebp - 0xc80]
add ecx, 0x4b0
call fcn.0049cb30
mov edx, dword [ebp - 0xc80]
movzx eax, byte [edx + 0x181]
test eax, eax
jne 0x48b869
mov ecx, dword [ebp - 0xc80]
add ecx, 0x22c
push ecx
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + 0x448]
push eax
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ecx + 0x444]
push edx
mov ecx, dword [ebp - 0xc80]
add ecx, 0x238
call fcn.0048bc00
mov ecx, dword [ebp - 0xc80]
mov dword [ecx + 0x23c], eax
mov ecx, dword [ebp - 0xc80]
add ecx, 0x238
call fcn.0048bc50
mov edx, dword [ebp - 0xc80]
mov dword [edx + 0x23c], eax
mov ecx, dword [ebp - 0xc80]
call fcn.004515f0
mov ecx, dword [ebp - 0xc80]
add ecx, 0x238
call fcn.0044ef30
mov eax, dword [ebp - 0xc80]
mov ecx, dword [eax + 0x234]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + 0x230]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xc80]
add ecx, 0x208
push ecx
lea ecx, [ebp - 0x44c]
call fcn.0049ca60
mov byte [ebp - 4], 2
push 0x69e284
lea ecx, [ebp - 0x44c]
call fcn.0049cb70
mov edx, dword [ebp - 0xc80]
add edx, 1
push edx
lea ecx, [ebp - 0x44c]
call fcn.0049cb70
push str._tmp
lea ecx, [ebp - 0x44c]
call fcn.0049cb70
mov eax, dword [ebp - 0xc80]
add eax, 0x1d0
push eax
lea ecx, [ebp - 0x510]
call fcn.0049ca60
mov byte [ebp - 4], 3
mov ecx, dword [0x69d8fc]
push ecx
push 0x69e878
mov ecx, dword [ebp - 0xc80]
add ecx, 0x1d0
call fcn.0049ce50
mov esi, eax
mov ecx, dword [ebp - 0xc80]
add ecx, 0x1d0
call fcn.0049cd90
sub eax, 1
cmp esi, eax
je 0x48b9a2
mov edx, dword [0x69d8fc]
push edx
push 0x69e284
mov ecx, dword [ebp - 0xc80]
add ecx, 0x1d0
call fcn.0049ce50
mov esi, eax
mov ecx, dword [ebp - 0xc80]
add ecx, 0x1d0
call fcn.0049cd90
sub eax, 1
cmp esi, eax
jne 0x48b9c7
push 0x69e878
lea ecx, [ebp - 0x510]
call fcn.0049cb70
mov eax, dword [ebp - 0xc80]
add eax, 1
push eax
lea ecx, [ebp - 0x510]
call fcn.0049cb70
mov ecx, dword [ebp - 0xc80]
cmp dword [ecx + 0x1cc], 0xfffffffe
jne 0x48ba82
mov edx, dword [ebp - 0xc80]
add edx, 0x1d0
push edx
lea ecx, [ebp - 0x510]
call fcn.0049cb10
push 0x69e284
lea ecx, [ebp - 0x510]
call fcn.0049cb70
lea ecx, [ebp - 0x510]
call fcn.0049cd70
push eax
lea ecx, [ebp - 0xc5c]
call fcn.0049cab0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44c]
call fcn.0049cd70
push eax
lea ecx, [ebp - 0xc78]
call fcn.0049cab0
mov byte [ebp - 4], 5
lea eax, [ebp - 0xc5c]
push eax
lea ecx, [ebp - 0xc78]
push ecx
call fcn.004ca1f0
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xc78]
call fcn.0049caf0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc5c]
call fcn.0049caf0
lea ecx, [ebp - 0x44c]
call fcn.0049cd70
push eax
call fcn.004cd84b
add esp, 4
jmp 0x48badd
mov edx, dword [ebp - 0xc80]
movzx eax, byte [edx + 0x181]
test eax, eax
je 0x48baa9
lea ecx, [ebp - 0x44c]
call fcn.0049cd70
push eax
call fcn.004cd84b
add esp, 4
jmp 0x48badd
push 0
lea ecx, [ebp - 0x510]
call fcn.0049cd70
push eax
lea ecx, [ebp - 0x44c]
call fcn.0049cd70
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x44c]
call fcn.0049cd70
push eax
call fcn.004cd84b
add esp, 4
mov ecx, dword [ebp - 0xc80]
mov edx, dword [ebp - 0xc80]
mov eax, dword [edx + 0x18c]
mov dword [ecx + 0x188], eax
mov ecx, dword [ebp - 0xc80]
mov dword [ecx + 0x184], 1
mov dword [ebp - 0xc7c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x510]
call fcn.0049caf0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44c]
call fcn.0049caf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ec]
call fcn.0049caf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.0049caf0
mov eax, dword [ebp - 0xc7c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004cac87
mov esp, ebp
pop ebp
ret