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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10122ec4
mov eax, dword fs:[0]
push eax
mov eax, 0x116c
mov dword fs:[0], esp
call fcn.10074560
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], 0x10159978
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.10073081
mov edi, eax
add esp, 4
mov dword [ebp - 0x70], edi
mov ecx, dword [0x10159978]
test ecx, ecx
je 0x100fd612
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x10155e84
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.1001cdf0
mov ebx, dword [ebp - 0x18]
mov eax, dword [0x10159978]
or ebx, 2
test eax, eax
je 0x100fd639
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.10113690
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.1003a830
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 0x100fd6ce
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x100fd6ce
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 0x100fd6ce
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 0x100fd724
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x100fd724
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 0x100fd724
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 0x100fd769
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fd75f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fdd63
push edx
push ecx
call fcn.1007306e
add esp, 8
test ebx, ebx
je 0x100fdce6
cmp dword [ebx], 0
jne 0x100fd786
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x100fd786
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 0x100fdcbc
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 0x100fd7d8
cmp edi, 0x12e
je 0x100fd7d8
cmp edi, 0x12d
je 0x100fd7d8
cmp edi, 0x133
jne 0x100fdcbc
push 0x1048
lea eax, [ebp - 0x1174]
mov dword [ebp - 0x44], 0x1048
push 0
push eax
mov dword [ebp - 0x40], 0
call fcn.10077450
add esp, 0xc
cmp edi, 0x12e
je 0x100fd814
cmp edi, 0x12d
je 0x100fd814
cmp edi, 0x133
jne 0x100fd832
mov eax, dword [ebx]
test eax, eax
je 0x100fd832
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 0x100fd877
lea ecx, [ebp - 0x1174]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100fd850
sub ecx, edx
lea eax, [ebp - 0x1174]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.1001a860
jmp 0x100fd5d0
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x100fd884
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0x28], eax
mov edi, dword [ebp + 8]
cmp dword [edi + 0x10], 0
jne 0x100fdaa8
push 0x1048
lea eax, [ebp - 0x1174]
mov dword [ebp - 0x40], 0
push 0
push eax
mov dword [ebp - 0x44], 0x1048
call fcn.10077450
mov eax, dword [ebx]
add esp, 0xc
test eax, eax
je 0x100fd8d3
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 0x100fd8f0
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.100d57e0
mov byte [ebp - 4], 9
add esp, 4
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
cmp edx, 8
jb 0x100fd98e
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fd981
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fdd63
push edx
push ecx
call fcn.1007306e
mov eax, dword [ebp - 0x18]
add esp, 8
cmp eax, 0xffffffff
je 0x100fda6a
push eax
push 0x1013e36c
lea ecx, [ebp - 0x64]
call fcn.1001dbb0
mov ecx, eax
mov dword [ebp - 0x14], ecx
cmp ecx, 0xffffffff
je 0x100fda1e
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 0x100fda3a
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fda30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fdd68
jmp 0x100fda30
push 0xffffffffffffffff
push str.filename
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, dword [ebp - 0x18]
jmp 0x100fd9d7
push edx
push ecx
call fcn.1007306e
add esp, 8
mov edx, str.__t_n_
mov ecx, edi
call fcn.100d6670
mov edx, str.__t_n_
mov ecx, edi
call fcn.100d65b0
cmp dword [edi + 0x10], 0
je 0x100fda6a
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
je 0x100fda6a
mov edx, eax
mov ecx, edi
call fcn.100d58f0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x50]
cmp edx, 8
jb 0x100fdaa8
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fda9e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fdd68
push edx
push ecx
call fcn.1007306e
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x100fdc77
push ecx
lea ecx, [ebp - 0x12c]
call fcn.100ff900
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.100ff2b0
test al, al
je 0x100fdb5a
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x34]
call fcn.1001cdf0
push ecx
push 0x1013f09c
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xc
call fcn.1001da20
cmp eax, 0xffffffff
jne 0x100fdb28
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.1001cf90
jmp 0x100fdb4e
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 0x100fdb88
mov edx, eax
mov ecx, edi
call fcn.100d58f0
test al, al
jne 0x100fdb88
mov eax, dword [ebp + 0xc]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x100fdb7d
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.100ff7c0
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x100fdc77
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.100ef9e0
push 0x1013f0a0
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.100ef420
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 0x100fdc42
mov edx, eax
lea ecx, [ebp - 0x64]
call fcn.100d58f0
test al, al
jne 0x100fdc42
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x88]
call fcn.100e6290
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.100e8500
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.100ea420
add esp, 4
mov ecx, dword [ebp - 0x6c]
mov byte [ebp - 4], 0x10
call fcn.100e7c50
mov edi, dword [ebp + 0x14]
lea edx, [ebp - 0xc0]
push 0
push edi
push 0
mov ecx, ebx
call fcn.100f9dc0
add esp, 0xc
lea ecx, [ebp - 0xc0]
mov bl, al
call fcn.1001a0c0
jmp 0x100fdcf8
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x100fdcd9
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], edi
test edi, edi
jne 0x100fdcdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x1c]
mov dword [ebx + 0x2c], eax
test edi, edi
je 0x100fdcf6
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100fdcf6
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x100fdcf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x2c], eax
xor bl, bl
mov edi, dword [ebp - 0x48]
test edi, edi
je 0x100fdd2b
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x100fdd2b
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 0x100fdd2b
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax]
lea ecx, [ebp - 0xa0]
call fcn.1001a0c0
test esi, esi
je 0x100fdd50
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.10080da8
call fcn.10080da8
int3