Function at 0x40103f
Capabilities:
Check http status code
Connect to http server
Create directory
Create http request
Delete file
Download and write a file
Get common file path
Get file size
Get http content length
Parse url
Print debug messages
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4195f0
push 0x40bb60
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x5710
call fcn.00412f50
mov eax, dword [0x41b044]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x5698], edi
mov esi, edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x56b0], eax
xor ebx, ebx
mov dword [ebp - 0x568c], ebx
mov dword [ebp - 0x5690], ebx
mov dword [ebp - 0x565c], ebx
or dword [ebp - 0x566c], 0xffffffff
mov dword [ebp - 0x5664], ebx
mov dword [ebp - 0x5684], ebx
movsx eax, byte [eax]
push eax
push str.__c:_
push 5
lea eax, [ebp - 0x24]
push eax
call fcn.00407116
add esp, 0x10
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x150], eax
push 3
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x150]
push eax
call fcn.00401e56
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x567c], eax
lea ecx, [ebp - 0x14c]
cmp eax, ecx
je 0x401107
push eax
call fcn.00406fb8
pop ecx
cmp dword [edi], ebx
je 0x40111c
push str.SaaSbeeTestMode00123578
push str.srid
push esi
call dword [sym.imp.WININET.dll_InternetSetCookieA]
mov dword [ebp - 4], ebx
push str.file:__
push esi
call fcn.00407090
pop ecx
pop ecx
test eax, eax
je 0x40113f
mov dword [ebp - 0x5664], 1
jmp 0x401d9a
cmp dword [ebp + 0xc], ebx
je 0x401151
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
push dword [edi + 0x10]
push dword [edi + 8]
call dword [eax]
push ebx
push ebx
push ebx
push ebx
push str.Zoom.Launcher.Win
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x568c], eax
cmp eax, ebx
jne 0x4011bc
mov dword [ebp - 0x5664], 1
mov byte [ebp - 0x3b8], bl
push 0xff
push ebx
lea eax, [ebp - 0x3b7]
push eax
call fcn.00407320
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetOpen_API_failed__error_code:__d
lea eax, [ebp - 0x3b8]
push eax
call fcn.00406e3f
lea eax, [ebp - 0x3b8]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x401d9a
push 0x3c
push ebx
lea eax, [ebp - 0x5714]
push eax
call fcn.00407320
add esp, 0xc
mov dword [ebp - 0x5714], 0x3c
lea eax, [ebp - 0x5658]
mov dword [ebp - 0x5704], eax
mov eax, 0x800
mov dword [ebp - 0x5700], eax
xor ecx, ecx
mov word [ebp - 0x56fc], cx
lea ecx, [ebp - 0x1eb8]
mov dword [ebp - 0x56e8], ecx
mov dword [ebp - 0x56e4], eax
lea ecx, [ebp - 0x16b8]
mov dword [ebp - 0x56e0], ecx
mov dword [ebp - 0x56dc], eax
lea eax, [ebp - 0x5714]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push ebx
push ebx
push 3
mov eax, 0x417cc6
push eax
push eax
push dword [ebp - 0x56fc]
push dword [ebp - 0x5704]
push dword [ebp - 0x568c]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x5690], eax
cmp eax, ebx
jne 0x4012a8
mov dword [ebp - 0x5664], 1
mov byte [ebp - 0x4b8], bl
push 0xff
push ebx
lea eax, [ebp - 0x4b7]
push eax
call fcn.00407320
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetConnect_API_failed__error_code:__d
lea eax, [ebp - 0x4b8]
push eax
call fcn.00406e3f
lea eax, [ebp - 0x4b8]
jmp 0x4011ad
lea eax, [ebp - 0x4e58]
cmp dword [ebp - 0x56e4], ebx
je 0x4012be
push dword [ebp - 0x56e8]
jmp 0x4012c3
push 0x417d60
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x56dc], ebx
je 0x4012e5
push dword [ebp - 0x56e0]
lea eax, [ebp - 0x4e58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x5660], ebx
mov dword [ebp - 0x5688], ebx
mov dword [ebp - 0x5694], 0x3c
mov dword [ebp - 0x5660], ebx
mov eax, 0x1bb
xor ecx, ecx
cmp word [ebp - 0x56fc], ax
setne cl
dec ecx
and ecx, 0x800000
add ecx, 0x84401000
mov eax, ecx
push ebx
push eax
push ebx
push 0x417cc6
push str.HTTP_1.1
lea eax, [ebp - 0x4e58]
push eax
push 0x417d70
push dword [ebp - 0x5690]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x565c], eax
cmp eax, ebx
jne 0x401398
mov dword [ebp - 0x5664], 1
mov byte [ebp - 0x5b8], bl
push 0xff
push ebx
lea eax, [ebp - 0x5b7]
push eax
call fcn.00407320
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpOpenRequest_API_failed__error_code:__d
lea eax, [ebp - 0x5b8]
push eax
call fcn.00406e3f
lea eax, [ebp - 0x5b8]
jmp 0x4011ad
push ebx
push 0x20
push 4
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x56b0]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x566c], esi
cmp esi, 0xffffffff
jne 0x40142c
cmp dword [ebp + 0xc], ebx
je 0x4013e4
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
push dword [ebp - 0x567c]
call dword [eax + 4]
cmp eax, 4
jne 0x4013e4
mov dword [ebp - 0x5660], 1
jmp 0x4012fb
mov dword [ebp - 0x5664], 1
mov byte [ebp - 0x6b8], bl
push 0xff
push ebx
lea eax, [ebp - 0x6b7]
push eax
call fcn.00407320
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile_API_failed__error_code:__d
lea eax, [ebp - 0x6b8]
push eax
call fcn.00406e3f
lea eax, [ebp - 0x6b8]
jmp 0x4011ad
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x5668], eax
xor eax, eax
cmp eax, ebx
jne 0x401446
mov dword [ebp - 0x5668], ebx
mov dword [ebp - 0x56ac], ebx
cmp dword [ebp - 0x5668], ebx
je 0x4014ef
cmp dword [ebp - 0x5668], 0xffffffff
je 0x4014ef
lea eax, [ebp - 0x56d8]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4014ef
lea eax, [ebp - 0x56c0]
push eax
lea eax, [ebp - 0x56d8]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0x1e
lea eax, [ebp - 0x44]
push eax
push ebx
lea eax, [ebp - 0x56c0]
push eax
call dword [sym.imp.WININET.dll_InternetTimeFromSystemTime]
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x5668]
push str.Range:_bytes_d__r_nIf_Range:__s_r_n
lea eax, [ebp - 0x1b8]
push eax
call fcn.00406e3f
add esp, 0x10
push 0xa0000000
lea eax, [ebp - 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x1b8]
push eax
push dword [ebp - 0x565c]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov dword [ebp - 0x56ac], 1
mov dword [ebp - 0x5674], 1
xor esi, esi
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x565c]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4015df
cmp dword [ebp - 0x5674], ebx
je 0x4015e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
sub eax, 0x2ee2
je 0x401594
sub eax, 5
je 0x401594
sub eax, 0x16
je 0x401594
mov dword [ebp - 0x5674], ebx
cmp dword [ebp + 0xc], ebx
je 0x4014fb
cmp dword [edi + 0x14], ebx
je 0x401550
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x3c]
push ebx
push 7
push esi
push dword [ebp - 0x565c]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
test eax, eax
jne 0x401575
mov dword [ebp - 0x5674], 1
cmp dword [edi + 0x14], ebx
je 0x4014fb
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
cmp dword [ebp - 0x5674], ebx
setne dl
movzx edx, dl
push edx
call dword [eax + 0x40]
jmp 0x4014fb
mov dword [ebp - 0x5674], ebx
cmp dword [ebp + 0xc], ebx
je 0x4014fb
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
cmp esi, 0x2ee2
jne 0x4015bd
call dword [eax + 8]
jmp 0x4015c0
call dword [eax + 0xc]
mov dword [ebp - 0x5660], eax
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, dword [ebp - 0x5660]
mov dword [ebp - 0x5674], eax
jmp 0x4014fb
cmp dword [ebp - 0x5674], ebx
jne 0x401629
mov dword [ebp - 0x5664], 1
mov byte [ebp - 0x150], bl
push 0xff
push ebx
lea eax, [ebp - 0x14f]
push eax
call fcn.00407320
push esi
push str.HttpSendRequest_API_failed__error_code:__d
lea eax, [ebp - 0x150]
push eax
call fcn.00406e3f
add esp, 0x18
lea eax, [ebp - 0x150]
jmp 0x4011b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x5678], ebx
mov dword [ebp - 0x56a4], 4
push ebx
lea eax, [ebp - 0x56a4]
push eax
lea eax, [ebp - 0x5678]
push eax
push 0x20000013
push dword [ebp - 0x565c]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
call esi
test eax, eax
jne 0x40166b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x5674], 1
cmp dword [ebp - 0x5678], 0x197
je 0x401691
cmp dword [ebp - 0x5678], 0x191
jne 0x40171d
cmp dword [ebp - 0x5674], ebx
je 0x40171d
cmp dword [edi + 0x14], ebx
je 0x4016aa
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x3c]
push ebx
push 7
push 0x2eee
push dword [ebp - 0x565c]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x4c7
jne 0x4016e2
mov dword [ebp - 0x5674], ebx
cmp dword [edi + 0x14], ebx
je 0x401675
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x40]
jmp 0x401675
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x565c]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x56a4], 4
push ebx
lea eax, [ebp - 0x56a4]
push eax
lea eax, [ebp - 0x5678]
push eax
push 0x20000013
push dword [ebp - 0x565c]
call esi
jmp 0x401675
mov byte [ebp - 0x2b8], bl
push 0xff
push ebx
lea eax, [ebp - 0x2b7]
push eax
call fcn.00407320
push dword [ebp - 0x5678]
push str.HttpQueryInfo_status:__d
lea eax, [ebp - 0x2b8]
push eax
call fcn.00406e3f
add esp, 0x18
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x5678]
cmp eax, 0xc8
je 0x401af2
cmp eax, 0xce
je 0x401af2
cmp eax, 0x1a0
jne 0x401794
cmp dword [ebp - 0x5668], ebx
je 0x401794
cmp dword [ebp - 0x5668], 0xffffffff
jne 0x401be5
cmp eax, 0x193
jne 0x4019db
mov dword [ebp - 0x5668], ebx
mov dword [ebp - 0x56c4], 4
push ebx
lea eax, [ebp - 0x56c4]
push eax
lea eax, [ebp - 0x5668]
push eax
push 0x20000005
push dword [ebp - 0x565c]
call esi
mov eax, dword [ebp - 0x5668]
cmp eax, ebx
jbe 0x4019ba
add eax, 5
push eax
call fcn.00406eda
pop ecx
mov dword [ebp - 0x5680], eax
mov ecx, dword [ebp - 0x5668]
mov byte [eax + ecx], bl
mov dword [ebp - 0x567c], ebx
lea ecx, [ebp - 0x567c]
push ecx
push dword [ebp - 0x5668]
push eax
push dword [ebp - 0x565c]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x567c]
cmp eax, dword [ebp - 0x5668]
jne 0x4019ae
push 0x10
push ebx
lea eax, [ebp - 0x56c0]
push eax
call fcn.00407320
add esp, 0xc
lea eax, [ebp - 0x56c0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x2f
push dword [edi + 0xc]
call fcn.00407590
pop ecx
pop ecx
mov dword [ebp - 0x5670], eax
cmp eax, ebx
jne 0x40186b
push 0x5c
push dword [edi + 0xc]
call fcn.00407590
pop ecx
pop ecx
mov dword [ebp - 0x5670], eax
mov byte [ebp - 0xeb8], bl
mov esi, 0x3ff
push esi
push ebx
lea eax, [ebp - 0xeb7]
push eax
call fcn.00407320
add esp, 0xc
cmp dword [ebp - 0x5670], ebx
je 0x401898
mov eax, dword [ebp - 0x5670]
inc eax
jmp 0x40189d
mov eax, str.NULL
push eax
movzx eax, word [ebp - 0x56b4]
push eax
movzx eax, word [ebp - 0x56b6]
push eax
movzx eax, word [ebp - 0x56b8]
push eax
movzx eax, word [ebp - 0x56ba]
push eax
movzx eax, word [ebp - 0x56be]
push eax
movzx eax, word [ebp - 0x56c0]
push eax
push str.launcher_downloader_403___d__d__d___d__d__d___s.log
push 0x3e8
lea eax, [ebp - 0xeb8]
push eax
call fcn.00406ebc
mov byte [ebp - 0xab8], bl
push esi
push ebx
lea eax, [ebp - 0xab7]
push eax
call fcn.00407320
add esp, 0x34
push ebx
push 0x1a
lea eax, [ebp - 0xab8]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp eax, ebx
je 0x4019ae
mov edi, 0x417e70
push edi
mov esi, 0x400
push esi
lea eax, [ebp - 0xab8]
push eax
call fcn.004075bd
push str.zlauncher
push esi
lea eax, [ebp - 0xab8]
push eax
call fcn.004075bd
add esp, 0x18
push ebx
lea eax, [ebp - 0xab8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
push esi
lea eax, [ebp - 0xab8]
push eax
call fcn.004075bd
lea eax, [ebp - 0xeb8]
push eax
push esi
lea eax, [ebp - 0xab8]
push eax
call fcn.004075bd
push 0x417e80
lea eax, [ebp - 0xab8]
push eax
call fcn.00407289
add esp, 0x20
mov esi, eax
cmp esi, ebx
je 0x4019a8
push esi
push dword [ebp - 0x567c]
push 1
push dword [ebp - 0x5680]
call fcn.00407507
push esi
call fcn.004076f9
add esp, 0x14
mov edi, dword [ebp - 0x5698]
push dword [ebp - 0x5680]
call fcn.0040739a
pop ecx
cmp dword [ebp + 0xc], ebx
je 0x401130
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
push 0x417e84
call dword [eax + 0x14]
mov dword [ebp - 0x5660], eax
jmp 0x401130
lea ecx, [eax - 0x190]
cmp ecx, 0xc7
ja 0x401aac
cmp eax, 0x1f4
jne 0x401a1b
cmp dword [ebp + 0xc], ebx
je 0x401a0c
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
push 0x417e8c
call dword [eax + 0x18]
mov dword [ebp - 0x5660], eax
mov dword [ebp - 0x5664], 1
jmp 0x401ad7
cmp eax, 0x1f7
jne 0x401aac
cmp dword [ebp - 0x5688], 5
jge 0x401a7b
mov eax, dword [ebp - 0x5694]
mov dword [ebp - 0x569c], eax
cmp dword [ebp - 0x569c], ebx
jl 0x401a69
cmp dword [ebp + 0xc], ebx
je 0x401a56
push str.Retry
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 0x569c]
jmp 0x401a3b
inc dword [ebp - 0x5688]
add dword [ebp - 0x5694], 0x1e
jmp 0x4013d5
cmp dword [ebp + 0xc], ebx
je 0x401ad7
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
push 0x417e9c
call dword [eax + 0x1c]
mov dword [ebp - 0x5660], eax
cmp eax, ebx
je 0x401ad7
mov dword [ebp - 0x5688], ebx
mov dword [ebp - 0x5694], 0x3c
jmp 0x401d8e
cmp dword [ebp + 0xc], ebx
je 0x401ad7
push eax
push 0x417ea4
push 0xa
lea eax, [ebp - 0x3c]
push eax
call fcn.00406ee5
add esp, 0x10
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
lea edx, [ebp - 0x3c]
push edx
call dword [eax + 0x18]
mov dword [ebp - 0x5660], eax
cmp dword [ebp - 0x5660], ebx
jne 0x401d58
mov dword [ebp - 0x5664], 1
jmp 0x401d58
mov dword [ebp - 0x5684], ebx
mov dword [ebp - 0x56d0], 4
push ebx
lea eax, [ebp - 0x56d0]
push eax
lea eax, [ebp - 0x5684]
push eax
push 0x20000005
push dword [ebp - 0x565c]
call esi
mov eax, dword [ebp - 0x5684]
cmp eax, ebx
ja 0x401b37
mov dword [ebp - 0x5684], 0xe4e1c0
jmp 0x401c0a
cmp dword [ebp - 0x56ac], ebx
je 0x401c0a
cmp dword [ebp - 0x5668], ebx
je 0x401c0a
cmp eax, dword [ebp - 0x5668]
jne 0x401c0a
mov dword [ebp - 0x5680], 0x100
push ebx
lea eax, [ebp - 0x5680]
push eax
lea eax, [ebp - 0x2b8]
push eax
push 0x35
push dword [ebp - 0x565c]
call esi
test eax, eax
jne 0x401c0a
push ebx
lea eax, [ebp - 0x5680]
push eax
lea eax, [ebp - 0x2b8]
push eax
push 0xb
push dword [ebp - 0x565c]
call esi
push ebx
test eax, eax
je 0x401bf0
lea eax, [ebp - 0x5724]
push eax
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.WININET.dll_InternetTimeToSystemTime]
lea eax, [ebp - 0x56c8]
push eax
lea eax, [ebp - 0x5724]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x56c8]
push eax
lea eax, [ebp - 0x56d8]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x401c0a
mov dword [ebp - 0x5664], ebx
jmp 0x401d9a
push ebx
push ebx
push dword [ebp - 0x566c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x566c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, 0x1fa0
mov dword [ebp - 0x5670], ebx
mov dword [ebp - 0x56a8], ebx
mov dword [ebp - 0x56a0], ebx
cmp dword [ebp - 0x5678], 0xce
jne 0x401c3f
push 2
push ebx
push ebx
push dword [ebp - 0x566c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x401c5a
push ebx
push ebx
push ebx
push dword [ebp - 0x566c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x566c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0x5670], ebx
lea eax, [ebp - 0x5670]
push eax
push esi
lea eax, [ebp - 0x3e58]
push eax
push dword [ebp - 0x565c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401d42
cmp dword [ebp - 0x5670], ebx
je 0x401cef
mov dword [ebp - 0x56cc], ebx
push ebx
lea eax, [ebp - 0x56cc]
push eax
push dword [ebp - 0x5670]
lea eax, [ebp - 0x3e58]
push eax
push dword [ebp - 0x566c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x401cef
cmp dword [ebp + 0xc], ebx
je 0x401d34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 0x14]
push dword [ebp - 0x567c]
cmp eax, 0x70
mov eax, dword [ecx]
jne 0x401cd6
call dword [eax + 0x10]
jmp 0x401cd9
call dword [eax + 4]
mov dword [ebp - 0x5660], eax
cmp eax, ebx
jne 0x401d34
mov dword [ebp - 0x5664], 1
jmp 0x401d4c
mov ecx, dword [ebp - 0x5670]
add dword [ebp - 0x56a8], ecx
mov eax, dword [edi + 0x14]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x28]
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
je 0x401d34
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
push dword [ebp - 0x56a8]
push dword [ebp - 0x5684]
call dword [eax + 0x34]
mov dword [ebp - 0x56a0], 1
jmp 0x401130
cmp dword [ebp - 0x5670], ebx
jne 0x401c5a
jmp 0x401d4c
mov dword [ebp - 0x56a0], 1
cmp dword [ebp - 0x56a0], ebx
jne 0x401130
cmp dword [ebp - 0x565c], ebx
je 0x401d72
push dword [ebp - 0x565c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x565c], ebx
cmp dword [ebp - 0x566c], 0xffffffff
je 0x401d8e
push dword [ebp - 0x566c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x566c], 0xffffffff
cmp dword [ebp - 0x5660], ebx
jne 0x4012fb
mov dword [ebp - 4], 0xfffffffe
call fcn.00401dc9
cmp dword [ebp - 0x5664], ebx
jne 0x401e1b
cmp dword [edi + 0x14], ebx
je 0x401dbd
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
push 1
call dword [eax + 0x38]
xor eax, eax
jmp 0x401e3a
push dword [ebp - 0x56b0]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [edi + 0x14], ebx
je 0x401e35
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x38]
mov eax, 0x80004005
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00406e30
leave
ret 8