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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc0
xor eax, eax
mov ebx, dword [edx + 0x38]
mov esi, dword [edx + 0x3c]
mov dword [esp + 0x2c], ecx
inc eax
mov dword [esp + 0x64], eax
and dword [esp + 0x68], 0
and dword [esp + 0x6c], 0
mov dword [esp + 0x7c], eax
and dword [esp + 0x80], 0
and dword [esp + 0x84], 0
mov dword [esp + 0x88], eax
and dword [esp + 0x8c], 0
and dword [esp + 0x90], 0
and dword [esp + 0xac], 0
mov dword [esp + 0x40], eax
and dword [esp + 0x44], 0
and dword [esp + 0x48], 0
mov dword [esp + 0x4c], eax
and dword [esp + 0x50], 0
and dword [esp + 0x54], 0
mov dword [esp + 0x58], eax
and dword [esp + 0x5c], 0
and dword [esp + 0x60], 0
and dword [esp + 0xb0], 0
mov dword [esp + 0x70], eax
and dword [esp + 0x74], 0
and dword [esp + 0x78], 0
mov dword [esp + 0x94], eax
and dword [esp + 0x98], 0
and dword [esp + 0x9c], 0
mov dword [esp + 0xa0], eax
and dword [esp + 0xa4], 0
and dword [esp + 0xa8], 0
and dword [esp + 0xb4], 0
and dword [esp + 0xb8], 0
sub esi, ebx
jne 0x40c6c4
lea ebx, [esp + 0x10]
mov esi, edx
mov ecx, ebx
call fcn.00447b8d
cmp dword [ebx], 0
jne 0x40c6fc
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
jmp 0x40c6e6
mov edi, dword [edx + 0x20]
add edi, ebx
mov cl, byte [edi]
test cl, cl
js 0x40c74e
mov dword [esp + 0xc], edx
xor edx, edx
xor edi, edi
movzx eax, cl
inc edi
mov esi, dword [esp + 0xc]
add edi, ebx
mov dword [esi + 0x38], edi
mov edi, edx
lea ebx, [esp + 0x10]
mov edx, esi
mov ecx, ebx
push edi
push eax
call fcn.00448133
pop eax
pop ecx
cmp dword [ebx], 0
je 0x40c70f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp eax, 4
je 0x40c73f
jmp 0x40c784
lea ebx, [esp + 0x10]
lea edx, [esp + 0x40]
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 8]
mov ecx, ebx
mov dword [esp + 8], eax
push esi
call fcn.0040eb90
pop eax
mov eax, dword [ebx]
cmp eax, 4
jne 0x40c77c
mov ecx, esi
mov edx, edi
push dword [esp + 8]
call fcn.00448189
pop eax
push 0x1f
pop ecx
mov edi, dword [esp + 0x2c]
lea esi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
jmp 0x40c79d
cmp esi, 2
jb 0x40c6a8
mov dword [esp + 0xc], edx
mov dl, byte [edi + 1]
test dl, dl
js 0x40c7a5
movzx esi, dl
and cl, 0x7f
xor edx, edx
movzx eax, cl
shl esi, 7
or esi, eax
mov eax, esi
push 2
pop edi
jmp 0x40c6db
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
and dword [esi], 0
lea ecx, [esp + 0x40]
call fcn.004057fd
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp + 0xc]
cmp esi, 0xa
jb 0x40c6a8
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], ebx
push 0xfffffffffffffff6
pop ebx
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], esi
test ebx, ebx
je 0x40c849
mov dword [esp + 8], ebx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x3c], edi
mov esi, 0
mov ebx, dword [esp + 8]
mov bl, byte [edx + ebx + 0xa]
mov edx, dword [esp + 0x28]
mov byte [esp + 7], bl
and bl, 0x7f
movzx edi, bl
xor ebx, ebx
shld ebx, edi, cl
shl edi, cl
test cl, 0x20
cmovne ebx, edi
cmovne edi, esi
mov esi, dword [esp + 0x34]
add ecx, 7
or edx, ebx
mov ebx, dword [esp + 8]
or dword [esp + 0x24], edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x28], edx
dec edi
inc ebx
cmp byte [esp + 7], 0
js 0x40c7d5
mov eax, edi
not eax
cmp esi, eax
jbe 0x40c853
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
neg edi
jmp 0x40c6db
mov byte [esp + 0x18], 4
jmp 0x40c700
push 0x44
pop edx
mov ecx, str.assertion_failed:_amt___self.limit_within_buf___self.pos_within_buf5
push 0x4cf034
call fcn.004c88c0
pop eax
ud2