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

Disassembly:
sub esp, 0x14
mov eax, dword [0x4a206c]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ebx, dword [esi + 0x1c]
cmp dword [ebx + 0xc], 0
je 0x4251f6
cmp dword [esi + 0x60], 0
jne 0x425036
mov eax, dword [esi + 0x10]
mov ecx, 0x2000016
mov eax, dword [eax + 0x6c]
cmp eax, ecx
cmovb ecx, eax
nop word [eax + eax]
shr ecx, 1
cmp ecx, 0x80
jb 0x425049
lea eax, [ecx + 7]
and eax, 0xfffffff8
jne 0x425016
test ecx, ecx
jne 0x425000
mov edx, dword [esi + 0x20]
mov edi, dword [edx + 8]
add eax, edi
cmp eax, dword [edx + 0xc]
ja 0x425000
cmp eax, edi
jb 0x425000
mov ebp, dword [edx]
mov dword [edx + 8], eax
add ebp, edi
je 0x425000
mov dword [esi + 0x60], ecx
mov dword [esi + 0x40], ebp
cmp dword [ebx + 0x38], 0
jne 0x42507a
cmp dword [ebx + 0x3c], 0
jne 0x42507a
xor edi, edi
jmp 0x425118
push str.Closing_connection__out_of_memory__n
push dword [esi + 0x10]
call fcn.00428de0
add esp, 8
mov edx, 1
mov ecx, esi
call fcn.00424de0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0042b571
add esp, 0x14
ret
mov eax, dword [ebx + 0x44]
mov edi, dword [ebx + 0x40]
mov ecx, dword [esi + 0x78]
cmp eax, dword [esi + 0x7c]
ja 0x4250d4
jb 0x42508e
cmp edi, ecx
ja 0x4250d4
mov ebp, dword [ebx + 0x50]
xor eax, eax
mov edx, ebp
add edx, edi
mov edi, dword [esi + 0x7c]
adc eax, dword [ebx + 0x44]
cmp eax, edi
jb 0x4250d7
ja 0x4250a7
cmp edx, ecx
jbe 0x4250d7
mov eax, dword [esi + 0x60]
mov edx, ecx
sub edx, dword [ebx + 0x40]
sub ebp, edx
lea ecx, [eax - 0xc]
lea edi, [eax - 0xc]
cmp ebp, ecx
mov eax, dword [ebx + 4]
cmovbe edi, ebp
add eax, edx
push edi
push eax
mov eax, dword [esi + 0x40]
add eax, 0xa
push eax
call fcn.00443400
add esp, 0xc
jmp 0x4250f4
mov edi, dword [esi + 0x7c]
mov eax, dword [esi + 0x60]
sub eax, 0xc
push eax
mov eax, dword [esi + 0x40]
add eax, 0xa
push eax
mov eax, dword [ebx + 0xc]
push edi
push ecx
push dword [ebx + 8]
call eax
add esp, 0x14
mov edi, eax
cmp edi, 0xfffffffe
jne 0x42510f
mov eax, dword [esi + 0x78]
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0x7c]
mov dword [ebx + 0x3c], eax
push str.Closing_connection__application_error_generating_response__n
jmp 0x42504e
cmp edi, 0xffffffff
je 0x4251d2
cmp dword [ebx + 0x38], 0
jne 0x425128
cmp dword [ebx + 0x3c], 0
je 0x4251d2
test edi, edi
jne 0x42514b
mov dword [esi + 0xac], 0xf
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0042b571
add esp, 0x14
ret
mov eax, 0xffffff
cmp edi, eax
cmovg edi, eax
lea eax, [esp + 0x14]
push edi
push str._X_r_n
push 0xa
push eax
call fcn.00403640
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x42520e
cmp ebx, 0xa
jb 0x425192
push str._size_t_cblen___sizeof_cbuf_
push 0x4ce
push str.T:Bin_prepmhd_srclibmicrohttpd_0.9.58W32VS2017...._srcmicrohttpdconnection.c
push str._s:_u_Assertion_failed:__s_nProgram_aborted._n
jmp 0x425222
push ebx
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x40]
sub eax, ebx
add eax, 0xa
push eax
call fcn.00443400
mov ax, word [0x4ac1a4]
add esp, 0xc
mov ecx, dword [esi + 0x40]
mov word [ecx + edi + 0xa], ax
mov eax, edi
cdq
add dword [esi + 0x78], eax
mov eax, 0xa
adc dword [esi + 0x7c], edx
sub eax, ebx
mov dword [esi + 0x64], eax
lea eax, [edi + 0xc]
mov dword [esi + 0x68], eax
jmp 0x4251f6
mov ecx, dword [esi + 0x40]
mov eax, dword [0x4ac18c]
mov dword [ecx], eax
mov eax, dword [esi + 0x78]
mov dword [esi + 0x68], 3
mov dword [esi + 0x64], 0
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0x7c]
mov dword [ebx + 0x3c], eax
mov ecx, dword [esp + 0x20]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042b571
add esp, 0x14
ret
push str.cblen___0
push 0x4cd
push 0x4ac1a8
push 0x4ac200
push 2
call fcn.00449f5a
add esp, 4
push eax
call fcn.00408050
add esp, 0x14
push 2
call fcn.00449f5a
add esp, 4
push eax
call fcn.0044a5b8
add esp, 4
call fcn.0044ca25
int3