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

Disassembly:
push esi
mov esi, ecx
call fcn.0041fa27
mov ecx, esi
pop esi
jmp 0x41fa59
cmp dword [ecx + 0x144], 0
js 0x41ff89
push ebp
push ebx
push edi
push esi
sub esp, 0x88
cmp dword [ecx + 0x148], 0
mov ebx, ecx
js 0x41ff7f
xor ecx, ecx
inc ecx
call fcn.004fa895
mov byte [eax], 0x20
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], 1
mov dword [esp + 0x24], ebx
mov eax, dword [ebx + 0x144]
mov esi, dword [ebx + 0x148]
mov ecx, eax
mov edx, esi
or ecx, esi
bt ecx, 0xc
jb 0x41fb51
bt ecx, 0xd
jb 0x41fb51
mov ecx, ebx
call fcn.0041d75f
mov edx, esp
lea edi, [esp + 0x34]
mov dword [edx], ebx
mov dword [edx + 4], eax
and dword [edx + 8], 0
mov ecx, edi
push 0
push 0
push str.assertion_failed:_mid___self.len__chunk_size_must_be_non_zero
call fcn.0041ff8a
add esp, 0xc
mov eax, dword [edi]
imul esi, dword [edi + 8], 0xc
lea edi, [esp + 0x60]
test esi, esi
je 0x41fb38
mov edx, dword [eax]
lea ebx, [eax + 0xc]
mov ecx, esp
push dword [eax + 8]
call fcn.00418ba2
pop eax
mov ebp, dword [esp]
mov ecx, edi
mov edx, ebp
push dword [esp + 8]
call fcn.00416208
pop eax
mov edx, dword [esp + 4]
mov ecx, ebp
call fcn.004499b4
mov ecx, edi
push 0x20
pop edx
call fcn.00418db6
add esi, 0xfffffff4
mov eax, ebx
jmp 0x41faf7
lea ecx, [esp + 0x34]
call fcn.0041de48
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 0x144]
mov edx, dword [ebx + 0x148]
or edx, eax
mov eax, dword [ebx + 0xa8]
shr edx, 0xb
and edx, 1
mov dword [esp + 0x6c], edx
jne 0x41fb6d
mov ebp, dword [ebx + 0x20]
mov esi, dword [ebx + 0x24]
jmp 0x41fb74
mov ebp, str.assertion_failed:_mid___self.len__chunk_size_must_be_non_zero
xor esi, esi
test eax, eax
je 0x41fb80
mov esi, dword [ebx + 0xb0]
mov ebp, eax
mov ecx, esi
call fcn.004fa895
mov edi, eax
mov dword [esp + 0x4c], edx
push esi
push ebp
push eax
call fcn.005669c0
add esp, 0xc
lea eax, [esp + 0x70]
mov ecx, dword [esp + 0x4c]
mov ebp, dword [ebx + 0x64]
mov dword [eax], edi
imul edi, dword [ebx + 0x6c], 0x16c
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
lea esi, [esp + 0x50]
test edi, edi
je 0x41ff5a
cmp dword [ebp + 0x120], 0
jne 0x41fd9c
mov dword [esp + 0x18], 1
and dword [esp + 0x1c], 0
and dword [esp + 0x20], 0
lea ebx, [esp + 0x18]
mov dword [esp + 0x4c], edi
mov edx, dword [ebp + 0x20]
mov ecx, ebx
push dword [ebp + 0x24]
call fcn.00416208
pop eax
mov eax, dword [ebp + 0x94]
test eax, eax
je 0x41fc5e
mov ecx, dword [ebp + 0x98]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
mov dword [esp], 0x582334
lea esi, [esp + 0x34]
mov edi, esp
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x38], fcn.00417b94
inc eax
mov dword [esp + 4], eax
and dword [esp + 0x10], 0
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], ecx
push edi
push ebx
call fcn.00418da2
pop ecx
pop edx
movzx ecx, al
mov edx, 0x582368
call fcn.004204c6
mov eax, dword [ebp + 0x1c]
cmp eax, 0x110000
jne 0x41fc72
jmp 0x41fcb7
mov eax, dword [ebp + 0x1c]
mov edi, esp
lea esi, [esp + 0x34]
cmp eax, 0x110000
je 0x41fd12
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
mov dword [esp], 0x582350
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x38], fcn.00440350
inc eax
mov dword [esp + 4], eax
and dword [esp + 0x10], 0
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
push edi
push ebx
call fcn.00418da2
pop ecx
pop edx
movzx ecx, al
mov edx, 0x582378
call fcn.004204c6
mov dword [esp], 0x62cc54
mov dword [esp + 4], 2
and dword [esp + 0x10], 0
lea ecx, [esp + 0x7c]
mov edx, edi
mov dword [esp + 0x34], ebx
mov dword [esp + 8], esi
mov dword [esp + 0x38], fcn.00417ace
mov dword [esp + 0xc], 1
call fcn.00418aaa
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
call fcn.004499b4
mov eax, dword [esp + 0x84]
movsd xmm0, qword [esp + 0x7c]
mov dword [esp + 0x20], eax
movsd qword [esp + 0x18], xmm0
lea eax, [esp + 0x70]
mov ecx, ebx
lea edx, [esp + 0x60]
lea ebx, [ebp + 0x120]
mov dword [esp + 0x34], 0x6290bc
mov dword [esp], eax
mov eax, fcn.00417ace
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
push 3
pop eax
mov dword [esp + 0x38], eax
and dword [esp + 0x44], 0
lea ecx, [esp + 0x28]
mov edx, esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], eax
call fcn.00418aaa
mov ecx, dword [ebp + 0x120]
mov edx, dword [ebp + 0x124]
call fcn.0041c1b0
mov eax, dword [esp + 0x30]
mov dword [ebx + 8], eax
movsd xmm0, qword [esp + 0x28]
movsd qword [ebx], xmm0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
call fcn.004499b4
mov edi, dword [esp + 0x4c]
lea esi, [esp + 0x50]
cmp dword [ebp + 0xa8], 0
jne 0x41fe51
xor eax, eax
cmp dword [esp + 0x78], 0
mov ecx, str.assertion_failed:_mid___self.len__chunk_size_must_be_non_zero
mov edx, 0x62d77b
lea ebx, [ebp + 0xa8]
cmovne ecx, edx
setne al
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x34], 0x6290bc
mov dword [esp + 0x18], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x1c], ecx
mov ecx, fcn.00417b94
mov dword [esp], eax
lea eax, [esp + 0x18]
mov dword [esp + 4], fcn.00417ace
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
push 3
pop eax
mov dword [esp + 0x38], eax
and dword [esp + 0x44], 0
mov ecx, esp
lea edx, [esp + 0x34]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], eax
call fcn.00418aaa
mov ecx, dword [ebp + 0xa8]
mov edx, dword [ebp + 0xac]
call fcn.0041c1b0
mov eax, dword [esp + 0x30]
mov dword [ebx + 8], eax
movsd xmm0, qword [esp + 0x28]
movsd qword [ebx], xmm0
cmp dword [ebp + 0x9c], 0
jne 0x41ff40
mov eax, dword [esp + 0x24]
cmp byte [esp + 0x6c], 0
mov ecx, dword [eax + 0x9c]
mov eax, dword [eax + 0xa4]
je 0x41fe88
test ecx, ecx
jne 0x41fe96
mov dword [esp + 0x58], str.assertion_failed:_mid___self.len__chunk_size_must_be_non_zero
and dword [esp + 0x5c], 0
jmp 0x41feac
test ecx, ecx
jne 0x41fe96
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
test eax, eax
mov ecx, 0x625ffd
mov eax, 1
jne 0x41feb3
xor eax, eax
mov ecx, str.assertion_failed:_mid___self.len__chunk_size_must_be_non_zero
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
lea ebx, [ebp + 0x9c]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x34], 0x6290bc
mov dword [esp + 0x18], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x1c], ecx
mov ecx, fcn.00417b94
mov dword [esp], eax
lea eax, [esp + 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
push 3
pop eax
mov dword [esp + 0x38], eax
and dword [esp + 0x44], 0
mov ecx, esp
lea edx, [esp + 0x34]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], eax
call fcn.00418aaa
mov ecx, dword [ebp + 0x9c]
mov edx, dword [ebp + 0xa0]
call fcn.0041c1b0
mov eax, dword [esp + 0x30]
mov dword [ebx + 8], eax
movsd xmm0, qword [esp + 0x28]
movsd qword [ebx], xmm0
mov ecx, ebp
lea ebx, [ebp + 0x16c]
call 0x41fa59
add edi, 0xfffffe94
mov ebp, ebx
jmp 0x41fbb6
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
or byte [eax + 0x147], 0x80
call fcn.004499b4
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
call fcn.004499b4
add esp, 0x88
pop esi
pop edi
pop ebx
pop ebp
ret