Function at 0x47d020
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
sub esp, 0x27c
mov eax, dword [eax + 0x34]
cmp byte [eax], 0
je 0x47d370
mov edi, dword [ebp + 0xac]
and edi, 0x7fffffff
cmp dword [ebp + 0xa4], 9
je 0x47d4c0
mov edi, 0x10
mov dword [esp + 0x3c], 0
mov esi, 2
cmp dword [ebp + 0x38], 0xffffffff
jne 0x47d322
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0
mov byte [esp + 0x53], 0
mov dword [esp + 0x54], 0
mov ebx, dword [esp + 0x4c]
lea eax, [esi + 0x1c]
mov ecx, dword [esp + 0x48]
test ebx, ebx
mov ebx, dword [edx]
cmovne esi, eax
mov eax, dword [esp + 0x5c]
add eax, esi
test ecx, ecx
cmovne esi, eax
test ebx, ebx
je 0x47d0fd
test byte [esp + 0x44], 1
je 0x47d3b3
cmp byte [esp + 0x53], 1
mov dword [esp + 0x40], ebp
je 0x47d2ca
cmp dword [ebx + 0xc], edi
jne 0x47d0f3
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ebp, eax
mov eax, dword [ebx + 8]
lea esi, [esi + ebp + 4]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add esi, eax
mov ebx, dword [ebx]
test ebx, ebx
jne 0x47d0d0
mov ebp, dword [esp + 0x40]
lea eax, [esi + 1]
mov dword [esp + 8], 0
mov dword [esp + 0x58], eax
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x20]
mov dword [esp], eax
call fcn.004889a0
test eax, eax
mov dword [esp + 0x40], eax
je 0x47d8c0
cmp dword [ebp + 0xa4], 9
je 0x47d840
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add edx, dword [esp + 0x3c]
test ecx, ecx
mov eax, edx
jne 0x47d480
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x47d440
mov ebx, dword [esp + 0x4c]
test ebx, ebx
jne 0x47d3f0
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x47d3c0
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x47d212
test byte [esp + 0x44], 1
je 0x47d312
cmp byte [esp + 0x53], 1
jne 0x47d312
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ebp
mov esi, edx
mov ebp, ebx
mov ebx, dword [esp + 0x3c]
jmp 0x47d1aa
mov ebp, dword [ebp]
test ebp, ebp
je 0x47d202
cmp dword [ebp + 0xc], edi
jne 0x47d1a3
mov dword [esp + 4], 0x548b00
mov eax, dword [ebp + 4]
mov dword [esp], eax
call fcn.00488ca0
test eax, eax
jne 0x47d920
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov dword [esp], esi
mov dword [esp + 8], str._s:__s_r_n
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], ecx
sub eax, ebx
mov dword [esp + 4], eax
call fcn.0047cd50
mov ebp, dword [ebp]
add ebx, eax
mov eax, dword [esp + 0x40]
test ebp, ebp
lea esi, [eax + ebx]
jne 0x47d1aa
mov edx, esi
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x3c], ebx
mov eax, edx
cmp dword [ebp + 0xa4], 9
je 0x47d864
mov edx, 0xa0d
mov word [eax], dx
mov eax, dword [esp + 0x3c]
add eax, 2
cmp eax, esi
je 0x47d258
mov eax, dword [0x5769c0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x6bd
mov dword [esp + 4], str.T:_Bin_prep_mhd_src_libmicrohttpd_0.9.58_src_microhttpd_connection.c
mov dword [esp], eax
call dword [0x5769c4]
mov eax, dword [esp + 0x40]
mov dword [ebp + 0x68], esi
mov dword [ebp + 0x64], 0
mov dword [ebp + 0x40], eax
mov eax, dword [esp + 0x58]
mov dword [ebp + 0x60], eax
add esp, 0x27c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x548b00
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.00488ca0
test eax, eax
jne 0x47db10
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ebp, eax
mov eax, dword [ebx + 8]
lea esi, [esi + ebp + 4]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add esi, eax
lea esi, [esi]
mov ebx, dword [ebx]
test ebx, ebx
je 0x47d0f9
cmp dword [ebx + 0xc], edi
jne 0x47d2c0
jmp 0x47d280
mov eax, dword [ebx + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
mov dword [esp + 8], str._s:__s_r_n
mov dword [esp], edx
mov dword [esp + 0xc], eax
mov eax, esi
sub eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
call fcn.0047cd50
mov ebx, dword [ebx]
add dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
test ebx, ebx
je 0x47d940
mov ecx, dword [esp + 0x3c]
lea edx, [eax + ecx]
cmp dword [ebx + 0xc], edi
je 0x47d2d1
mov ebx, dword [ebx]
test ebx, ebx
jne 0x47d312
jmp 0x47d210
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0
mov byte [esp + 0x53], 0
movzx eax, byte [esp + 0x53]
mov dword [esp + 0x54], 0
test al, al
je 0x47d35a
mov dword [ebp + 0x38], 1
mov ebx, dword [esp + 0x54]
test ebx, ebx
je 0x47d095
add esi, 0x18
jmp 0x47d095
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x20]
mov dword [esp], eax
call fcn.004889a0
mov dword [ebp + 0x68], 0
mov dword [ebp + 0x40], eax
mov eax, 1
mov dword [ebp + 0x64], 0
mov dword [ebp + 0x60], 0
add esp, 0x27c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x40], ebp
jmp 0x47d0d0
mov ebx, dword [esp + 0x5c]
lea eax, [esp + 0xf0]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call sub.msvcrt.dll_memcpy
add dword [esp + 0x3c], ebx
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
add edx, eax
mov eax, edx
jmp 0x47d16e
add dword [esp + 0x3c], 0x1c
mov dword [edx], 0x6e617254
mov eax, dword [esp + 0x3c]
mov dword [edx + 4], 0x72656673
mov dword [edx + 8], 0x636e452d
mov dword [edx + 0xc], 0x6e69646f
mov dword [edx + 0x10], 0x63203a67
mov dword [edx + 0x14], 0x6b6e7568
mov dword [edx + 0x18], 0xa0d6465
mov edx, dword [esp + 0x40]
add edx, eax
mov eax, edx
jmp 0x47d162
add dword [esp + 0x3c], 0x18
mov dword [edx], 0x6e6e6f43
mov eax, dword [esp + 0x3c]
mov dword [edx + 4], 0x69746365
mov dword [edx + 8], 0x203a6e6f
mov dword [edx + 0xc], 0x7065654b
mov dword [edx + 0x10], 0x696c412d
mov dword [edx + 0x14], 0xa0d6576
mov edx, dword [esp + 0x40]
add edx, eax
mov eax, edx
jmp 0x47d156
mov ebx, 0xd65
add dword [esp + 0x3c], 0x13
mov dword [edx], 0x6e6e6f43
mov eax, dword [esp + 0x3c]
mov dword [edx + 4], 0x69746365
mov dword [edx + 8], 0x203a6e6f
mov dword [edx + 0xc], 0x736f6c63
mov word [edx + 0x10], bx
mov byte [edx + 0x12], 0xa
mov edx, dword [esp + 0x40]
add edx, eax
mov eax, edx
jmp 0x47d14a
mov dword [esp], edi
call sym.xmrig.exe_MHD_get_reason_phrase_for
mov esi, dword [ebp + 0xac]
mov ebx, eax
mov eax, 0x548b36
test esi, esi
js 0x47d4fb
mov eax, dword [ebp + 0x34]
mov dword [esp], str.HTTP_1.0
mov dword [esp + 4], eax
call fcn.00488ca0
mov edx, str.HTTP_1.0
test eax, eax
mov eax, str.HTTP_1.1
cmovne eax, edx
mov dword [esp + 0x14], ebx
lea ebx, [esp + 0x170]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s__u__s_r_n
mov dword [esp + 4], 0x100
mov dword [esp], ebx
call fcn.0047cd50
mov ecx, ebx
mov edx, dword [ecx]
add ecx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x47d528
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [ecx + 2]
cmovne edx, ecx
mov ecx, eax
add cl, al
mov eax, dword [ebp + 0x10]
sbb edx, 3
sub edx, ebx
test byte [eax + 0xdc], 0x80
mov dword [esp + 0x3c], edx
lea ecx, [edx + 2]
je 0x47d9f3
lea ebx, [esp + 0x70]
mov byte [esp + 0x70], 0
mov esi, ebx
mov edx, dword [esi]
add esi, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x47d57c
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [esi + 2]
cmove esi, edx
mov edx, eax
add dl, al
sbb esi, 3
sub esi, ebx
add esi, ecx
cmp dword [ebp + 0xa4], 9
jne 0x47dbe4
mov dword [esp + 0xc], 5
mov dword [esp + 8], str.close
mov dword [esp + 4], 0x548b00
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call fcn.0048a5d0
mov dword [esp + 0xc], 0xa
mov byte [esp + 0x40], al
mov dword [esp + 8], str.Keep_Alive
mov dword [esp + 4], 0x548b00
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call fcn.0048a5d0
mov ebx, dword [ebp + 0x14]
mov byte [esp + 0x53], al
test ebx, ebx
je 0x47d65b
test byte [ebx + 0xc], 1
je 0x47d655
mov eax, dword [ebx + 4]
cmp eax, 0x548b00
je 0x47d636
mov dword [esp + 4], eax
mov dword [esp], 0x548b00
call fcn.00488ca0
test eax, eax
je 0x47d655
mov dword [esp + 8], 5
mov dword [esp + 4], str.close
mov eax, dword [ebx + 8]
mov dword [esp], eax
call fcn.00488dc0
test al, al
jne 0x47d65d
mov ebx, dword [ebx]
test ebx, ebx
jne 0x47d612
xor eax, eax
mov edx, dword [ebp + 0x1c]
test byte [edx + 0x60], 1
jne 0x47d66d
mov ebx, dword [edx + 0x14]
test ebx, ebx
je 0x47d674
mov dword [ebp + 0x38], 0xffffffff
mov byte [ebp + 0xb0], 0
mov ebx, dword [edx + 0x3c]
and ebx, dword [edx + 0x38]
cmp ebx, 0xffffffff
je 0x47d990
test al, al
jne 0x47d780
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0
cmp byte [ebp + 0x9d], 0
jne 0x47d790
cmp dword [ebp + 0x38], 0xffffffff
je 0x47d790
mov dword [esp], edx
mov dword [esp + 4], str.Content_Length
call sym.xmrig.exe_MHD_get_response_header
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], 0
mov ebx, dword [edx + 0x3c]
mov ecx, dword [edx + 0x38]
mov eax, ebx
and eax, ecx
cmp eax, 0xffffffff
je 0x47d7c8
cmp edi, 0xcc
je 0x47d7c0
cmp edi, 0x130
je 0x47d7c0
cmp edi, 0xc7
jbe 0x47d7c0
mov edi, dword [esp + 0x54]
test edi, edi
jne 0x47d7c0
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x47d743
mov dword [esp + 4], str.CONNECT
mov dword [esp], eax
call fcn.00488ca0
test eax, eax
jne 0x47db30
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0x38]
mov ebx, dword [eax + 0x3c]
lea eax, [esp + 0xf0]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 8], str.Content_Length:__llu_r_n
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], eax
call fcn.0047cd50
mov dword [esp + 0x48], 1
mov dword [esp + 0x5c], eax
mov edx, dword [ebp + 0x1c]
jmp 0x47d7c8
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0
cmp byte [esp + 0x40], 0
jne 0x47d8e0
mov eax, dword [edx + 0x14]
test eax, eax
jne 0x47d6b9
test byte [edx + 0x60], 1
mov eax, 1
cmovne eax, dword [esp + 0x44]
mov dword [esp + 0x44], eax
jmp 0x47d6b9
mov dword [esp + 0x48], 0
movzx ecx, byte [esp + 0x40]
mov eax, dword [ebp + 0x38]
or cl, byte [esp + 0x53]
jne 0x47d950
mov ecx, dword [esp + 0x44]
test ecx, ecx
jne 0x47d9e0
cmp eax, 0xffffffff
je 0x47d822
mov eax, dword [edx + 0x14]
test eax, eax
jne 0x47d822
mov eax, ebp
mov edi, 1
call fcn.0047cea0
cmp eax, 1
mov edx, dword [ebp + 0x1c]
mov byte [esp + 0x53], 0
sete al
cmp dword [ebp + 0x38], 0xffffffff
movzx ecx, al
mov dword [esp + 0x54], ecx
je 0x47d35a
jmp 0x47d34f
mov dword [esp + 0x54], 0
mov byte [esp + 0x53], 0
mov edi, 1
jmp 0x47d095
lea eax, [esp + 0x170]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
jmp 0x47d134
lea ebx, [esp + 0x70]
mov dword [esp], edx
mov dword [esp + 4], ebx
call sub.msvcrt.dll_strcpy
mov edx, ebx
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x47d876
mov edi, eax
shr edi, 0x10
test eax, 0x8080
cmove eax, edi
lea edi, [edx + 2]
mov ecx, eax
cmove edx, edi
add cl, al
mov eax, dword [esp + 0x40]
sbb edx, 3
sub edx, ebx
add dword [esp + 0x3c], edx
mov ecx, dword [esp + 0x3c]
add eax, ecx
jmp 0x47d21f
mov dword [esp + 4], str.Not_enough_memory_for_write__n
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.00488450
add esp, 0x27c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edx
mov dword [esp + 4], str.Content_Length
call sym.xmrig.exe_MHD_get_response_header
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x54], eax
mov ebx, dword [edx + 0x3c]
mov ecx, dword [edx + 0x38]
mov eax, ebx
and eax, ecx
cmp eax, 0xffffffff
jne 0x47d6eb
cmp dword [ebp + 0x38], 0xffffffff
mov dword [esp + 0x48], 0
jne 0x47d967
jmp 0x47d96e
mov dword [esp + 4], str.Keep_Alive
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00488ca0
test eax, eax
jne 0x47d1a3
jmp 0x47d1ca
mov edi, dword [esp + 0x3c]
lea edx, [eax + edi]
jmp 0x47d210
cmp eax, 0xffffffff
je 0x47d96e
test byte [esp + 0x44], 1
jne 0x47d967
cmp byte [esp + 0x40], 0
je 0x47dbda
mov dword [ebp + 0x38], 0xffffffff
mov edi, dword [esp + 0x44]
test edi, edi
je 0x47db40
add esi, 0x13
mov edi, 1
mov dword [esp + 0x44], 1
jmp 0x47d08d
mov ecx, dword [edx + 0x14]
test ecx, ecx
jne 0x47d68a
cmp byte [esp + 0x40], 0
jne 0x47d68a
test al, al
jne 0x47d780
mov eax, ebp
call fcn.0047cea0
cmp eax, 1
mov dword [esp + 0x4c], eax
je 0x47db4a
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 1
jmp 0x47d6a2
cmp eax, 0xffffffff
mov byte [esp + 0x53], 0
je 0x47d97a
mov dword [ebp + 0x38], 0xffffffff
jmp 0x47d97a
mov dword [esp + 4], str.Date
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x40], ecx
mov dword [esp], eax
call sym.xmrig.exe_MHD_get_response_header
test eax, eax
mov ecx, dword [esp + 0x40]
jne 0x47d571
lea ebx, [esp + 0x6c]
mov byte [esp + 0x70], 0
mov dword [esp], ebx
call sub.msvcrt.dll_time
lea eax, [esp + 0xf0]
mov dword [esp + 4], ebx
lea ebx, [esp + 0x70]
mov dword [esp], eax
call dword [0x53e668]
test eax, eax
mov ecx, dword [esp + 0x40]
jne 0x47d57a
mov eax, dword [esp + 0xf0]
mov esi, dword [esp + 0x100]
mov edx, 0x2aaaaaab
mov dword [esp + 8], str.Date:__3s___02u__3s__04u__02u:_02u:_02u_GMT_r_n
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x104]
add eax, 0x76c
mov dword [esp + 0x18], eax
mov eax, esi
imul edx
mov eax, edx
mov edx, esi
sar edx, 0x1f
sar eax, 1
sub eax, edx
mov edx, 0x92492493
lea eax, [eax + eax*2]
shl eax, 2
sub esi, eax
mov eax, dword [esi*4 + 0x5496a0]
mov esi, dword [esp + 0x108]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x10], eax
mov eax, esi
imul edx
lea eax, [edx + esi]
mov edx, esi
sar edx, 0x1f
sar eax, 2
sub eax, edx
lea edx, [eax*8]
sub edx, eax
sub esi, edx
mov eax, dword [esi*4 + 0x549650]
mov dword [esp + 0xc], eax
call fcn.0047cd50
mov ecx, dword [esp + 0x40]
jmp 0x47d57a
mov dword [esp + 4], str.Keep_Alive
mov eax, dword [ebx + 8]
mov dword [esp], eax
call fcn.00488ca0
test eax, eax
jne 0x47d2c0
jmp 0x47d29b
mov dword [esp + 0x48], 0
mov edx, dword [ebp + 0x1c]
jmp 0x47d7c8
mov edi, 1
jmp 0x47d08d
mov eax, dword [ebp + 0x34]
mov dword [esp], str.HTTP_1.1
mov dword [esp + 4], eax
call fcn.00488ca0
test eax, eax
je 0x47d9c2
mov dword [esp + 4], str.Transfer_Encoding
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call sym.xmrig.exe_MHD_get_response_header
test eax, eax
je 0x47dbab
mov dword [esp + 4], str.identity
mov dword [esp], eax
call fcn.00488ca0
test eax, eax
mov dword [esp + 0x44], eax
jne 0x47dbc2
mov byte [ebp + 0xb0], 1
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x4c], 0
jmp 0x47d6a2
mov byte [ebp + 0xb0], 1
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x44], 0
jmp 0x47d6a2
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x44], 1
mov dword [esp + 0x4c], 0
jmp 0x47d6a2
mov edi, 1
jmp 0x47d342
mov edi, 1
jmp 0x47d063