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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x90
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov eax, dword [esi + 0xac]
mov cl, byte [edi + 0x27c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x74], eax
movsd xmm0, qword [esi + 0xa4]
movsd qword [esp + 0x6c], xmm0
mov dword [esi + 0xa4], 1
and dword [esi + 0xa8], 0
and dword [esi + 0xac], 0
mov al, byte [edi + 0x50]
cmp al, 2
mov byte [esp + 4], al
mov eax, edx
call 0x581f41
pop edx
sete byte [esp + 0x38]
and eax, 0x7ffffff
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0x94]
shr eax, cl
mov ecx, dword [esi + 0x8c]
push 0x5ba404
push eax
call fcn.0040537c
pop ecx
pop edx
and dword [esi + 0x48], 0
and dword [esi + 0x64], 0
mov ecx, eax
mov dword [esp + 0x10], esi
mov eax, dword [edi + 0x278]
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov al, byte [eax + 0x15c]
add ebx, 8
mov edx, esi
mov ecx, ebx
mov byte [esp + 3], al
call fcn.0047f5e6
test eax, eax
je 0x581fd3
xor ecx, ecx
cmp eax, 0x40000000
mov ebp, eax
mov edx, 0x5bd2f4
setb cl
shl ebp, 2
call fcn.004bb341
xor ecx, ecx
add ebp, 0xd
mov edx, 0x5bd304
setae cl
call fcn.004bb341
jmp 0x581fd6
push 9
pop ebp
mov al, byte [esp + 4]
mov edx, ebx
or byte [esp + 0x38], al
mov eax, dword [esp + 0x10]
lea ecx, [eax + 0x30]
mov ebx, eax
mov dword [esp + 0x28], ecx
lea ecx, [eax + 0x98]
mov dword [esp + 0x3c], ecx
lea ecx, [eax + 0x8c]
mov dword [esp + 0x48], ecx
mov ecx, ebp
push 0x5bd2d4
push esi
call fcn.0051ca7d
pop ecx
pop ecx
mov ecx, dword [ebx + 0x38]
mov esi, eax
mov edi, edx
xor ebp, ebp
mov dword [esp + 4], 0
mov dword [esp + 0xc], ecx
test edi, edi
je 0x582111
xor edx, edx
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 8], ebp
cmp edi, edx
je 0x582050
movzx eax, byte [esi + edx]
test al, al
jns 0x582056
and eax, 0x7f
inc edx
shl eax, cl
add ecx, 7
or ebx, eax
jmp 0x582037
xor eax, eax
xor edx, edx
jmp 0x58205b
shl eax, cl
inc edx
or eax, ebx
mov ebp, dword [esp + 4]
mov ecx, eax
and eax, 1
shr ecx, 1
neg eax
xor eax, ecx
mov ecx, edx
mov edx, esi
add ebp, eax
push 0x5bd2e4
push edi
call fcn.0051ca7d
pop ecx
pop ecx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x44], ebp
mov edi, edx
mov esi, eax
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x44]
push 0x5bd790
mov dword [esp + 8], ebp
push ebp
call fcn.00470464
pop ecx
pop edx
mov eax, dword [eax]
mov ebp, dword [esp + 8]
cmp eax, ebp
jae 0x5820c9
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx + 0x38]
push 0x5bd7a0
push eax
call fcn.00470464
pop ecx
pop edx
mov ecx, dword [esp + 4]
cmp dword [eax], ecx
je 0x582025
cmp ebp, dword [esp + 0xc]
mov dword [esp + 0x50], ebp
jae 0x5828e4
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx + 0x38]
push 0x5bd770
push ebp
call fcn.00470464
pop ecx
pop edx
mov ecx, dword [esp + 4]
mov dword [eax], ecx
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x44]
push 0x5bd780
push dword [esp + 0x48]
call fcn.00470464
pop ecx
pop edx
mov dword [eax], ebp
inc ebp
mov dword [ebx + 0x48], ebp
jmp 0x582025
mov esi, dword [esp + 0x14]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
call fcn.0047ed17
test eax, eax
je 0x582304
mov ecx, dword [esi]
mov edx, dword [esi + 4]
call fcn.0047ed20
mov ecx, dword [esp + 0xa4]
mov esi, eax
mov ebx, ecx
shr ebx, 8
test cl, 1
jne 0x58215a
cmp bl, 0xa
je 0x58215f
movzx eax, bl
cmp eax, 0xd
jne 0x582182
cmp byte [esp + 3], 0
jne 0x582166
jmp 0x58217f
or esi, 0x2a
jmp 0x582182
cmp byte [esp + 3], 0
jne 0x58217f
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
call fcn.0047ed29
mov ecx, dword [esp + 0xa4]
test al, al
jne 0x582182
or esi, 0x20
mov eax, dword [esp + 0x18]
mov ebp, esi
or ebp, 8
cmp byte [eax + 0x158], bl
cmovne ebp, esi
test cl, 1
cmovne ebp, esi
mov esi, dword [esp + 0x14]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
call fcn.0047ed29
test al, al
je 0x5821d8
cmp byte [esp + 3], 0
je 0x5821c5
mov eax, dword [esp + 0xa4]
test al, 1
jne 0x5821d5
cmp bl, 0xd
je 0x5821d8
jmp 0x5821d5
mov eax, dword [esp + 0xa4]
test al, 1
jne 0x5821d5
cmp bl, 0xa
je 0x5821d8
or ebp, 0x10
mov ecx, dword [esi]
mov edx, dword [esi + 4]
call fcn.0047ed47
mov ecx, dword [esp + 0xa4]
test cl, 1
jne 0x582213
movzx ecx, bl
mov edi, 0x280
mov cl, byte [ecx + 0x5bd7c0]
test cl, cl
setne dl
xor al, dl
mov eax, 0x140
cmovne edi, eax
or edi, ebp
test cl, cl
jne 0x58222d
jmp 0x582227
test al, al
je 0x58221f
or ebp, 0x140
jmp 0x582225
or ebp, 0x280
mov edi, ebp
or edi, 0x28000
mov ecx, dword [esi]
mov edx, dword [esi + 4]
call fcn.0047ed47
test al, al
je 0x582252
mov eax, dword [esp + 0xa4]
test al, 1
jne 0x582283
movzx eax, bl
cmp byte [eax + 0x5bd7c0], 0
je 0x582283
mov ecx, dword [esi]
mov edx, dword [esi + 4]
call fcn.0047ed47
test al, al
jne 0x582289
mov eax, dword [esp + 0xa4]
and eax, 1
jne 0x582289
mov ecx, edi
movzx eax, bl
or ecx, 0x1400
cmp byte [eax + 0x5bd7c0], 0
cmovne edi, ecx
jmp 0x582289
or edi, 0x2800
mov ecx, dword [esi]
mov edx, dword [esi + 4]
call fcn.0047ed20
mov edx, esi
mov esi, eax
mov ecx, dword [edx]
mov edx, dword [edx + 4]
not esi
call fcn.0047ed17
mov ebx, dword [esp + 0x10]
and eax, esi
test eax, edi
je 0x582304
mov ecx, dword [esp + 0x28]
call fcn.0047ed65
mov ecx, ebx
mov esi, eax
mov ebx, edx
lea ebp, [ecx + 0x4c]
cmp esi, ebx
je 0x5822e2
mov eax, dword [esp + 0x2c]
mov edx, dword [esi]
add esi, 4
mov ecx, dword [eax + 0x278]
push ebp
push dword [esp + 0x40]
push edi
call fcn.0047ed84
add esp, 0xc
jmp 0x5822bf
push 0xfffffffffffffff9
pop eax
mov esi, dword [esp + 0x10]
test eax, eax
je 0x582300
mov ecx, dword [ebp + eax*4]
mov edx, dword [ebp + eax*4 + 0x1c]
mov dword [ebp + eax*4], edx
mov dword [ebp + eax*4 + 0x1c], ecx
inc eax
jmp 0x5822e9
and dword [esi + 0x64], 0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x6c]
call fcn.0047de4b
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xa4]
mov eax, dword [eax + 0x130]
test al, 0x3c
je 0x582380
mov edi, dword [esp + 0x2c]
test dl, 1
jne 0x582384
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0x158], dh
jne 0x582384
lea ebx, [esp + 0x1c]
mov ecx, ebx
call fcn.0047f040
mov edx, dword [ebx + 8]
mov ecx, dword [ebx]
mov esi, eax
or esi, 4
push 0x5bd364
push 1
call fcn.00445474
pop ecx
pop ecx
mov ebx, edx
mov edx, eax
mov ecx, esi
push ebx
call fcn.0047f04d
mov edx, dword [esp + 0xa8]
add esp, 4
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x130]
jmp 0x582384
mov edi, dword [esp + 0x2c]
test al, 0x30
je 0x5823e6
mov ecx, edx
and ecx, 0xff01
cmp byte [esp + 3], 0
je 0x582750
cmp ecx, 0xd00
jne 0x5823e6
lea ebx, [esp + 0x1c]
mov ecx, ebx
call fcn.0047f040
mov edx, dword [ebx + 8]
mov ecx, dword [ebx]
mov esi, eax
or esi, 0x10
push 0x5bd364
push 1
call fcn.00445474
pop ecx
pop ecx
mov ebx, edx
mov edx, eax
mov ecx, esi
push ebx
call fcn.0047f04d
mov edx, dword [esp + 0xa8]
add esp, 4
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x130]
and edx, 1
test eax, 0x3ffc0
mov dword [esp + 8], edx
mov dword [esp + 4], edx
je 0x582455
cmp dword [esp + 8], 0
jne 0x58241a
mov eax, dword [esp + 0xa4]
mov dword [esp + 4], 0
movzx eax, ah
cmp byte [eax + 0x5bd7c0], 0
jne 0x582455
lea ebx, [esp + 0x1c]
mov ecx, ebx
call fcn.0047f040
mov ecx, dword [ebx]
mov edx, dword [ebx + 8]
mov esi, eax
or esi, 0x14000
push 0x5bd364
push 1
call fcn.00445474
pop ecx
pop ecx
mov ebx, edx
mov ecx, esi
mov edx, eax
push ebx
call fcn.0047f04d
pop eax
mov eax, dword [esp + 8]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x28]
call fcn.0047ed65
mov ecx, dword [esp + 0xa4]
mov ebx, eax
mov eax, dword [esp + 0x10]
mov esi, edx
shr ecx, 8
add eax, 0x4c
movzx edx, cl
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], edx
cmp ebx, esi
je 0x5825a7
mov edx, dword [ebx]
mov ecx, dword [edi + 0x278]
add ebx, 4
call fcn.0047b70e
mov ecx, dword [eax]
mov ecx, dword [ecx*4 + 0x582954]
add ecx, dword [esp + 0x40]
jmp ecx
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x64], 0
je 0x58261d
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x130]
test eax, 0x3ffc0
je 0x5825ee
cmp dword [esp + 4], 0
jne 0x5825ee
movzx ecx, byte [esp + 0xc]
cmp byte [ecx + 0x5bd7c0], 0
je 0x5825ee
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
call fcn.0047f17f
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x130]
test al, 0x30
je 0x58261d
mov eax, dword [esp + 0xa4]
and eax, 0xff01
cmp byte [esp + 3], 0
je 0x582761
cmp eax, 0xa00
jne 0x58261d
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
call fcn.0047f192
mov eax, dword [esp + 0x24]
movsd xmm0, qword [esp + 0x1c]
lea ebx, [esp + 0x54]
lea edx, [esp + 0x78]
mov ecx, ebx
mov dword [edx + 8], eax
movsd qword [edx], xmm0
call fcn.0047de76
mov ecx, dword [edi + 0x278]
mov edx, dword [esp + 0x14]
push ebx
call fcn.0047f1a8
pop eax
mov eax, dword [ebx]
mov ebp, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov ebx, dword [esp + 0x10]
mov ecx, ebx
mov dword [esp + 4], eax
call fcn.0047ec8a
mov cl, byte [edi + 0x27c]
push 4
pop edx
shl edx, cl
add eax, esi
mov dword [esp + 8], esi
mov dword [esp + 0x40], ebp
lea eax, [edx + eax + 0x14]
mov edx, dword [edi + 0x280]
mov dword [esp + 0xc], eax
cmp eax, edx
mov dword [esp + 0x3c], edx
jbe 0x5826c9
mov ebp, dword [esp + 0x34]
mov ecx, edi
mov edx, ebx
push ebp
call fcn.0047f4a2
pop ecx
mov edi, dword [eax]
lock inc dword [edi]
jle 0x58293a
mov esi, dword [eax + 4]
lea ecx, [ebx + 0x20]
call fcn.0047ad1a
mov dword [ebx + 0x20], 1
mov dword [ebx + 0x24], ebp
mov dword [ebx + 0x28], edi
mov edi, dword [esp + 0x2c]
mov dword [ebx + 0x2c], esi
mov esi, dword [esp + 4]
mov ebp, dword [esp + 8]
mov ecx, ebx
mov edx, esi
push ebp
call fcn.0047f2b0
pop ecx
test eax, eax
je 0x5826f7
mov edi, dword [eax]
mov ecx, ebx
mov edx, esi
push dword [esp + 0x40]
call fcn.0047f471
pop eax
xor ebp, ebp
jmp 0x58282a
mov ecx, esi
mov edx, ebp
call fcn.0047df05
mov esi, edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
mov dword [esp + 8], eax
mov ecx, edi
mov edx, ebx
push esi
call fcn.0047e63d
pop ecx
test al, al
jne 0x58272a
mov ecx, dword [esp + 0x30]
call fcn.0047e665
test al, al
jne 0x582737
mov ecx, dword [esp + 0x30]
call fcn.0047e6da
test eax, eax
je 0x582771
lea ecx, [esp + 0x78]
call fcn.00473464
xor ebp, ebp
mov dword [esp + 8], 0
inc ebp
jmp 0x582813
cmp ecx, 0xa00
je 0x5823a3
jmp 0x5823e6
cmp eax, 0xd00
je 0x582610
jmp 0x58261d
mov ecx, dword [esp + 8]
mov ebp, edx
mov edx, esi
mov dword [esp + 0x38], esi
call fcn.0047e73a
mov esi, edi
mov edi, ebp
or edi, 0x8000000
test al, al
cmove edi, ebp
lea ebp, [ebx + 0x74]
call fcn.0047e618
mov cl, byte [esi + 0x27c]
xor ebx, ebx
mov edx, eax
inc ebx
shl ebx, cl
mov ecx, ebp
push ebx
mov ebx, dword [esp + 0x14]
call fcn.0047a85b
pop eax
lea ebp, [esi + 0x258]
mov ecx, ebp
call fcn.0047ac35
test al, al
jne 0x5827d5
mov ecx, esi
mov edx, edi
call fcn.0047e743
test al, al
je 0x5828a7
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 8]
add dword [ebx + 0x68], esi
lock inc dword [ebp]
jle 0x58293a
mov ecx, dword [esp + 0x48]
mov edx, ebp
push esi
call fcn.00479f2a
pop eax
mov ecx, ebx
mov edx, ebp
push edi
push esi
call fcn.0047af01
pop eax
pop ecx
mov eax, dword [esp + 0x30]
xor ebp, ebp
mov ebx, dword [eax + 4]
mov al, 1
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
mov ecx, ebx
push dword [esp + 0x40]
call fcn.0047f471
pop eax
cmp byte [esp + 8], 0
je 0x582898
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0xc], eax
jbe 0x58287c
movsd xmm0, qword [ebx + 0x20]
movsd xmm1, qword [ebx + 0x28]
mov esi, ebx
movsd qword [esp + 0x5c], xmm1
movsd qword [esp + 0x54], xmm0
and dword [ebx + 0x20], 0
mov eax, dword [esp + 0x54]
test eax, eax
je 0x582867
mov ecx, dword [esp + 0x58]
cmp eax, 1
xor ebx, ebx
mov dword [esp + 0x34], ecx
jmp 0x582869
mov bl, 1
lea ecx, [esp + 0x54]
call fcn.0047ad1a
test bl, bl
mov ebx, esi
jne 0x58293e
mov eax, dword [esp + 0x30]
mov edx, ebx
mov ecx, dword [eax]
push edi
push dword [esp + 0xa8]
push dword [esp + 0x3c]
call fcn.0047e7f3
add esp, 0xc
mov eax, ebp
mov edx, edi
add esp, 0x90
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.0047e772
mov ecx, ebp
lea esi, [esp + 0x54]
mov ebp, eax
mov dword [esi], ecx
and dword [esi + 4], 0
mov ecx, esi
call fcn.0047e7b8
test al, 1
je 0x5827d5
mov ecx, dword [esp + 0x2c]
movzx eax, dl
mov edx, ebx
shl eax, 8
push ebp
push eax
push edi
call fcn.0047e7f3
add esp, 0xc
jmp 0x5828bc
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
lea edx, [esp + 0x54]
mov dword [eax], ecx
lea ecx, [esp + 0x50]
mov dword [edx], ecx
mov ecx, fcn.00404681
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea eax, [esp + 0x44]
lea ecx, [esp + 0x78]
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], fcn.00473dae
mov dword [ecx], str.assertion_failed:_mid___self.len__chunk_size_must_be_non_zero
push 3
pop eax
mov dword [ecx + 4], eax
and dword [ecx + 0x10], 0
mov dword [ecx + 8], edx
mov edx, 0x5bd760
mov dword [ecx + 0xc], eax
call fcn.00580da0
ud2
ud2
push 0x28
pop edx
mov ecx, str.state_saver_does_not_have_saved_state_ID
push 0x5ba51c
call fcn.00581290
pop eax
ud2