Function at 0x41c6ec
Capabilities:
Check http status code
Check internet connectivity via wininet
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x29a
push 0
push 0
dec ecx
jne 0x41c6f5
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004042b8
mov eax, dword [ebp - 8]
call fcn.004042b8
mov eax, dword [ebp - 0xc]
call fcn.004042b8
mov eax, dword [ebp + 0x18]
call fcn.004042b8
mov eax, dword [ebp + 0xc]
call fcn.004042b8
lea eax, [ebp - 0x1468]
mov edx, dword [0x41c634]
call fcn.00404878
lea eax, [ebp - 0x147c]
mov edx, dword [0x41c67c]
call fcn.00404878
xor eax, eax
push ebp
push 0x41d541
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00403dfc
mov eax, dword [0x4778cc]
mov edx, 0x41d55c
call fcn.00404214
jne 0x41c7c1
lea eax, [ebp - 0x1480]
call fcn.0041c56c
mov edx, dword [ebp - 0x1480]
mov eax, 0x4778cc
call fcn.00403e50
lea eax, [ebp - 0x1484]
push eax
xor ecx, ecx
mov edx, 2
mov eax, 0x41d568
call fcn.0041a914
mov eax, dword [ebp - 0x1484]
call fcn.00406b54
fstp qword [0x4778c0]
wait
cmp dword [ebp + 0x14], 0
jge 0x41c7cf
mov eax, dword [0x4778d8]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov edx, 0x41d55c
call fcn.00404214
jne 0x41c7ec
lea eax, [ebp + 0xc]
mov edx, dword [0x4778d4]
call fcn.00403e94
cmp dword [ebp + 0x10], 0x400
jne 0x41c7fd
mov eax, dword [0x4778d0]
mov dword [ebp + 0x10], eax
mov edx, dword [ebp - 8]
mov eax, 0x41d578
call fcn.004043b0
dec eax
jne 0x41c8ba
lea eax, [ebp - 0x1488]
push eax
mov ecx, 1
mov dl, 0xd
mov eax, dword [ebp - 8]
call fcn.00418afc
mov edx, dword [ebp - 0x1488]
lea eax, [ebp - 0x147c]
call fcn.00403e94
lea eax, [ebp - 0x148c]
push eax
mov ecx, 2
mov dl, 0xd
mov eax, dword [ebp - 8]
call fcn.00418afc
mov eax, dword [ebp - 0x148c]
call fcn.00410efc
mov dword [ebp - 0x1478], eax
lea eax, [ebp - 0x1490]
push eax
mov ecx, 3
mov dl, 0xd
mov eax, dword [ebp - 8]
call fcn.00418afc
mov eax, dword [ebp - 0x1490]
call fcn.00410efc
mov dword [ebp - 0x1474], eax
mov edx, dword [ebp - 8]
mov eax, 0x41d588
call fcn.004043b0
test eax, eax
jg 0x41c8b0
lea eax, [ebp - 0x147c]
push eax
mov ecx, 0x400
mov edx, 6
mov eax, dword [ebp - 8]
call fcn.00404328
lea eax, [ebp - 8]
call fcn.00403dfc
jmp 0x41c8d5
lea eax, [ebp - 0x147c]
call fcn.00403dfc
xor eax, eax
mov dword [ebp - 0x1478], eax
xor eax, eax
mov dword [ebp - 0x1474], eax
mov edx, dword [ebp - 8]
mov eax, 0x41d594
call fcn.004043b0
dec eax
jne 0x41c936
lea eax, [ebp - 0x1494]
push eax
mov ecx, 1
mov dl, 0xd
mov eax, dword [ebp - 8]
call fcn.00418afc
mov eax, dword [ebp - 0x1494]
call fcn.00410efc
mov esi, eax
lea eax, [ebp - 0x1498]
push eax
mov ecx, 2
mov dl, 0xd
mov eax, dword [ebp - 8]
call fcn.00418afc
mov eax, dword [ebp - 0x1498]
call fcn.00410efc
mov dword [ebp - 0x48], eax
lea eax, [ebp - 8]
call fcn.00403dfc
jmp 0x41c93d
xor esi, esi
xor eax, eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 8], 0
jne 0x41c950
lea eax, [ebp - 8]
mov edx, 0x41d5a4
call fcn.00403e94
lea eax, [ebp - 0x1468]
mov edx, dword [ebp - 4]
call fcn.00403e94
lea eax, [ebp - 0x1464]
mov edx, dword [ebp - 8]
call fcn.00403e94
mov edx, dword [ebp - 4]
mov eax, 0x41d5b0
call fcn.004043b0
test eax, eax
jle 0x41c9c2
lea eax, [ebp - 0x1460]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x41d5b0
call fcn.004043b0
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404328
mov edx, dword [ebp - 4]
mov eax, 0x41d5b0
call fcn.004043b0
mov ecx, eax
add ecx, 2
lea eax, [ebp - 4]
mov edx, 1
call fcn.00404368
jmp 0x41c9cd
lea eax, [ebp - 0x1460]
call fcn.00403dfc
mov edx, dword [ebp - 4]
mov eax, 0x41d5bc
call fcn.004043b0
test eax, eax
jle 0x41ca29
lea eax, [ebp - 0x1458]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x41d5bc
call fcn.004043b0
push eax
mov eax, dword [ebp - 4]
call fcn.004040d0
mov ecx, eax
mov eax, dword [ebp - 4]
pop edx
call fcn.00404328
lea eax, [ebp - 4]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x41d5bc
call fcn.004043b0
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404328
jmp 0x41ca39
lea eax, [ebp - 0x1458]
mov edx, 0x41d5bc
call fcn.00403e94
mov edx, dword [ebp - 4]
mov eax, 0x41d5c8
call fcn.004043b0
test eax, eax
jle 0x41cb0d
lea eax, [ebp - 0x1454]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x41d5c8
call fcn.004043b0
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404328
mov edx, dword [ebp - 4]
mov eax, 0x41d5c8
call fcn.004043b0
mov ecx, eax
lea eax, [ebp - 4]
mov edx, 1
call fcn.00404368
mov edx, dword [ebp - 0x1454]
mov eax, 0x41d5d4
call fcn.004043b0
test eax, eax
jle 0x41cb00
lea eax, [ebp - 0x1450]
push eax
mov edx, dword [ebp - 0x1454]
mov eax, 0x41d5d4
call fcn.004043b0
inc eax
push eax
mov eax, dword [ebp - 0x1454]
call fcn.004040d0
mov ecx, eax
mov eax, dword [ebp - 0x1454]
pop edx
call fcn.00404328
lea eax, [ebp - 0x1454]
push eax
mov edx, dword [ebp - 0x1454]
mov eax, 0x41d5d4
call fcn.004043b0
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x1454]
call fcn.00404328
jmp 0x41cb23
lea eax, [ebp - 0x1450]
call fcn.00403dfc
jmp 0x41cb23
lea eax, [ebp - 0x1454]
call fcn.00403dfc
lea eax, [ebp - 0x1450]
call fcn.00403dfc
mov edx, dword [ebp - 4]
mov eax, 0x41d5d4
call fcn.004043b0
test eax, eax
jle 0x41cb92
lea eax, [ebp - 0x149c]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x41d5d4
call fcn.004043b0
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.004040d0
mov ecx, eax
mov eax, dword [ebp - 4]
pop edx
call fcn.00404328
mov eax, dword [ebp - 0x149c]
call fcn.00410efc
mov word [ebp - 0x144c], ax
lea eax, [ebp - 4]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x41d5d4
call fcn.004043b0
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404328
jmp 0x41cbd5
mov eax, dword [ebp - 0x1460]
mov edx, 0x41d5e0
call fcn.00404214
jne 0x41cbaf
mov word [ebp - 0x144c], 0x15
jmp 0x41cbd5
mov eax, dword [ebp - 0x1460]
mov edx, 0x41d5ec
call fcn.00404214
jne 0x41cbcc
mov word [ebp - 0x144c], 0x1bb
jmp 0x41cbd5
mov word [ebp - 0x144c], 0x50
lea eax, [ebp - 0x145c]
mov edx, dword [ebp - 4]
call fcn.00403e94
cmp dword [ebp - 4], 0
je 0x41d4e4
mov dword [ebp - 0x34], 1
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp - 0x1460]
mov edx, 0x41d5ec
call fcn.00404214
jne 0x41cc43
push 0x41d588
push dword [ebp - 0x145c]
push 0x41d588
lea eax, [ebp - 0x14a0]
mov edx, 3
call fcn.00404190
mov eax, dword [ebp - 0x14a0]
mov edx, dword [0x4779c0]
call fcn.004043b0
test eax, eax
jle 0x41cc43
mov byte [ebp - 0x1d], 1
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x1464]
call fcn.00403e94
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 1
push 0
lea eax, [ebp - 0x28]
push eax
call sub.wininet.dll_InternetGetConnectedState
mov eax, dword [ebp - 0x28]
and eax, 0x20
cmp eax, 0x20
jne 0x41cc82
push 8
lea eax, [ebp - 0x3c]
push eax
push 0x32
push 0
call sub.wininet.dll_InternetSetOptionA
cmp dword [0x4778dc], 0
jbe 0x41cc9b
push 4
push 0x4778dc
push 0x49
push 0
call sub.wininet.dll_InternetSetOptionA
mov byte [ebp - 0x19], 0
call fcn.00409280
mov ebx, eax
mov byte [ebp - 0x1a], 1
test esi, esi
je 0x41ccb8
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00411324
xor eax, eax
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x44], eax
push 0
push 0
mov eax, dword [ebp + 0xc]
call fcn.004042c8
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [0x4778cc]
call fcn.004042c8
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41ccf9
mov eax, dword [ebp + 8]
call fcn.00403dfc
jmp 0x41d4e4
fld qword [0x4778c0]
fcomp dword [0x41d5f4]
fnstsw ax
sahf
jb 0x41cda6
mov eax, dword [ebp - 0x1460]
mov edx, 0x41d600
call fcn.00404214
je 0x41cd32
mov eax, dword [ebp - 0x1460]
mov edx, 0x41d5ec
call fcn.00404214
jne 0x41cda6
mov edx, dword [ebp - 0xc]
mov eax, 0x41d610
call fcn.004043b0
test eax, eax
jg 0x41cd8e
push 0x41d610
lea edx, [ebp - 0x14a4]
mov eax, 0x41d62c
call fcn.00410f48
push dword [ebp - 0x14a4]
lea eax, [ebp - 0x14a8]
push eax
cmp dword [ebp - 0xc], 0
setne cl
xor edx, edx
mov eax, 0x41d644
call fcn.00406cc4
push dword [ebp - 0x14a8]
push dword [ebp - 0xc]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404190
mov dword [ebp - 0x28], 1
push 4
lea eax, [ebp - 0x28]
push eax
push 0x41
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetOptionA
xor eax, eax
mov dword [ebp - 0x14], eax
xor edi, edi
imul eax, dword [ebp + 0x14], 0x3e8
mov dword [ebp - 0x28], eax
push 4
lea eax, [ebp - 0x28]
push eax
push 6
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetOptionA
mov dword [ebp - 0x28], 0xac400100
cmp byte [0x4778c9], 0
jne 0x41cddf
or dword [ebp - 0x28], 0x80000
mov eax, dword [ebp - 0x1460]
mov edx, 0x41d5ec
call fcn.00404214
jne 0x41ce18
or dword [ebp - 0x28], 0x800000
cmp byte [ebp - 0x1d], 0
je 0x41ce18
mov eax, dword [ebp - 0x28]
or eax, 0x4000
or eax, 0x8000
or eax, 0x1000
or eax, 0x2000
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov edx, 0x41d650
call fcn.00404214
jne 0x41ce41
lea eax, [ebp - 8]
mov edx, 0x41d5a4
call fcn.00403e94
or dword [ebp - 0x28], 0x200000
mov byte [ebp - 0x1b], 1
jmp 0x41ce45
mov byte [ebp - 0x1b], 0
mov eax, dword [ebp - 8]
mov edx, 0x41d660
call fcn.00404214
jne 0x41ce6e
lea eax, [ebp - 8]
mov edx, 0x41d5a4
call fcn.00403e94
or dword [ebp - 0x28], 0x200000
mov byte [ebp - 0x1c], 1
jmp 0x41ce72
mov byte [ebp - 0x1c], 0
mov eax, dword [ebp - 8]
mov edx, 0x41d5a4
call fcn.00404214
jne 0x41ce91
cmp dword [ebp + 0x18], 0
jne 0x41ce91
cmp byte [ebp - 0x1d], 0
je 0x41cfa5
push 1
push 0
push 3
mov eax, dword [ebp - 0x1450]
call fcn.0041c694
push eax
mov eax, dword [ebp - 0x1454]
call fcn.0041c694
push eax
mov ax, word [ebp - 0x144c]
push eax
mov eax, dword [ebp - 0x145c]
call fcn.004042c8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41cee2
mov eax, dword [ebp + 8]
call fcn.00403dfc
jmp 0x41d4e4
push 1
mov eax, dword [ebp - 0x28]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x1458]
call fcn.004042c8
push eax
mov eax, dword [ebp - 8]
call fcn.004042c8
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov edi, eax
test edi, edi
jne 0x41cf1f
mov eax, dword [ebp + 8]
call fcn.00403dfc
jmp 0x41d4e4
cmp byte [ebp - 0x1d], 0
je 0x41cf4c
mov eax, dword [ebp - 0x1460]
mov edx, 0x41d5ec
call fcn.00404214
jne 0x41cf4c
mov dword [ebp - 0x28], pe_nt_image_headers32
push 4
lea eax, [ebp - 0x28]
push eax
push 0x1f
push edi
call sub.wininet.dll_InternetSetOptionA
cmp dword [ebp + 0x18], 0
je 0x41cfa5
push dword [ebp - 0xc]
lea eax, [ebp - 0x14ac]
push eax
cmp dword [ebp - 0xc], 0
setne cl
xor edx, edx
mov eax, 0x41d644
call fcn.00406cc4
push dword [ebp - 0x14ac]
push 0x41d670
push 0x41d688
mov eax, dword [ebp + 0x18]
call fcn.004040d0
lea edx, [ebp - 0x14b0]
call fcn.00410e94
push dword [ebp - 0x14b0]
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.00404190
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x14], 0
jne 0x41cfe1
push 0
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004040d0
push eax
mov eax, dword [ebp - 0xc]
call fcn.0041c694
push eax
mov eax, dword [ebp - 0x1468]
call fcn.004042c8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov edi, eax
jmp 0x41d00e
mov eax, dword [ebp + 0x18]
call fcn.004040d0
push eax
mov eax, dword [ebp + 0x18]
call fcn.0041c694
push eax
mov eax, dword [ebp - 0xc]
call fcn.004040d0
push eax
mov eax, dword [ebp - 0xc]
call fcn.0041c694
push eax
push edi
call sub.wininet.dll_HttpSendRequestA
mov dword [ebp - 0x24], eax
call fcn.00405a98
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x2f05
je 0x41d043
cmp dword [ebp - 0x30], 0x2f06
je 0x41d043
cmp dword [ebp - 0x30], 0x2f07
je 0x41d043
cmp dword [ebp - 0x30], 0x2f08
je 0x41d043
cmp dword [ebp - 0x30], 0x2f0d
jne 0x41d072
cmp byte [ebp - 0x1d], 0
jne 0x41d072
mov byte [ebp - 0x1d], 1
push dword [0x4779c0]
push dword [ebp - 0x145c]
push 0x41d588
mov eax, 0x4779c0
mov edx, 3
call fcn.00404190
jmp 0x41cc43
cmp dword [ebp - 0x14], 0
je 0x41d08b
cmp dword [ebp - 0x24], 0
jne 0x41d08b
mov eax, dword [ebp + 8]
call fcn.00403dfc
jmp 0x41d4e4
cmp byte [0x4778c8], 0
je 0x41d0b9
test esi, esi
jne 0x41d0b9
lea eax, [ebp - 0x18]
push eax
push 7
mov eax, dword [ebp - 0x30]
push eax
push edi
call fcn.00405ef8
push eax
call sub.wininet.dll_InternetErrorDlg
cmp eax, 0x2f00
je 0x41cfa5
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0x14
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1448]
push eax
push 0x13
push edi
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x41d11e
lea eax, [ebp - 0x14b4]
push eax
lea eax, [ebp - 0x14b8]
lea edx, [ebp - 0x1448]
mov ecx, 0x1000
call fcn.00403eec
mov eax, dword [ebp - 0x14b8]
mov ecx, dword [ebp - 0x2c]
mov edx, 1
call fcn.00404328
mov eax, dword [ebp - 0x14b4]
call fcn.00410efc
mov dword [ebp - 0x28], eax
test esi, esi
je 0x41d13e
cmp dword [ebp - 0x28], 0
je 0x41d13e
cmp dword [ebp - 0x28], 0xc8
je 0x41d13e
cmp dword [ebp - 0x28], 0xce
jne 0x41d438
cmp byte [ebp - 0x1b], 0
jne 0x41d14a
cmp byte [ebp - 0x1c], 0
je 0x41d1a1
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0x1000
lea eax, [ebp - 0x1448]
xor ecx, ecx
mov edx, 0x1000
call fcn.00402d9c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1448]
push eax
push 0x16
push edi
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x41d1a1
lea edx, [ebp - 0x1448]
mov ecx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.0041132c
mov byte [ebp - 0x19], 1
cmp byte [ebp - 0x1b], 0
jne 0x41d438
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0x14
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1448]
push eax
push 5
push edi
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x41d206
lea eax, [ebp - 0x14bc]
push eax
lea eax, [ebp - 0x14c0]
lea edx, [ebp - 0x1448]
mov ecx, 0x1000
call fcn.00403eec
mov eax, dword [ebp - 0x14c0]
mov ecx, dword [ebp - 0x2c]
mov edx, 1
call fcn.00404328
mov eax, dword [ebp - 0x14bc]
call fcn.00410efc
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x1478], 0
jbe 0x41d24d
push 5
mov eax, dword [ebp - 0x1478]
push eax
call fcn.00406120
push 0
push 0
push 0x402
mov eax, dword [ebp - 0x1478]
push eax
call fcn.00406088
push 0
push 0
push 0x407
mov eax, dword [ebp - 0x1478]
push eax
call fcn.00406088
mov dword [ebp - 0x1470], eax
mov dword [ebp - 0x2c], 0x400
lea eax, [ebp - 0x2c]
push eax
push 0x400
lea eax, [ebp - 0x448]
push eax
push edi
call sub.wininet.dll_InternetReadFile
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x41d438
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x44], eax
lea edx, [ebp - 0x448]
mov ecx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.0041132c
cmp dword [ebp - 0x1478], 0
jbe 0x41d358
cmp dword [ebp - 0x40], 0
jbe 0x41d358
mov edx, dword [ebp - 0x1470]
mov eax, 0x14
call fcn.00418ad4
imul dword [ebp - 0x44]
mov dword [ebp - 0x14c8], eax
xor eax, eax
mov dword [ebp - 0x14c4], eax
fild qword [ebp - 0x14c8]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x14d0], eax
xor eax, eax
mov dword [ebp - 0x14cc], eax
fild qword [ebp - 0x14d0]
fdivp st(1)
call fcn.004027b0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x146c]
cmp eax, dword [ebp - 0x28]
jae 0x41d358
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x146c], eax
push 0
mov edx, dword [ebp - 0x1470]
mov eax, 0x14
call fcn.00418ad4
mov dword [ebp - 0x14d4], eax
fild dword [ebp - 0x14d4]
mov eax, dword [ebp - 0x1470]
imul dword [ebp - 0x146c]
mov dword [ebp - 0x14c8], eax
xor eax, eax
mov dword [ebp - 0x14c4], eax
fild qword [ebp - 0x14c8]
fdivrp st(1)
call fcn.004027b0
push eax
push 0x402
mov eax, dword [ebp - 0x1478]
push eax
call fcn.00406088
mov eax, dword [ebp - 0x1474]
test eax, eax
je 0x41d367
call fcn.00413024
mov byte [ebp - 0x19], 1
test esi, esi
je 0x41d3d2
mov eax, ebx
call fcn.00408f68
cmp eax, dword [ebp - 0x48]
jae 0x41d381
cmp dword [ebp - 0x2c], 0
jne 0x41d3d2
mov eax, ebx
call fcn.00411320
push eax
mov eax, ebx
call fcn.00408f68
pop edx
cmp edx, eax
je 0x41d3a5
mov eax, ebx
call fcn.00408f68
mov edx, eax
mov eax, ebx
call fcn.00411324
xor edx, edx
mov eax, ebx
call fcn.00408f74
mov edx, ebx
mov eax, esi
call fcn.00410414
cmp dword [ebp - 0x2c], 0
jne 0x41d3c1
xor ebx, ebx
jmp 0x41d3d2
call fcn.00409280
mov ebx, eax
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00411324
cmp byte [ebp - 0x1a], 0
je 0x41d42e
test esi, esi
jne 0x41d42e
mov eax, ebx
call fcn.00411320
cmp eax, dword [0x4779c4]
jbe 0x41d42e
cmp dword [ebp - 0x147c], 0
je 0x41d42e
mov eax, ebx
call fcn.00411320
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x147c]
mov eax, ebx
call fcn.004090d8
mov eax, ebx
call fcn.004102f8
mov byte [ebp - 0x1a], 0
mov eax, dword [ebp - 0x147c]
call fcn.00409228
mov ebx, eax
mov cl, 2
xor edx, edx
mov eax, ebx
call fcn.00411330
cmp dword [ebp - 0x2c], 0
jne 0x41d24d
push edi
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp byte [ebp - 0x19], 0
je 0x41d4a0
cmp byte [ebp - 0x1a], 0
je 0x41d4a0
test esi, esi
jne 0x41d4a0
cmp dword [ebp - 0x147c], 0
je 0x41d482
mov eax, ebx
call fcn.00411320
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x147c]
mov eax, ebx
call fcn.004090d8
jmp 0x41d4a8
xor edx, edx
mov eax, ebx
call fcn.00408f74
mov eax, ebx
call fcn.00411320
mov edx, eax
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.004090a8
jmp 0x41d4a8
mov eax, dword [ebp + 8]
call fcn.00403dfc
mov eax, ebx
call fcn.004102f8
test esi, esi
jne 0x41d4d2
cmp dword [ebp - 0x40], 0x200
jbe 0x41d4d2
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x40]
je 0x41d4d2
cmp dword [ebp - 0x34], 3
jae 0x41d4d2
inc dword [ebp - 0x34]
jmp 0x41cc43
mov eax, dword [ebp - 0x1478]
test eax, eax
jbe 0x41d4e4
push 0
push eax
call fcn.00406120
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d548
lea eax, [ebp - 0x14c0]
mov edx, 0x11
call fcn.00403e20
lea eax, [ebp - 0x147c]
mov edx, dword [0x41c67c]
call fcn.00404948
lea eax, [ebp - 0x1468]
mov edx, dword [0x41c634]
call fcn.00404948
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403e20
lea eax, [ebp + 0xc]
call fcn.00403dfc
lea eax, [ebp + 0x18]
call fcn.00403dfc
ret