Function at 0x402680
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x58
lea eax, [ebp - 0x60]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x74], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
nop dword [eax]
cmp eax, 0x24
jae 0x402980
mov cl, byte [eax + str.miscdata]
movsx edx, cl
mov byte [ebp + eax*2 - 0x60], cl
mov ecx, edx
sar ecx, 8
mov byte [ebp + eax*2 - 0x5f], cl
inc eax
test edx, edx
jne 0x4026b0
lea eax, [ebp - 0x60]
mov dword [ebp - 0x18], 0x81408
push 0x4c
push eax
mov edx, 0x10
mov ecx, ebx
call fcn.00401550
add esp, 8
mov ecx, ebx
call fcn.00401680
mov ecx, ebx
call fcn.00401790
test eax, eax
jne 0x402723
push str.timeout_reached_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401050
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
cmp dword [ebx + 0x20], 6
jge 0x40272e
or ecx, 0xffffffff
jmp 0x402744
mov eax, dword [ebx]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
cmp ecx, 0x80
je 0x402766
push ecx
push str.unexpected_response__0x_04x__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401050
add esp, 0xc
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 8
push 8
push eax
mov edx, 0x11
mov dword [ebp - 0x64], 0x81400
mov ecx, ebx
call fcn.00401550
add esp, 8
mov ecx, ebx
call fcn.00401680
mov ecx, ebx
call fcn.00401790
cmp dword [ebx + 0x20], 6
jge 0x4027a2
or ecx, 0xffffffff
jmp 0x402744
mov esi, dword [ebx]
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
shl eax, 8
or ecx, eax
cmp ecx, 0x93
jne 0x402744
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 3]
shl ecx, 8
or ecx, eax
cmp ecx, 8
je 0x4027e8
push str.unexpected_length_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401050
add esp, 8
jmp 0x40275e
movzx eax, byte [esi + 0xb]
movzx ecx, byte [esi + 0xa]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 9]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 8]
shl eax, 8
or eax, ecx
cdq
mov edi, eax
mov ecx, edx
movzx eax, byte [esi + 7]
shld ecx, edi, 8
cdq
shl edi, 8
or ecx, edx
or edi, eax
movzx eax, byte [esi + 6]
shld ecx, edi, 8
cdq
shl edi, 8
or ecx, edx
or edi, eax
movzx eax, byte [esi + 5]
shld ecx, edi, 8
cdq
shl edi, 8
or ecx, edx
or edi, eax
movzx eax, byte [esi + 4]
shld ecx, edi, 8
cdq
shl edi, 8
or ecx, edx
or edi, eax
mov dword [ebp - 0x6c], ecx
mov eax, edi
mov dword [ebp - 0x64], edi
or eax, ecx
je 0x4028c4
mov eax, edi
mov ebx, 0xe57a42bd
mul ebx
mov esi, edx
mov dword [ebp - 0x80], eax
mov eax, edi
mov edx, 0xd6bf94d5
mul edx
mov edi, eax
mov dword [ebp - 0x70], edx
mov eax, ecx
mul ebx
mov ebx, edx
mov ecx, eax
mov eax, dword [ebp - 0x6c]
mov edx, 0xd6bf94d5
mul edx
add ecx, esi
mov dword [ebp - 0x7c], eax
mov esi, dword [ebp - 0x7c]
adc ebx, 0
add edi, ecx
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x88], edi
mov edi, dword [ebp - 0x64]
adc ecx, 0
xor eax, eax
add ebx, ecx
mov ecx, dword [ebp - 0x6c]
adc eax, eax
add esi, ebx
mov ebx, dword [ebp - 0x74]
adc edx, eax
shrd esi, edx, 0x17
shr edx, 0x17
add esi, 0x49ef6f00
adc edx, 0xfffffffd
jmp 0x4028d2
xorps xmm0, xmm0
movlpd qword [ebp - 0x68], xmm0
mov edx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
push edx
push esi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push ecx
push edi
push str.pactime__0x_llx__unix___llu__n
push 2
call esi
add esp, 4
push eax
call fcn.00401050
push 0
push 0
mov edx, 0x12
mov ecx, ebx
call fcn.00401550
add esp, 0x20
mov ecx, ebx
call fcn.00401680
mov ecx, ebx
call fcn.00401790
test eax, eax
jne 0x40292d
push str.timeout_reached_n
push 2
call esi
add esp, 4
push eax
call fcn.00401050
add esp, 8
jmp 0x40275e
cmp dword [ebx + 0x20], 6
jge 0x402945
or ecx, 0xffffffff
push ecx
push str.unexpected_response__0x_04x__n
push 2
call esi
jmp 0x402752
mov eax, dword [ebx]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
cmp ecx, 0x80
je 0x40296a
push ecx
push str.unexpected_response__0x_04x__n
push 2
call esi
jmp 0x402752
mov ecx, dword [ebp - 4]
mov eax, edi
mov edx, dword [ebp - 0x6c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00404e5a
mov esp, ebp
pop ebp
ret
push str.name_too_long_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401050
add esp, 8
jmp 0x40275e