Function at 0x100fa480
Capabilities:
Check http status code
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011f4d4
mov eax, dword fs:[0]
push eax
mov eax, 0x116c
mov dword fs:[0], esp
call fcn.100718b0
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x6c], edx
push edi
push eax
push eax
push eax
push eax
push eax
mov ebx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0xa4], esi
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push eax
push 2
push esi
mov dword [ebp - 0x14], 0x7d0
call edi
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 3
push eax
push 3
push esi
call edi
push ebx
lea ecx, [ebp - 0xa0]
call fcn.1001cdf0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0xa8], 0x101558c8
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
push 0x10
mov byte [ebp - 4], 3
call fcn.100703c6
mov edi, eax
add esp, 4
mov dword [ebp - 0x70], edi
mov ecx, dword [0x101558c8]
test ecx, ecx
je 0x100fa562
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x10151e84
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.1001cdf0
mov ebx, dword [ebp - 0x18]
mov eax, dword [0x101558c8]
or ebx, 2
test eax, eax
je 0x100fa589
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
or ebx, 1
lea eax, [ebp - 0xa0]
cmp dword [ebp - 0x20], 8
push 0x4200000
cmovae ecx, dword [ebp - 0x34]
cmp dword [ebp - 0x8c], 8
push ecx
cmovae eax, dword [ebp - 0xa0]
push ecx
push eax
push esi
mov ecx, edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.1010fd00
mov ebx, eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 0
push ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 8
call fcn.1003a500
mov edx, dword [ebp - 0x38]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov dword [eax], edx
mov edi, dword [ebp - 0x68]
test edi, edi
je 0x100fa61e
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x100fa61e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
cmp edx, 1
jne 0x100fa61e
mov eax, dword [edi]
mov ecx, edi
push edx
call dword [eax]
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call fcn.1001d2d0
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov ebx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x100fa674
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x100fa674
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
cmp edx, 1
jne 0x100fa674
mov eax, dword [edi]
mov ecx, edi
push edx
call dword [eax]
mov dword [ebp - 4], 3
and dword [ebp - 0x18], 0xfffffffe
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x100fa6b9
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fa6af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100facb3
push edx
push ecx
call fcn.100703b3
add esp, 8
test ebx, ebx
je 0x100fac36
cmp dword [ebx], 0
jne 0x100fa6d6
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x100fa6d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x2c], eax
xor edi, edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x1c], edi
mov eax, dword [ebx]
test eax, eax
je 0x100fac0c
push edi
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edi, dword [ebp - 0x1c]
cmp edi, 0xc8
je 0x100fa728
cmp edi, 0x12e
je 0x100fa728
cmp edi, 0x12d
je 0x100fa728
cmp edi, 0x133
jne 0x100fac0c
push 0x1048
lea eax, [ebp - 0x1174]
mov dword [ebp - 0x44], 0x1048
push 0
push eax
mov dword [ebp - 0x40], 0
call fcn.100747a0
add esp, 0xc
cmp edi, 0x12e
je 0x100fa764
cmp edi, 0x12d
je 0x100fa764
cmp edi, 0x133
jne 0x100fa782
mov eax, dword [ebx]
test eax, eax
je 0x100fa782
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x1174]
push ecx
push 0x21
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea eax, [ebp - 0x1174]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100fa7c7
lea ecx, [ebp - 0x1174]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100fa7a0
sub ecx, edx
lea eax, [ebp - 0x1174]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.1001a860
jmp 0x100fa520
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x100fa7d4
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0x28], eax
mov edi, dword [ebp + 8]
cmp dword [edi + 0x10], 0
jne 0x100fa9f8
push 0x1048
lea eax, [ebp - 0x1174]
mov dword [ebp - 0x40], 0
push 0
push eax
mov dword [ebp - 0x44], 0x1048
call fcn.100747a0
mov eax, dword [ebx]
add esp, 0xc
test eax, eax
je 0x100fa823
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x1174]
push ecx
push 0x2f
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x1174]
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100fa840
sub ecx, edx
lea eax, [ebp - 0x1174]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.1001a860
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x34]
push 9
xor eax, eax
mov dword [ebp - 0x24], 0
push str.filename
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
call fcn.1001a860
push 0
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x64]
call fcn.100d2b20
mov byte [ebp - 4], 9
add esp, 4
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
cmp edx, 8
jb 0x100fa8de
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fa8d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100facb3
push edx
push ecx
call fcn.100703b3
mov eax, dword [ebp - 0x18]
add esp, 8
cmp eax, 0xffffffff
je 0x100fa9ba
push eax
push 0x1013a33c
lea ecx, [ebp - 0x64]
call fcn.1001dbb0
mov ecx, eax
mov dword [ebp - 0x14], ecx
cmp ecx, 0xffffffff
je 0x100fa96e
push str.filename
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x18]
sub ecx, eax
push str.filename
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x64]
call fcn.1001d9d0
push eax
mov ecx, edi
call fcn.1001df20
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x100fa98a
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fa980
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100facb8
jmp 0x100fa980
push 0xffffffffffffffff
push str.filename
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, dword [ebp - 0x18]
jmp 0x100fa927
push edx
push ecx
call fcn.100703b3
add esp, 8
mov edx, str.__t_n_
mov ecx, edi
call fcn.100d39b0
mov edx, str.__t_n_
mov ecx, edi
call fcn.100d38f0
cmp dword [edi + 0x10], 0
je 0x100fa9ba
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
je 0x100fa9ba
mov edx, eax
mov ecx, edi
call fcn.100d2c30
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x50]
cmp edx, 8
jb 0x100fa9f8
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fa9ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100facb8
push edx
push ecx
call fcn.100703b3
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x100fabc7
push ecx
lea ecx, [ebp - 0x12c]
call fcn.100fc820
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 8
cmovae eax, dword [ebp - 0xa0]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.1001a4c0
lea ecx, [ebp - 0x12c]
call fcn.100fc1d0
test al, al
je 0x100faaaa
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x34]
call fcn.1001cdf0
push ecx
push 0x1013b06c
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xc
call fcn.1001da20
cmp eax, 0xffffffff
jne 0x100faa78
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.1001cf90
jmp 0x100faa9e
push 0xffffffffffffffff
inc eax
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.1001d9d0
push eax
mov ecx, edi
call fcn.1001df20
lea ecx, [ebp - 0x88]
call fcn.1001a0c0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call fcn.1001a0c0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
je 0x100faad8
mov edx, eax
mov ecx, edi
call fcn.100d2c30
test al, al
jne 0x100faad8
mov eax, dword [ebp + 0xc]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x100faacd
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.1001e7b0
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 2
call fcn.100fc6e0
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x100fabc7
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xe
call fcn.100ec870
push 0x1013b070
lea ecx, [ebp - 0x88]
call fcn.1001a4c0
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0xf
push eax
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x34]
call fcn.100ec2b0
add esp, 4
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x88]
call fcn.1001a0c0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
je 0x100fab92
mov edx, eax
lea ecx, [ebp - 0x64]
call fcn.100d2c30
test al, al
jne 0x100fab92
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x88]
call fcn.100e3600
add esp, 4
lea ecx, [ebp - 0x64]
push eax
call fcn.1001df20
lea ecx, [ebp - 0x88]
call fcn.1001a0c0
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x88]
call fcn.100e5870
push eax
mov ecx, edi
call fcn.1001df20
lea ecx, [ebp - 0x88]
call fcn.1001a0c0
lea ecx, [ebp - 0x64]
call fcn.1001a0c0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.1001a0c0
mov edx, dword [ebp - 0x6c]
lea ecx, [ebp - 0xc0]
push edi
call fcn.100e74f0
add esp, 4
mov ecx, dword [ebp - 0x6c]
mov byte [ebp - 4], 0x10
call fcn.100e4fc0
mov edi, dword [ebp + 0x14]
lea edx, [ebp - 0xc0]
push 0
push edi
push 0
mov ecx, ebx
call fcn.100f6d10
add esp, 0xc
lea ecx, [ebp - 0xc0]
mov bl, al
call fcn.1001a0c0
jmp 0x100fac48
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x100fac29
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], edi
test edi, edi
jne 0x100fac2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x1c]
mov dword [ebx + 0x2c], eax
test edi, edi
je 0x100fac46
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100fac46
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x100fac46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x2c], eax
xor bl, bl
mov edi, dword [ebp - 0x48]
test edi, edi
je 0x100fac7b
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x100fac7b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x100fac7b
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax]
lea ecx, [ebp - 0xa0]
call fcn.1001a0c0
test esi, esi
je 0x100faca0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1007e0fa
call fcn.1007e0fa
int3