Function at 0x481160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, dword [esp + 0x20]
cmp byte [ebx + 0xd4], 0
jne case.0x48118a.0
cmp dword [ebx + 0xa4], 0x15
ja case.default.0x48118a
mov eax, dword [ebx + 0xa4]
jmp dword [eax*4 + 0x647c44]
mov eax, dword [ebx + 0x80]
mov edx, 0x19
mov dword [esp], ebx
sub edx, eax
add eax, str.HTTP_1.1_100_Continue_r_n_r_n
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call dword [ebx + 0xcc]
test eax, eax
js 0x481530
mov ecx, dword [ebx + 0x8c]
add dword [ebx + 0x80], eax
test ecx, ecx
je case.0x48118a.0
cmp byte [ebx + 0xd4], 0
jne case.0x48118a.0
mov esi, dword [ebx + 0x10]
call fcn.0048b6b0
mov dword [ebx + 0x88], eax
test byte [esi + 0xdc], 4
jne case.0x48118a.0
mov eax, dword [esi + 0xd4]
cmp dword [ebx + 0x8c], eax
jne case.0x48118a.0
lea edi, [esi + 0x9c]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edx
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x481898
mov edx, dword [ebx + 8]
mov dword [eax + 8], edx
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
test eax, eax
je 0x481890
mov dword [eax + 0xc], edx
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov eax, dword [esi + 0x20]
mov dword [ebx + 8], eax
cmp dword [esi + 0x24], 0
je 0x481888
mov eax, dword [esi + 0x20]
mov dword [eax + 0xc], ebx
mov dword [esi + 0x20], ebx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], str.Internal_error_n
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.0048aef0
mov esi, dword [ebx + 0x10]
mov dword [ebx + 0xa4], 0x13
mov dword [ebx + 0xa8], 3
mov edi, dword [ebx + 0x1c]
test byte [esi + 0xdd], 0x10
je 0x481510
test edi, edi
je 0x4812bd
mov dword [ebx + 0x1c], 0
mov dword [esp], edi
call sym.xmrig_notls.exe_MHD_destroy_response
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4812e8
cmp byte [ebx + 0x94], 0
je 0x4812e8
lea edx, [ebx + 0x24]
mov dword [esp + 0xc], 1
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov edx, dword [esi + 0x3c]
mov dword [esp], edx
call eax
mov byte [ebx + 0x94], 0
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x68]
sub edx, eax
mov dword [esp + 8], edx
add eax, dword [ebx + 0x40]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [ebx + 0xcc]
test eax, eax
jns 0x481600
cmp eax, 0xfffff3ff
je case.0x48118a.0
mov dword [esp + 4], str.Connection_was_closed_while_sending_response_headers._n
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.0048aef0
jmp 0x481283
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x68]
sub edx, eax
mov dword [esp + 8], edx
add eax, dword [ebx + 0x40]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [ebx + 0xcc]
test eax, eax
jns 0x4815b0
cmp eax, 0xfffff3ff
je case.0x48118a.0
mov dword [esp + 4], str.Connection_was_closed_while_sending_response_body._n
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.0048aef0
jmp 0x481283
mov esi, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x7c]
mov eax, dword [ebx + 0x78]
mov ecx, dword [esi + 0x3c]
mov edi, dword [esi + 0x38]
cmp edx, ecx
ja 0x481590
jb 0x4813c1
cmp eax, edi
jae 0x481590
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4813d7
lea eax, [esi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
mov eax, ebx
call fcn.004807d0
cmp eax, 1
jne case.0x48118a.0
mov eax, dword [ebx + 0x78]
sub eax, dword [esi + 0x40]
mov edx, dword [ebx + 0x7c]
sbb edx, dword [esi + 0x44]
cmp edx, 0
ja 0x4818ff
mov edx, dword [esi + 0x50]
sub edx, eax
mov dword [esp + 8], edx
add eax, dword [esi + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [ebx + 0xcc]
mov edi, eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x48142d
add esi, 0x1c
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
test edi, edi
jns 0x48155a
cmp edi, 0xfffff3ff
je case.0x48118a.0
mov eax, dword [ebx + 0x30]
mov dword [esp + 4], str.Failed_to_send_data_in_request_for___s._n
mov dword [esp + 8], eax
jmp 0x48154a
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x68]
sub edx, eax
mov dword [esp + 8], edx
add eax, dword [ebx + 0x40]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [ebx + 0xcc]
test eax, eax
js 0x481374
add dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x8c]
test eax, eax
je 0x481493
cmp byte [ebx + 0xd4], 0
je 0x4816e5
cmp dword [ebx + 0xa4], 0xe
jne case.0x48118a.0
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x64]
mov eax, dword [edx + 0x38]
mov edx, dword [edx + 0x3c]
xor eax, dword [ebx + 0x78]
xor edx, dword [ebx + 0x7c]
or edx, eax
sete al
movzx eax, al
add eax, 0xf
cmp dword [ebx + 0x68], ecx
jne case.0x48118a.0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0xa4], eax
mov dword [esp + 0xc], 0
mov eax, dword [ebx + 0x60]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x20]
mov dword [esp], eax
call fcn.0048b4a0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x60], 0
jmp case.0x48118a.0
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x98]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_shutdown]
sub esp, 8
jmp 0x4812aa
cmp eax, 0xfffff3ff
je case.0x48118a.0
mov eax, dword [ebx + 0x30]
mov dword [esp + 4], str.Failed_to_send_data_in_request_for__s._n
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.0048aef0
jmp 0x481283
mov eax, edi
mov ecx, dword [ebx + 0x8c]
cdq
add eax, dword [ebx + 0x78]
adc edx, dword [ebx + 0x7c]
test ecx, ecx
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], edx
je 0x481580
cmp byte [ebx + 0xd4], 0
je 0x481807
mov ecx, dword [ebx + 0x1c]
mov edi, dword [ecx + 0x38]
mov ecx, dword [ecx + 0x3c]
lea esi, [esi]
xor edi, eax
xor ecx, edx
or ecx, edi
jne case.0x48118a.0
mov dword [ebx + 0xa4], 0x12
jmp case.0x48118a.0
mov ecx, dword [ebx + 0x8c]
add dword [ebx + 0x64], eax
test ecx, ecx
je 0x4815ca
cmp byte [ebx + 0xd4], 0
je 0x481650
cmp dword [ebx + 0xa4], 0x11
jne case.0x48118a.0
mov eax, dword [ebx + 0x64]
cmp dword [ebx + 0x68], eax
jne case.0x48118a.0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0xa4], 0x12
jmp 0x4814da
add dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x8c]
test eax, eax
je 0x48161a
cmp byte [ebx + 0xd4], 0
je 0x48177a
cmp dword [ebx + 0xa4], 0xa
jne case.0x48118a.0
mov eax, dword [ebx + 0x64]
cmp dword [ebx + 0x68], eax
jne case.0x48118a.0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0xa4], 0xb
jmp 0x4814da
mov esi, dword [ebx + 0x10]
call fcn.0048b6b0
mov dword [ebx + 0x88], eax
test byte [esi + 0xdc], 4
jne 0x4815ca
mov eax, dword [esi + 0xd4]
cmp dword [ebx + 0x8c], eax
jne 0x4815ca
lea edi, [esi + 0x9c]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edx
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x481862
mov edx, dword [ebx + 8]
mov dword [eax + 8], edx
mov eax, dword [ebx + 8]
test eax, eax
je 0x481857
mov edx, dword [ebx + 0xc]
mov dword [eax + 0xc], edx
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov eax, dword [esi + 0x20]
mov dword [ebx + 8], eax
cmp dword [esi + 0x24], 0
je 0x48184f
mov eax, dword [esi + 0x20]
mov dword [eax + 0xc], ebx
mov dword [esi + 0x20], ebx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push eax
jmp 0x4815ca
mov esi, dword [ebx + 0x10]
call fcn.0048b6b0
mov dword [ebx + 0x88], eax
test byte [esi + 0xdc], 4
jne 0x481493
mov eax, dword [esi + 0xd4]
cmp dword [ebx + 0x8c], eax
jne 0x481493
lea edi, [esi + 0x9c]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x48187d
mov edx, dword [ebx + 8]
mov dword [eax + 8], edx
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
test eax, eax
je 0x481875
mov dword [eax + 0xc], edx
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov eax, dword [esi + 0x20]
mov dword [ebx + 8], eax
cmp dword [esi + 0x24], 0
je 0x48186d
mov eax, dword [esi + 0x20]
mov dword [eax + 0xc], ebx
mov dword [esi + 0x20], ebx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
jmp 0x481493
mov esi, dword [ebx + 0x10]
call fcn.0048b6b0
mov dword [ebx + 0x88], eax
test byte [esi + 0xdc], 4
jne 0x48161a
mov eax, dword [esi + 0xd4]
cmp dword [ebx + 0x8c], eax
jne 0x48161a
lea edi, [esi + 0x9c]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x481844
mov edx, dword [ebx + 8]
mov dword [eax + 8], edx
mov eax, dword [ebx + 8]
test eax, eax
je 0x48183c
mov edx, dword [ebx + 0xc]
mov dword [eax + 0xc], edx
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov eax, dword [esi + 0x20]
mov dword [ebx + 8], eax
cmp dword [esi + 0x24], 0
je 0x481837
mov eax, dword [esi + 0x20]
mov dword [eax + 0xc], ebx
mov dword [esi + 0x20], ebx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push eax
jmp 0x48161a
mov esi, dword [ebx + 0x10]
call fcn.0048b6b0
mov dword [ebx + 0x88], eax
test byte [esi + 0xdc], 4
jne 0x48182c
mov eax, dword [esi + 0xd4]
cmp dword [ebx + 0x8c], eax
je 0x4818a3
mov eax, dword [ebx + 0x78]
mov edx, dword [ebx + 0x7c]
jmp 0x481580
mov dword [esi + 0x24], ebx
jmp 0x4817f5
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x24], eax
jmp 0x4817d5
mov eax, dword [ebx + 8]
mov dword [esi + 0x20], eax
jmp 0x4817c8
mov dword [esi + 0x24], ebx
jmp 0x4816d3
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x24], eax
jmp 0x4816af
mov eax, dword [ebx + 8]
mov dword [esi + 0x20], eax
jmp 0x48169e
mov dword [esi + 0x24], ebx
jmp 0x481768
mov dword [esi + 0x24], edx
jmp 0x481744
mov eax, dword [ebx + 8]
mov dword [esi + 0x20], eax
jmp 0x481733
mov dword [esi + 0x24], ebx
jmp 0x481258
mov dword [esi + 0x24], edx
jmp 0x481234
mov eax, dword [ebx + 8]
mov dword [esi + 0x20], eax
jmp 0x481223
lea edi, [esi + 0x9c]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x48192f
mov edx, dword [ebx + 8]
mov dword [eax + 8], edx
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
test eax, eax
je 0x48192a
mov dword [eax + 0xc], edx
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov eax, dword [esi + 0x20]
mov dword [ebx + 8], eax
cmp dword [esi + 0x24], 0
je 0x481925
mov eax, dword [esi + 0x20]
mov dword [eax + 0xc], ebx
mov dword [esi + 0x20], ebx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push eax
jmp 0x48182c
mov eax, dword [0x6ab740]
mov dword [esp + 0xc], str.Data_offset_exceeds_limit
mov dword [esp + 8], 0xbe4
mov dword [esp + 4], str.T:_Bin_prep_mhd_src_libmicrohttpd_0.9.58_src_microhttpd_connection.c
mov dword [esp], eax
call dword [0x6ab744]
mov dword [esi + 0x24], ebx
jmp 0x4818ed
mov dword [esi + 0x24], edx
jmp 0x4818cd
mov eax, dword [ebx + 8]
mov dword [esi + 0x20], eax
jmp 0x4818c0