Function at 0x10004740
Capabilities:
Access peb ldr_data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002e65f
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1005c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x48], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0
mov dword [edi], vtable.CUtilHTTPRequest.0
mov dword [edi + 4], 0
mov byte [edi + 0xc], 0
mov dword [edi + 8], vtable.CCallResult_class_CUtilHTTPRequest__struct_HTTPRequestCompleted_t_.0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x10], 0x835
mov eax, dword [ebp + 0x1c]
mov byte [ebp - 4], 1
push 0x14
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], eax
call fcn.1001920c
mov esi, eax
mov dword [ebp - 0x48], esi
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov byte [ebp - 4], 3
push 0x1c
mov dword [esi], vtable.CUtilHTTPResponse.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.1001920c
xorps xmm0, xmm0
add esp, 8
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax], vtable.CUtilHTTPPayload.0
movups xmmword [eax + 4], xmm0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44]
mov edx, ecx
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0xf
mov byte [eax + 4], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [edi + 0x30], esi
cmp dword [ecx + 0x14], 0xf
mov eax, dword [ecx + 0x10]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
jbe 0x1000486f
mov edx, dword [ecx]
mov dword [ebp - 0x48], edx
cmp eax, 0x7fffffff
ja 0x10004b1a
mov dword [ebp - 0x14], 0xf
cmp eax, 0xf
ja 0x10004895
mov dword [ebp - 0x18], eax
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x28], xmm0
jmp 0x10004920
mov esi, eax
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x100048ce
mov eax, 0x80000000
mov esi, 0x7fffffff
add eax, 0x23
push eax
call fcn.1001920c
add esp, 4
test eax, eax
je 0x10004b24
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
mov eax, dword [ebp - 0x4c]
jmp 0x10004906
mov ecx, 0x16
cmp esi, ecx
cmovb esi, ecx
lea ecx, [esi + 1]
cmp ecx, 0x1000
jb 0x100048f0
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x10004b1f
jmp 0x100048af
test ecx, ecx
je 0x10004904
push ecx
call fcn.1001920c
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x4c]
jmp 0x10004906
xor ecx, ecx
mov dword [ebp - 0x18], eax
inc eax
push eax
push dword [ebp - 0x48]
mov dword [ebp - 0x28], ecx
push ecx
mov dword [ebp - 0x14], esi
call fcn.1001c3a0
mov ecx, dword [ebp - 0x44]
add esp, 0xc
cmp byte [ebp + 0x14], 0
mov byte [ebp - 4], 4
je 0x10004982
mov eax, 0x1bb
cmp word [ebp + 0x10], ax
je 0x10004993
lea eax, [ebp + 0x10]
mov edx, ecx
push eax
push 7
push str.0:1
lea ecx, [ebp - 0x68]
call fcn.10008ea0
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.10007570
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x10004993
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004989
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004b24
jmp 0x10004989
cmp word [ebp + 0x10], 0x50
jmp 0x10004933
push ecx
push edx
call fcn.10019415
add esp, 8
cmp byte [ebp + 0x14], 0
lea edx, [ebp - 0x44]
push dword [ebp + 0x18]
mov ecx, str.http
mov eax, str.https
cmove eax, ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x28]
push eax
push 0xc
push str.0:__12
call fcn.10008f60
mov byte [ebp - 4], 5
mov esi, dword [sym.imp.steam_api.dll_SteamInternal_ContextInit]
push 0x1005ca90
call esi
add esp, 0x14
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0xf
mov edx, dword [eax]
cmova ecx, dword [ebp - 0x40]
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
dec eax
cmp eax, 4
ja case.default.0x100049f1
jmp dword [eax*4 + 0x10004b2c]
mov eax, 1
jmp 0x10004a1d
mov eax, 2
jmp 0x10004a1d
mov eax, 3
jmp 0x10004a1d
mov eax, 4
jmp 0x10004a1d
mov eax, 5
jmp 0x10004a1d
xor eax, eax
push ecx
push eax
mov ecx, edx
call dword [ebp - 0x44]
push 0x1005ca90
mov dword [edi + 4], eax
call esi
add esp, 4
mov ecx, dword [eax]
push dword [ebp + 0x20]
push dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x50]
cmp dword [ebp - 0x14], 0xf
lea esi, [ebp - 0x28]
push 0x1005ca90
cmova esi, dword [ebp - 0x28]
call dword [sym.imp.steam_api.dll_SteamInternal_ContextInit]
add esp, 4
mov ecx, dword [eax]
push esi
push str.Host
push dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0x1005ca90
call dword [sym.imp.steam_api.dll_SteamInternal_ContextInit]
add esp, 4
mov ecx, dword [eax]
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_84.0.4147.105_Safari_537.36
push str.User_Agent
push dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x10004ab9
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004aaf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004b24
push ecx
push edx
call fcn.10019415
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0xf
jbe 0x10004afb
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004af1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004b24
push ecx
push edx
call fcn.10019415
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100191f9
mov esp, ebp
pop ebp
ret 0x1c
call fcn.10003600
call fcn.10003560
call fcn.10020236
nop dword [eax]
adc al, 0x4a
add byte [eax], dl
clc
dec ecx
add byte [eax], dl
dec dword [ecx]
adc byte [esi], al
dec edx
add byte [eax], dl
or eax, 0x5510004a
push ebp
mov ebp, esp
push ebx
mov bl, byte [ecx]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
nop dword [eax]
lea esi, [esi + esi*4]
movsx eax, bl
lea esi, [esi - 0x18]
inc ecx
lea esi, [eax + esi*2]
mov dword [edi], esi
cmp ecx, edx
je 0x10004b7c
mov bl, byte [ecx]
lea eax, [ebx - 0x30]
cmp al, 9
ja 0x10004b7c
cmp esi, 0xccccccc
jbe 0x10004b50
mov dword [edi], 0x80000000
jmp 0x10004b8b
cmp esi, 0x7fffffff
ja 0x10004b8b
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
mov ecx, str.Number_is_too_big
call fcn.10003d30
int3