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

Disassembly:
sub esp, 0x14
mov eax, dword [0x1013dd8c]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x5c], 0
mov ebx, dword [edi + 0x1c]
jne 0x10004c56
mov eax, dword [edi + 0x10]
mov ecx, 0x2000016
mov eax, dword [eax + 0x6c]
cmp eax, ecx
cmovb ecx, eax
nop dword [eax]
shr ecx, 1
cmp ecx, 0x80
jb 0x10004c69
mov eax, dword [edi + 0x20]
lea edx, [ecx + 7]
and edx, 0xfffffff8
jne 0x10004c39
test ecx, ecx
jne 0x10004c20
mov esi, dword [eax + 8]
add edx, esi
cmp edx, dword [eax + 0xc]
ja 0x10004c20
cmp edx, esi
jb 0x10004c20
mov ebp, dword [eax]
mov dword [eax + 8], edx
add ebp, esi
je 0x10004c20
mov dword [edi + 0x5c], ecx
mov dword [edi + 0x40], ebp
cmp dword [ebx + 0x38], 0
jne 0x10004c9a
cmp dword [ebx + 0x3c], 0
jne 0x10004c9a
xor ebp, ebp
jmp 0x10004d2e
push str.Closing_connection__out_of_memory__n
push dword [edi + 0x10]
call fcn.100085c0
add esp, 8
mov edx, 1
mov ecx, edi
call fcn.10004a20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10065961
add esp, 0x14
ret
mov esi, dword [edi + 0x7c]
mov ecx, dword [edi + 0x78]
cmp dword [ebx + 0x44], esi
ja 0x10004ced
jb 0x10004cac
cmp dword [ebx + 0x40], ecx
ja 0x10004ced
mov ebp, dword [ebx + 0x50]
xor eax, eax
mov edx, ebp
add edx, dword [ebx + 0x40]
adc eax, dword [ebx + 0x44]
cmp eax, esi
jb 0x10004ced
ja 0x10004cc3
cmp edx, ecx
jbe 0x10004ced
mov edx, dword [edi + 0x5c]
sub ecx, dword [ebx + 0x40]
sub ebp, ecx
lea eax, [edx - 0xc]
cmp ebp, eax
jbe 0x10004cd5
lea ebp, [edx - 0xc]
mov eax, dword [ebx + 4]
add eax, ecx
push ebp
push eax
mov eax, dword [edi + 0x40]
add eax, 0xa
push eax
call fcn.100a5270
add esp, 0xc
jmp 0x10004d0a
mov eax, dword [edi + 0x5c]
sub eax, 0xc
push eax
mov eax, dword [edi + 0x40]
add eax, 0xa
push eax
mov eax, dword [ebx + 0xc]
push esi
push ecx
push dword [ebx + 8]
call eax
add esp, 0x14
mov ebp, eax
cmp ebp, 0xfffffffe
jne 0x10004d25
mov eax, dword [edi + 0x78]
mov dword [ebx + 0x38], eax
mov eax, dword [edi + 0x7c]
mov dword [ebx + 0x3c], eax
push str.Closing_connection__application_error_generating_response__n
jmp 0x10004c6e
cmp ebp, 0xffffffff
je 0x10004dbf
cmp dword [ebx + 0x38], 0
jne 0x10004d3e
cmp dword [ebx + 0x3c], 0
je 0x10004dbf
test ebp, ebp
jne 0x10004d61
mov dword [edi + 0xac], 0xf
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10065961
add esp, 0x14
ret
mov eax, 0xffffff
cmp ebp, eax
cmovg ebp, eax
lea eax, [esp + 0x14]
push ebp
push str._X_r_n
push 0xa
push eax
call fcn.10001400
mov ecx, dword [edi + 0x40]
mov esi, eax
push esi
lea eax, [esp + 0x28]
sub ecx, esi
push eax
add ecx, 0xa
push ecx
call fcn.100a5270
mov ax, word [0x101412ec]
add esp, 0x1c
mov ecx, dword [edi + 0x40]
mov word [ecx + ebp + 0xa], ax
mov eax, ebp
cdq
add dword [edi + 0x78], eax
mov eax, 0xa
adc dword [edi + 0x7c], edx
sub eax, esi
mov dword [edi + 0x60], eax
lea eax, [ebp + 0xc]
mov dword [edi + 0x64], eax
jmp 0x10004de3
mov ecx, dword [edi + 0x40]
mov eax, dword [0x10141294]
mov dword [ecx], eax
mov eax, dword [edi + 0x78]
mov dword [edi + 0x64], 3
mov dword [edi + 0x60], 0
mov dword [ebx + 0x38], eax
mov eax, dword [edi + 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.10065961
add esp, 0x14
ret