Function at 0x4d38d1
Capabilities:
Initialize winhttp library

Disassembly:
push 0x128
mov eax, 0x5c83f4
call fcn.00573eb3
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, ebx
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp + 0x20]
push 7
mov dword [ebp - 0xf8], eax
xor eax, eax
pop ecx
mov dword [ebp - 0x108], esi
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], ebx
mov word [ebp - 0x74], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], ebx
mov word [ebp - 0x5c], ax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x44], ax
mov ecx, 0x613d50
mov dword [ebp - 0xdc], ebx
call fcn.0040ff3e
movzx ecx, byte [ebp + 0x1c]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0xfc], ecx
test cl, cl
jne 0x4d3976
call fcn.004d38b0
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 3
test esi, esi
je 0x4d399b
push esi
lea ecx, [ebp - 0x2c]
call fcn.00409613
push eax
lea ecx, [ebp - 0x74]
call fcn.0040959d
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040968b
mov eax, dword [ebp - 0x104]
test eax, eax
je 0x4d39c2
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409613
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040959d
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040968b
mov eax, dword [ebp - 0x100]
test eax, eax
je 0x4d39e9
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409613
push eax
lea ecx, [ebp - 0x44]
call fcn.0040959d
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040968b
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xf4]
push eax
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0xe8]
call fcn.004d43e9
push ecx
push 0x6d0e88
lea ecx, [ebp - 0x134]
call fcn.00410ef7
mov byte [ebp - 4], 5
lea eax, [ebp - 0x124]
push dword [ebp - 0xe8]
mov ecx, 0x6d0e78
push eax
call fcn.004d3fb6
cmp byte [ebp - 0xfc], 0
mov esi, dword [eax]
jne 0x4d3ac7
cmp esi, dword [0x6d0e78]
je 0x4d3ac7
call fcn.004d38b0
mov dword [ebp - 0xdc], eax
lea edx, [ebp - 0x74]
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x120]
call fcn.004d43e9
push eax
lea ecx, [ebp - 0xe8]
call fcn.0041c750
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x11c]
test ecx, ecx
je 0x4d3aa8
call fcn.00411ee7
mov byte [ebp - 4], 5
lea eax, [ebp - 0x128]
push dword [ebp - 0xe8]
mov ecx, 0x6d0e78
push eax
call fcn.004d3fb6
mov esi, dword [eax]
jmp 0x4d3a4b
lea ecx, [ebp - 0x134]
call fcn.00410ed4
mov eax, 0x6d0e78
cmp esi, dword [eax]
jne 0x4d3ca6
push ecx
add eax, 0xc
lea ecx, [ebp - 0x20]
push eax
call fcn.00410f49
mov byte [ebp - 4], 7
lea eax, [ebp - 0x11c]
push dword [ebp - 0xe8]
mov ecx, 0x6d0e78
push eax
call fcn.004d3fb6
cmp byte [ebp - 0xfc], 0
mov esi, dword [eax]
jne 0x4d3b9a
mov eax, 0x6d0e78
cmp esi, dword [eax]
je 0x4d3ba7
call fcn.004d38b0
mov dword [ebp - 0xdc], eax
lea edx, [ebp - 0x74]
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x114]
call fcn.004d43e9
push eax
lea ecx, [ebp - 0xe8]
call fcn.0041c750
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x110]
test ecx, ecx
je 0x4d3b78
call fcn.00411ee7
mov byte [ebp - 4], 7
lea eax, [ebp - 0xfc]
push dword [ebp - 0xe8]
mov ecx, 0x6d0e78
push eax
call fcn.004d3fb6
mov esi, dword [eax]
jmp 0x4d3b16
mov eax, 0x6d0e78
cmp esi, dword [eax]
jne 0x4d3c95
push dword [ebp - 0xf0]
mov eax, dword [ebp - 0x100]
push eax
mov eax, dword [ebp - 0x104]
push eax
push dword [ebp - 0xf4]
push dword [ebp - 0x108]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
lea edx, [ebp - 0xe0]
mov dword [ebp - 0xe0], eax
lea ecx, [ebp - 0x10c]
call fcn.004d4475
mov byte [ebp - 4], 9
mov edi, dword [ebp - 0xe0]
test edi, edi
je 0x4d3c80
cmp dword [ebp - 0x10c], 0
sete al
test al, al
sete al
test al, al
je 0x4d3c79
push dword [ebp - 0xe8]
lea ecx, [ebp - 0xd8]
call fcn.004d3f50
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x84]
call fcn.00410e05
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0xa
push eax
call fcn.004d4541
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x114]
push eax
call fcn.004d4568
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x80]
test ecx, ecx
je 0x4d3c5e
call fcn.00411ee7
push ebx
push 1
lea ecx, [ebp - 0x9c]
call fcn.0040968b
lea ecx, [ebp - 0xd8]
call fcn.0040c0db
jmp 0x4d3c82
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, ebx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x108]
test ecx, ecx
je 0x4d3c95
call fcn.00411ee7
lea ecx, [ebp - 0x20]
call fcn.00410f22
mov eax, 0x6d0e78
cmp esi, dword [eax]
je 0x4d3cb6
mov eax, dword [esi + 0x64]
mov edi, dword [eax + 4]
lea ecx, [eax + 8]
xor eax, eax
inc eax
lock xadd dword [ecx], eax
test edi, edi
je 0x4d3cfe
mov ecx, dword [ebp - 0xe4]
mov edx, ecx
mov esi, dword [ebp - 0xe8]
test ecx, ecx
je 0x4d3cd6
lock inc dword [ecx + 4]
mov ecx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0xf8]
mov ebx, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
mov dword [ebx + 4], edx
mov edx, ebx
mov dword [edx], esi
mov byte [ebp - 4], 0xe
push 0
pop ebx
test eax, eax
je 0x4d3d04
mov ecx, eax
call fcn.00411ee7
mov ecx, dword [ebp - 0xe4]
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x4d3d11
call fcn.00411ee7
mov eax, ebx
jmp 0x4d3d63
test eax, eax
jns 0x4d3dca
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xec]
mov dword [ebp - 0x114], 0x646500
push eax
push str._CWinHttpSessionManager__WinHttpOpen
push ecx
mov ecx, 0x7e325d
mov dword [ebp - 0x118], 0x647bdc
mov dword [ebp - 0xe8], str.Message
mov dword [ebp - 0xe4], str.Exception_was_thrown
mov dword [ebp - 0xec], 0x647bf4
call fcn.004d44d1
test edi, edi
je 0x4d3dca
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, ebx
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.0040968b
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.0040968b
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.0040968b
mov eax, edi
call fcn.00573e00
ret 0x1c