Function at 0x403b40
Capabilities:
Prepare http request
Set http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43c79b
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x449f6c]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push esi
push edi
mov eax, dword [0x449f6c]
xor eax, esp
push eax
lea eax, [esp + 0x2e8]
mov dword fs:[0], eax
push 0x4420bc
push str.POST
mov edi, ecx
call fcn.00423bd7
add esp, 8
test eax, eax
jne 0x403ba1
push 3
push 0x4420bc
jmp 0x403bc2
push str.POST
push str.POST
call fcn.00423bd7
add esp, 8
test eax, eax
jne 0x4043f9
push 4
push str.POST
lea ecx, [edi + 0x138]
call fcn.0040e9b0
xor eax, eax
mov ebx, 2
cmp dword [edi + 0x100], ebx
lea ecx, [edi + 0xac]
setne al
push ecx
lea ecx, [edi + 0x90]
lea esi, [esp + 0xc4]
dec eax
and eax, 0x800000
mov dword [esp + 0x48], eax
call fcn.0040b4e0
add esp, 4
mov dword [esp + 0x2f0], 1
mov eax, dword [edi + 0x28]
xor esi, esi
add eax, 0xc
mov dword [esp + 0x38], esi
cmp eax, esi
je 0x403c29
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x2f0], bl
mov dword [esp + 0x3c], esi
mov esi, dword [edi + 0x28]
mov ecx, dword [esi + 0x38]
sub ecx, dword [esi + 0x34]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40427b
mov ecx, dword [esp + 0xc4]
mov ebx, 8
cmp dword [esp + 0xd8], ebx
jae 0x403c72
lea ecx, [esp + 0xc4]
cmp dword [edi + 0x150], ebx
jb 0x403c82
mov eax, dword [edi + 0x13c]
jmp 0x403c88
lea eax, [edi + 0x13c]
mov edx, dword [esp + 0x44]
mov esi, dword [esi + 0x24]
push edx
push 0
push 0
push 0
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [esp + 0x40], esi
mov byte [esp + 0x2f0], 3
test esi, esi
je 0x404071
cmp dword [edi + 0xdc], 0
je 0x403d01
cmp dword [edi + 0xfc], ebx
jb 0x403cce
mov ecx, dword [edi + 0xe8]
jmp 0x403cd4
lea ecx, [edi + 0xe8]
cmp dword [edi + 0xe0], ebx
jb 0x403ce4
mov eax, dword [edi + 0xcc]
jmp 0x403cea
lea eax, [edi + 0xcc]
push 0
push ecx
push eax
push 1
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
je 0x4040c8
cmp dword [edi + 0x25c], 0
je 0x403e07
cmp dword [edi + 0x1d8], 0
je 0x403f0c
push 0x13
xor eax, eax
push str.If_Modified_Since:
lea ecx, [esp + 0xac]
mov dword [esp + 0xc4], 7
mov dword [esp + 0xc0], 0
mov word [esp + 0xb0], ax
call fcn.0040e9b0
push 0x44217c
lea ecx, [edi + 0x1c4]
push ecx
lea edx, [esp + 0x1c]
mov bl, 6
push edx
mov byte [esp + 0x2fc], bl
call fcn.0040b590
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], 7
call fcn.00409be0
mov byte [esp + 0x2f0], bl
cmp dword [esp + 0x2c], 8
jb 0x403da4
mov eax, dword [esp + 0x18]
push eax
call fcn.00423e76
add esp, 4
mov eax, dword [esp + 0xa8]
mov ebx, 8
cmp dword [esp + 0xbc], ebx
jae 0x403dc0
lea eax, [esp + 0xa8]
mov ecx, dword [esp + 0xb8]
push 0xa0000000
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x40411f
mov byte [esp + 0x2f0], 3
cmp dword [esp + 0xbc], ebx
jb 0x403f0c
mov edx, dword [esp + 0xa8]
push edx
call fcn.00423e76
add esp, 4
jmp 0x403f0c
mov eax, dword [edi + 0x218]
mov ecx, dword [edi + 0x21c]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x403f0c
push ecx
push eax
push str.Range:_bytes_I64u__r_n
lea eax, [esp + 0xe8]
push 0x100
push eax
call fcn.00424501
add esp, 0x14
push 0xa0000000
push 0xffffffffffffffff
lea ecx, [esp + 0xe4]
push ecx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x404167
cmp dword [edi + 0x1d8], 0
je 0x403f0c
push str.Unless_Modified_Since:
lea ecx, [esp + 0xa8]
call fcn.0040e660
push 0x44217c
lea edx, [edi + 0x1c4]
push edx
lea eax, [esp + 0x1c]
mov bl, 0xa
push eax
mov byte [esp + 0x2fc], bl
call fcn.0040b590
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], 0xb
call fcn.00409be0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2f0], bl
call fcn.0040e6a0
cmp dword [esp + 0xbc], 8
mov eax, dword [esp + 0xa8]
jae 0x403edb
lea eax, [esp + 0xa8]
mov ecx, dword [esp + 0xb8]
push 0xa0000000
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x4041af
lea ecx, [esp + 0xa4]
mov byte [esp + 0x2f0], 3
call fcn.0040e6a0
mov ecx, dword [edi + 0x168]
xor ebx, ebx
cmp ecx, ebx
je 0x403f45
cmp dword [edi + 0x16c], 8
jb 0x403f29
mov eax, dword [edi + 0x158]
jmp 0x403f2f
lea eax, [edi + 0x158]
push 0x1000000
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x4041e0
cmp dword [edi + 0x184], ebx
je 0x403ff5
push 8
xor edx, edx
push str.Cookie:
lea ecx, [esp + 0xac]
mov dword [esp + 0xc4], 7
mov dword [esp + 0xc0], ebx
mov word [esp + 0xb0], dx
call fcn.0040e9b0
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0x170]
push eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], 0xe
call fcn.00409be0
cmp dword [esp + 0xbc], 8
mov eax, dword [esp + 0xa8]
jae 0x403fb6
lea eax, [esp + 0xa8]
mov ecx, dword [esp + 0xb8]
push 0x1000000
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x404224
mov byte [esp + 0x2f0], 3
cmp dword [esp + 0xbc], 8
jb 0x403ff5
mov edx, dword [esp + 0xa8]
push edx
call fcn.00423e76
add esp, 4
mov eax, dword [edi + 0x28]
lea ecx, [eax + 0x28]
lea ebx, [edi + 0x54]
push esi
mov eax, 0x2ee2
call fcn.00402b20
test eax, eax
jne 0x40426c
mov dword [esp + 0x40], eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x74]
push ecx
lea ebx, [edi + 0x2c]
mov dword [esp + 0x38], esi
call fcn.00407bd0
mov eax, dword [edi + 0x48]
mov byte [esp + 0x2f0], 2
cmp dword [edi + 0x4c], eax
jbe 0x40427b
mov esi, dword [edi + 0x28]
mov ecx, dword [esi + 0x38]
sub ecx, dword [esi + 0x34]
mov ebx, dword [esp + 0x3c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
mov dword [esp + 0x3c], ebx
cmp ebx, eax
jb 0x403c56
jmp 0x40427b
push 0x12
push 0x442128
lea ecx, [esp + 0xac]
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], 0
mov byte [esp + 0xb0], 0
call fcn.0040ec00
lea ecx, [esp + 0xa4]
push ecx
lea edi, [esp + 0x4c]
mov byte [esp + 0x2f4], 4
call fcn.00401690
push 0x444ba4
mov edx, edi
push edx
call fcn.004257eb
push 0x15
push 0x44213c
lea ecx, [esp + 0xac]
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], 0
mov byte [esp + 0xb0], 0
call fcn.0040ec00
lea eax, [esp + 0xa4]
push eax
lea edi, [esp + 0x4c]
mov byte [esp + 0x2f4], 5
call fcn.00401690
push 0x444ba4
mov ecx, edi
push ecx
call fcn.004257eb
push 0x18
push 0x442184
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.0040ec00
lea edx, [esp + 0x14]
push edx
lea edi, [esp + 0x4c]
mov byte [esp + 0x2f4], 8
call fcn.00401690
push 0x444ba4
mov eax, edi
push eax
call fcn.004257eb
push 0x18
push 0x442184
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.0040ec00
lea ecx, [esp + 0x14]
push ecx
lea edi, [esp + 0x4c]
mov byte [esp + 0x2f4], 9
call fcn.00401690
push 0x444ba4
mov edx, edi
push edx
call fcn.004257eb
push 0x442184
lea ecx, [esp + 0x18]
call fcn.0040ece0
lea eax, [esp + 0x14]
push eax
lea edi, [esp + 0x4c]
mov byte [esp + 0x2f4], 0xc
call fcn.00401690
push 0x444ba4
mov ecx, edi
push ecx
call fcn.004257eb
push 0x18
push 0x442184
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 0
call fcn.0040ec00
lea edx, [esp + 0x14]
push edx
lea edi, [esp + 0x4c]
mov byte [esp + 0x2f4], 0xd
call fcn.00401690
push 0x444ba4
mov eax, edi
push eax
call fcn.004257eb
push 0x18
mov ebx, 0xf
push 0x442184
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.0040ec00
lea ecx, [esp + 0x14]
push ecx
lea edi, [esp + 0x4c]
mov byte [esp + 0x2f4], bl
call fcn.00401690
push 0x444ba4
mov edx, edi
push edx
call fcn.004257eb
push esi
mov byte [esp + 0x2f4], 2
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [edi + 0x44]
mov esi, dword [eax]
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x30], eax
jmp 0x404290
mov ecx, dword [esp + 0x30]
mov ebx, dword [edi + 0x44]
mov eax, dword [edi + 0x2c]
test ecx, ecx
je 0x4042a2
cmp ecx, eax
je 0x4042a7
call fcn.004243a2
cmp esi, ebx
je 0x4043aa
lea ecx, [edi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, edi
call fcn.004057a0
cmp dword [esp + 0x30], 0
mov ebx, eax
jne 0x40430b
call fcn.004243a2
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x4042da
call fcn.004243a2
mov eax, dword [esi + 0xc]
push edi
push ebx
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x40435f
cmp dword [esp + 0x30], 0
jne 0x4042fe
call fcn.004243a2
cmp byte [esi + 0x11], 0
je 0x404313
call fcn.004243a2
jmp 0x404290
mov edx, dword [esp + 0x30]
mov eax, dword [edx]
jmp 0x4042d0
mov eax, dword [esi + 8]
cmp byte [eax + 0x11], 0
jne 0x40433f
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x11], 0
jne 0x404290
lea ebx, [ebx]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x11], 0
je 0x404330
jmp 0x404290
mov eax, dword [esi + 4]
cmp byte [eax + 0x11], 0
jne 0x404358
cmp esi, dword [eax + 8]
jne 0x404358
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x11], 0
je 0x404348
mov esi, eax
jmp 0x404290
push 0x12
push 0x442210
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.0040ec00
lea ecx, [esp + 0x14]
push ecx
lea edi, [esp + 0x80]
mov byte [esp + 0x2f4], 0x10
call fcn.00401690
push 0x444ba4
mov edx, edi
push edx
call fcn.004257eb
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4043b9
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0xd8], 8
jb 0x4043d3
mov eax, dword [esp + 0xc4]
push eax
call fcn.00423e76
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.004239c1
mov esp, ebp
pop ebp
ret
push 0xb
xor ebx, ebx
push str.verb_error.
lea ecx, [esp + 0xac]
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
call fcn.0040ec00
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2f4], ebx
call fcn.0040ed20
push 0x444c90
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x50], vtable.std::invalid_argument.0
call fcn.004257eb
int3