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

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, ecx
mov ecx, dword [esp + 0x34]
push edi
mov edi, dword [eax]
mov dword [ecx], ebx
mov dword [edx], ebx
mov eax, dword [eax]
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
cmp byte [esi + 0x3f5], bl
jne 0x565641
cmp byte [esi + 0x3f6], bl
je 0x5654c2
lea ebp, [esi + 0x400]
lea esp, [esp]
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jl 0x5653f4
push 0x67b29c
push eax
call fcn.00620db5
add esp, 8
test eax, eax
je 0x5653f4
sub eax, dword [ebp]
jns 0x565475
cmp ebx, edi
jge 0x565475
mov ecx, dword [esp + 0x2c]
mov dl, byte [ebx + ecx]
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
mov byte [esp + 0x10], dl
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ecx + 1]
sub eax, edi
or edx, eax
mov dword [esp + 0x14], ecx
jge 0x56542d
push edi
mov ecx, ebp
call fcn.004020b0
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
mov al, byte [esp + 0x10]
mov byte [ecx + edx], al
test edi, edi
jl 0x565467
mov eax, dword [ebp]
cmp edi, dword [eax - 8]
jg 0x565467
dec dword [esp + 0x18]
mov dword [eax - 0xc], edi
mov ecx, dword [ebp]
mov eax, dword [esp + 0x30]
mov byte [edi + ecx], 0
dec dword [eax]
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x20]
inc ebx
inc dword [eax]
jmp 0x5653d0
mov dword [esp + 0x14], ebx
push 0x80070057
call fcn.00401090
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
mov dword [esp + 0x14], ebx
jl 0x565499
push 0x67b29c
push eax
call fcn.00620db5
add esp, 8
test eax, eax
je 0x565499
sub eax, dword [ebp]
je 0x5654af
mov edx, dword [ebp]
pop edi
xor eax, eax
cmp dword [edx - 0xc], 1
pop esi
pop ebp
setle al
pop ebx
add esp, 0x18
ret 0x14
push 0x67997c
mov ecx, ebp
call fcn.0054f750
mov byte [esi + 0x3f6], 0
lea ebp, [esi + 0x400]
jmp 0x5654d0
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jl 0x5654f4
push 0x67b29c
push eax
call fcn.00620db5
add esp, 8
test eax, eax
je 0x5654f4
sub eax, dword [ebp]
jns 0x565575
cmp ebx, edi
jge 0x565575
mov eax, dword [esp + 0x2c]
mov cl, byte [ebx + eax]
mov eax, dword [ebp]
mov byte [esp + 0x10], cl
mov ecx, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ecx + 1]
sub eax, edi
or edx, eax
mov dword [esp + 0x14], ecx
jge 0x56552d
push edi
mov ecx, ebp
call fcn.004020b0
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
mov al, byte [esp + 0x10]
mov byte [ecx + edx], al
test edi, edi
jl 0x565567
mov eax, dword [ebp]
cmp edi, dword [eax - 8]
jg 0x565567
dec dword [esp + 0x18]
mov dword [eax - 0xc], edi
mov ecx, dword [ebp]
mov eax, dword [esp + 0x30]
mov byte [edi + ecx], 0
dec dword [eax]
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x20]
inc ebx
inc dword [eax]
jmp 0x5654d0
push 0x80070057
mov dword [esp + 0x18], ebx
call fcn.00401090
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
mov dword [esp + 0x14], ebx
jl 0x565599
push 0x67b29c
push eax
call fcn.00620db5
add esp, 8
test eax, eax
je 0x565599
sub eax, dword [ebp]
jns 0x5655ab
xor eax, eax
cmp edi, 0x40
pop edi
pop esi
pop ebp
setl al
pop ebx
add esp, 0x18
ret 0x14
mov eax, dword [ebp]
lea edi, [esi + 0x3f8]
push edi
push 0x684f78
push eax
call fcn.0062257e
add esp, 0xc
cmp eax, 0xffffffff
je 0x565b26
xor ebx, ebx
cmp eax, ebx
je 0x565b26
mov byte [esi + 0x3f5], 1
cmp dword [edi], ebx
jne 0x56562f
mov eax, dword [ebp]
cmp dword [eax - 0xc], ebx
jle 0x56562f
push 0x30
push eax
call fcn.006271b3
add esp, 8
cmp eax, ebx
je 0x56562f
sub eax, dword [ebp]
jne 0x56562f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
sub dword [ecx], eax
mov ecx, dword [esp + 0x38]
add dword [ecx], eax
push str.Recv_transfer_encoding_chunked__size0__eb:
mov ecx, esi
mov dword [esp + 0x1c], ebx
mov byte [esi + 0xe1], 1
call fcn.00562270
mov edx, dword [ebp]
push edx
mov ecx, esi
call fcn.00562270
push 0x67997c
mov ecx, ebp
call fcn.0054f750
mov dword [esi + 0x3fc], ebx
mov eax, dword [esi + 0x3f8]
sub eax, dword [esi + 0x3fc]
lea ebx, [esi + 0x3f8]
cmp dword [esp + 0x18], eax
jle 0x565a0d
lea ecx, [ecx]
cmp byte [esi + 0xdd], 0
je 0x5656f8
mov eax, dword [esi + 0x3ec]
mov ecx, dword [esi + 0x3f0]
mov ebp, dword [esi + 0x58]
mov edi, eax
sub edi, ecx
mov ecx, dword [esi + 0x5c]
cdq
add eax, dword [esi + 0x78]
adc edx, dword [esi + 0x7c]
sub ebp, 2
sbb ecx, 0
cmp edx, ecx
jl 0x5656a3
jg 0x56569a
cmp eax, ebp
jbe 0x5656a3
mov edi, dword [esi + 0x58]
sub edi, dword [esi + 0x78]
sub edi, 2
mov eax, dword [ebx]
sub eax, dword [esi + 0x3fc]
mov ebp, edi
cmp edi, eax
jle 0x5656b3
mov edi, eax
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x3f0]
push edi
add ecx, edx
push ecx
lea eax, [eax + esi + 0x3ac]
push eax
call fcn.00622730
add dword [esi + 0x3f0], edi
add esp, 0xc
cmp ebp, edi
je 0x565ad0
mov eax, dword [esp + 0x34]
add dword [esi + 0x3fc], edi
add dword [eax], edi
mov dword [esp + 0x1c], edi
jmp 0x56579c
mov eax, dword [ebx]
sub eax, dword [esi + 0x3fc]
cmp byte [esi + 0xdf], 0
je 0x56575b
mov ecx, dword [esi + 0x198]
mov edi, dword [esi + 0x194]
sub edi, ecx
cmp edi, eax
mov ebp, edi
jle 0x56571f
mov edi, eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
push edi
add edx, eax
push edx
lea ecx, [ecx + esi + 0x114]
push ecx
call fcn.00622730
add dword [esi + 0x198], edi
add esp, 0xc
cmp ebp, edi
je 0x565b59
mov eax, dword [esp + 0x34]
add dword [esi + 0x3fc], edi
add dword [eax], edi
mov dword [esp + 0x1c], edi
jmp 0x56579c
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x30]
add ecx, edx
push eax
push ecx
lea ecx, [esi + 0x10]
call fcn.0056b930
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
add dword [ecx], edi
add dword [esi + 0x3fc], edi
mov ecx, dword [esi + 0x3fc]
test eax, eax
je 0x565b26
mov eax, dword [ebx]
sub eax, ecx
jne 0x565b26
sub dword [esp + 0x18], edi
add dword [esp + 0x14], edi
push 0
lea edi, [esi + 0x400]
push 0x67997c
mov ecx, edi
call fcn.00402950
mov byte [esi + 0x3f5], 0
mov byte [esi + 0x3f6], 1
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x5657e8
push 0x67b29c
push eax
call fcn.00620db5
add esp, 8
test eax, eax
je 0x5657e8
sub eax, dword [edi]
jns 0x565865
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x14], ecx
jge 0x565865
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov cl, byte [eax + edx]
mov eax, dword [edi]
mov ebx, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea ebp, [ebx + 1]
sub eax, ebp
or edx, eax
mov byte [esp + 0x10], cl
jge 0x565822
push ebp
mov ecx, edi
call fcn.004020b0
mov ecx, dword [edi]
mov dl, byte [esp + 0x10]
mov byte [ebx + ecx], dl
test ebp, ebp
jl 0x56546b
mov eax, dword [edi]
cmp ebp, dword [eax - 8]
jg 0x56546b
mov dword [eax - 0xc], ebp
mov eax, dword [edi]
mov byte [eax + ebp], 0
mov eax, dword [esp + 0x30]
dec dword [eax]
mov eax, dword [esp + 0x38]
mov ecx, 1
add dword [esp + 0x14], ecx
sub dword [esp + 0x18], ecx
add dword [eax], ecx
jmp 0x5657c6
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x565b7c
push 0x67b29c
push eax
call fcn.00620db5
add esp, 8
test eax, eax
je 0x565b7c
sub eax, dword [edi]
jne 0x565b7c
push eax
push 0x67997c
mov ecx, edi
call fcn.00402950
mov byte [esi + 0x3f6], 0
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x5658c5
push 0x67b29c
push eax
call fcn.00620db5
add esp, 8
test eax, eax
je 0x5658c5
sub eax, dword [edi]
jns 0x565942
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x14], ecx
jge 0x565942
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov cl, byte [eax + edx]
mov eax, dword [edi]
mov ebx, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea ebp, [ebx + 1]
sub eax, ebp
or edx, eax
mov byte [esp + 0x10], cl
jge 0x5658ff
push ebp
mov ecx, edi
call fcn.004020b0
mov ecx, dword [edi]
mov dl, byte [esp + 0x10]
mov byte [ebx + ecx], dl
test ebp, ebp
jl 0x56546b
mov eax, dword [edi]
cmp ebp, dword [eax - 8]
jg 0x56546b
mov dword [eax - 0xc], ebp
mov eax, dword [edi]
mov byte [eax + ebp], 0
mov eax, dword [esp + 0x30]
dec dword [eax]
mov eax, dword [esp + 0x38]
mov ecx, 1
add dword [esp + 0x14], ecx
sub dword [esp + 0x18], ecx
add dword [eax], ecx
jmp 0x5658a3
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x565b97
push 0x67b29c
push eax
call fcn.00620db5
add esp, 8
test eax, eax
je 0x565b97
sub eax, dword [edi]
js 0x565b97
mov eax, dword [edi]
lea ebx, [esi + 0x3f8]
push ebx
push 0x684f78
push eax
call fcn.0062257e
add esp, 0xc
cmp eax, 0xffffffff
je 0x565b26
xor ebp, ebp
cmp eax, ebp
je 0x565b26
mov byte [esi + 0x3f5], 1
cmp dword [ebx], ebp
jne 0x5659ec
mov eax, dword [edi]
cmp dword [eax - 0xc], ebp
jle 0x5659ec
push 0x30
push eax
call fcn.006271b3
add esp, 8
cmp eax, ebp
je 0x5659ec
sub eax, dword [edi]
jne 0x5659ec
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
sub dword [ecx], eax
mov ecx, dword [esp + 0x38]
add dword [ecx], eax
push str.Recv_transfer_encoding_chunked__size0__eb:
mov ecx, esi
mov dword [esp + 0x1c], ebp
mov byte [esi + 0xe1], 1
call fcn.00562270
mov ecx, dword [edi]
push ecx
mov ecx, esi
call fcn.00562270
push ebp
push 0x67997c
mov ecx, edi
call fcn.00402950
mov dword [esi + 0x3fc], ebp
mov edx, dword [ebx]
sub edx, ebp
cmp dword [esp + 0x18], edx
jg 0x565660
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x565b4a
cmp byte [esi + 0xdd], 0
je 0x565bb7
mov eax, dword [esi + 0x3ec]
mov ebp, dword [esi + 0x3f0]
mov ebx, dword [esi + 0x58]
mov ecx, dword [esi + 0x5c]
mov edi, eax
cdq
sub edi, ebp
add eax, dword [esi + 0x78]
adc edx, dword [esi + 0x7c]
sub ebx, 2
sbb ecx, 0
cmp edx, ecx
jl 0x565a5c
jg 0x565a53
cmp eax, ebx
jbe 0x565a5c
mov edi, dword [esi + 0x58]
sub edi, dword [esi + 0x78]
sub edi, 2
mov eax, dword [esp + 0x18]
cmp edi, eax
mov ebx, edi
jle 0x565a68
mov edi, eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
push edi
add eax, ecx
push eax
lea edx, [esi + ebp + 0x3ac]
push edx
call fcn.00622730
add dword [esi + 0x3f0], edi
add esp, 0xc
cmp ebx, edi
jne 0x565b3e
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.00564aa0
test eax, eax
jne 0x565bb0
add dword [esi + 0x3fc], edi
mov eax, dword [esp + 0x34]
add dword [eax], edi
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword [ecx], edx
xor eax, eax
pop ebx
add esp, 0x18
ret 0x14
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.00564aa0
test eax, eax
jne 0x565b32
add dword [esi + 0x3fc], edi
mov eax, dword [esi + 0x3fc]
cmp dword [ebx], eax
jne 0x565b16
push 0x67997c
lea ecx, [esi + 0x400]
call fcn.0054f750
mov byte [esi + 0x3f5], 0
mov byte [esi + 0x3f6], 1
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov dword [ecx], edx
add dword [eax], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 0x14
push str.CWSONC_959_OK_n
mov ecx, esi
call fcn.00562270
mov eax, dword [esp + 0x34]
add dword [esi + 0x3fc], edi
add dword [eax], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 0x14
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.005624f0
test eax, eax
je 0x565ae8
push str.CWEOCOR_1004_OK_n
jmp 0x565b37
mov eax, dword [esi + 0x400]
xor ecx, ecx
cmp dword [eax - 0xc], 1
pop edi
setle cl
pop esi
pop ebp
pop ebx
mov eax, ecx
add esp, 0x18
ret 0x14
mov edx, dword [esi + 0x400]
pop edi
xor eax, eax
cmp dword [edx - 0xc], 0x64
pop esi
pop ebp
setle al
pop ebx
add esp, 0x18
ret 0x14
push str.CWSONC_1103_OK_n
jmp 0x565b37
cmp byte [esi + 0xdf], 0
je 0x565c56
mov eax, dword [esi + 0x198]
mov edi, dword [esi + 0x194]
sub edi, eax
cmp edi, ecx
mov ebx, edi
jle 0x565bda
mov edi, ecx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
push edi
add ecx, edx
push ecx
lea eax, [eax + esi + 0x114]
push eax
call fcn.00622730
add dword [esi + 0x198], edi
add esp, 0xc
cmp ebx, edi
jne 0x565b3e
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.005624f0
test eax, eax
jne 0x565c3e
add dword [esi + 0x3fc], edi
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov dword [edx], eax
mov eax, dword [esp + 0x34]
add dword [eax], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 0x14
push str.CWEOCOR_1135_OK_n
mov ecx, esi
call fcn.00562270
mov byte [esi + 0xde], 0
jmp 0x565b3e
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x30]
add eax, ecx
push edx
push eax
lea ecx, [esi + 0x10]
call fcn.0056b930
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
add dword [edx], ecx
add dword [esi + 0x3fc], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14