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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov esi, esp
mov dword [esi + 0x80], ebp
mov dword [esi + 0x84], esp
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x8c], 0x5387a0
lea eax, [esi + 0x88]
mov edi, dword fs:[0]
mov dword [esi + 0x88], edi
mov dword fs:[0], eax
xor eax, eax
mov edi, dword [ebp + 8]
movzx ebx, byte [edx + 0xd]
mov dword [esi + 0x7c], edi
cmp bl, 3
cmovne eax, ebx
mov ebx, dword [ebp + 0x14]
cmp al, 1
je 0x477f8f
movzx eax, al
cmp eax, 2
je 0x477f95
mov ebx, dword [ebp + 0xc]
mov dword [esi + 4], edx
mov edx, dword [ebp + 0x10]
mov dword [esi + 0xc], ecx
test ebx, ebx
je 0x477fa3
test edx, edx
js 0x47852b
lea eax, [edx - 0x7ffffff5]
cmp eax, 0x80000002
jbe 0x478548
lea edi, [edx + 0xb]
and edi, 0xfffffffc
je 0x477fac
movzx eax, byte [0x5b9430]
xor ecx, ecx
mov edx, edi
call fcn.0051b940
mov edx, dword [ebp + 0x10]
test eax, eax
jne 0x477fb1
mov ecx, 4
mov edx, edi
call fcn.0053b730
cmp dword [ebp + 8], 0
je 0x477f3b
push ebx
call fcn.004786f0
add esp, 4
jmp 0x478467
mov dword [esi + 8], 0
jmp 0x477fd2
mov eax, 4
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [esi + 8], eax
add eax, 8
push edx
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [esi + 0xc]
mov ebx, dword [esi + 4]
mov edx, dword [ebp + 8]
cmp dword [ebx + 0x20], 0
jne 0x4784eb
mov dword [ebx + 0x20], 0xffffffff
cmp dword [ebx + 0x24], 0
je 0x478504
lea eax, [ebx + 0x24]
cmp edx, 0x7ffffffe
mov dword [esi + 0x20], eax
ja 0x47812d
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x54]
mov dword [esi + 0x34], eax
sub eax, edx
jb 0x4780a2
lea ecx, [ebx + 0x4c]
xor ebx, ebx
xor edi, edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], ecx
nop word cs:[eax + eax]
nop dword [eax]
cmp ebx, eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 4
mov dword [esi + 0x2c], 0
mov dword [esi + 0x18], ebx
adc edi, 0
cmp edx, dword [ecx]
mov dword [esi + 0x1c], edi
jne 0x478070
mov dword [esi + 0x90], 3
call fcn.00414d50
mov ebx, dword [esi + 4]
mov edx, dword [ebx + 0x54]
jmp 0x478073
mov ebx, dword [esi + 4]
mov eax, dword [ebx + 0x50]
mov edi, dword [esi + 0x2c]
lea ecx, [edx + edx*2]
inc edx
mov dword [eax + ecx*4 + 8], edi
movsd xmm0, qword [esi + 0x24]
movsd qword [eax + ecx*4], xmm0
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x54], edx
cmp dword [esi + 0x18], eax
jae 0x4780a2
mov edi, dword [esi + 0x1c]
mov ecx, dword [esi + 0x10]
cmp edi, eax
mov ebx, edi
jbe 0x478030
mov ecx, dword [esi + 0x34]
cmp ecx, edx
jae 0x4784cb
mov eax, dword [esi + 4]
lea edx, [ecx + ecx*2]
mov ebx, dword [eax + 0x50]
mov eax, dword [ebp + 8]
mov edi, dword [ebx + edx*4 + 8]
sub eax, edi
mov dword [esi + 0x78], edi
mov edi, ecx
mov dword [esi + 0x1c], eax
mov al, 1
jb 0x47818f
mov eax, ebx
lea ebx, [ebx + edx*4 + 8]
lea ecx, [eax + edx*4]
mov edx, dword [esi + 0x78]
xor eax, eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ecx
jmp 0x47810c
mov ebx, dword [esi + 0x10]
mov edi, dword [esi + 0x34]
mov ecx, dword [esi + 0x14]
mov edx, dword [ebx]
mov eax, dword [ecx + 4]
mov dword [eax + edx*8], 0
mov eax, dword [esi + 0x18]
inc edx
mov dword [ebx], edx
inc eax
cmp eax, dword [esi + 0x1c]
jae 0x478152
cmp edx, dword [ecx]
mov dword [esi + 0x18], eax
jne 0x4780fb
mov byte [esi + 3], 1
mov dword [esi + 0x90], 1
call fcn.00531740
jmp 0x4780f0
mov eax, dword [esi + 8]
mov dword [esi + 0x38], 0x28
mov dword [esi + 0x3c], edx
test eax, eax
je 0x4783a9
lock dec dword [eax]
mov edx, eax
je 0x4781df
jmp 0x4781ec
cmp edx, dword [ecx]
jne 0x47816d
mov dword [esi + 0x90], 2
call fcn.00531740
mov ebx, dword [esi + 0x10]
mov edi, dword [esi + 0x34]
mov edx, dword [ebx]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [eax + edx*8], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + edx*8 + 4], ecx
inc edx
xor eax, eax
mov dword [ebx], edx
mov dword [esi + 0x90], 1
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x20]
mov byte [esi + 3], al
lea eax, [esi + 0x24]
mov dword [esi + 0x28], edi
mov dword [esi + 0x90], 1
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], 0
mov dword [esi + 0x24], 4
lea ecx, [esi + 0x38]
push eax
call fcn.004745f0
add esp, 4
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov ebx, dword [esi + 4]
mov eax, dword [ebp + 8]
test edx, edx
je 0x4781ec
cmp eax, dword [esi + 0x78]
jae 0x4781ec
lock dec dword [edx]
jne 0x4781ec
mov ecx, edx
mov edx, dword [ebp + 0x10]
call fcn.00462220
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x38]
inc dword [ebx + 0x20]
cmp eax, 0x2a
jne 0x47834e
mov edi, dword [esi + 0x3c]
mov dword [esi + 0x90], 0xffffffff
lea ecx, [esi + 0x38]
mov edx, ebx
push dword [ebp + 0x14]
call fcn.004786f0
add esp, 4
mov eax, dword [esi + 0x38]
cmp eax, 0x2a
jne 0x478353
cmp dword [ebx + 0x20], 0
mov ecx, dword [ebp + 8]
jne 0x478565
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
mov dword [ebx + 0x20], 0xffffffff
cmp dword [ebx + 0x24], 0
je 0x47856f
cmp ecx, 0x7ffffffe
ja 0x478402
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x1c], edx
mov edx, dword [esi + 0x20]
mov dword [esi + 0x18], edi
mov dword [esi + 0x90], 4
mov dword [esi + 0x28], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], 0
mov dword [esi + 0x24], 5
lea ecx, [esi + 0x38]
push eax
call fcn.004745f0
add esp, 4
mov edi, dword [esi + 4]
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0xc]
mov ecx, dword [edi + 0x20]
inc ecx
cmp eax, 0x2a
mov dword [edi + 0x20], ecx
jne 0x478413
test ecx, ecx
jne 0x478592
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
mov dword [edi + 0x20], 0xffffffff
mov dword [esi + 0x90], 5
lea ecx, [esi + 0x38]
mov dword [esi + 0x10], eax
push dword [esi + 0x1c]
push dword [esi + 0x18]
call fcn.00474a20
add esp, 8
mov edi, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ecx, dword [edi + 0x20]
inc ecx
mov dword [edi + 0x20], ecx
mov eax, dword [esi + 0x38]
cmp eax, 0x2a
jne 0x47847b
test ecx, ecx
jne 0x478592
mov edx, dword [esi + 0x20]
mov dword [edi + 0x20], 0xffffffff
mov dword [esi + 0x90], 6
lea ecx, [esi + 0x38]
push dword [esi + 0x10]
push dword [esi + 0x14]
call fcn.00474a20
add esp, 8
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x18]
inc dword [eax + 0x20]
mov eax, dword [esi + 0x38]
cmp eax, 0x2a
jne 0x47847b
mov eax, dword [esi + 0x10]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov dword [edx], 0x2a
jmp 0x478467
mov edx, dword [esi + 0x3c]
jmp 0x4783b5
mov edx, dword [esi + 0xc]
movsd xmm1, qword [esi + 0x64]
movsd xmm2, qword [esi + 0x5c]
mov ecx, dword [esi + 0x74]
movsd xmm0, qword [esi + 0x6c]
movsd qword [edx + 0x2c], xmm1
movsd xmm1, qword [esi + 0x54]
movsd qword [edx + 0x24], xmm2
movsd xmm2, qword [esi + 0x44]
mov dword [edx + 0x3c], ecx
movsd qword [edx + 0x34], xmm0
movsd qword [edx + 0x1c], xmm1
movsd xmm1, qword [esi + 0x4c]
movsd qword [edx + 0xc], xmm2
movsd qword [edx + 0x14], xmm1
movsd xmm1, qword [esi + 0x3c]
mov dword [edx], eax
movsd qword [edx + 4], xmm1
jmp 0x478467
mov eax, 0x28
mov dword [ebx + 0x20], 0
movsd xmm2, qword [esi + 0x68]
movsd xmm1, qword [esi + 0x60]
movsd xmm0, qword [esi + 0x70]
movsd qword [ecx + 0x30], xmm2
movsd qword [ecx + 0x28], xmm1
movsd xmm2, qword [esi + 0x58]
movsd xmm1, qword [esi + 0x50]
movsd qword [ecx + 0x38], xmm0
movsd qword [ecx + 0x20], xmm2
movsd qword [ecx + 0x18], xmm1
movsd xmm2, qword [esi + 0x40]
movsd xmm1, qword [esi + 0x48]
movsd qword [ecx + 0x10], xmm1
movsd qword [ecx + 8], xmm2
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x478467
mov edx, dword [esi + 0xc]
mov eax, 0x28
mov dword [ebx + 0x20], 0
jmp 0x478419
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x7c], ecx
movsd xmm2, qword [esi + 0x68]
movsd xmm1, qword [esi + 0x60]
movsd xmm0, qword [esi + 0x70]
mov ecx, dword [esi + 0x7c]
movsd qword [edx + 0x30], xmm2
movsd qword [edx + 0x28], xmm1
movsd xmm2, qword [esi + 0x58]
movsd xmm1, qword [esi + 0x50]
movsd qword [edx + 0x38], xmm0
movsd qword [edx + 0x20], xmm2
movsd qword [edx + 0x18], xmm1
movsd xmm2, qword [esi + 0x40]
movsd xmm1, qword [esi + 0x48]
movsd qword [edx + 0x10], xmm1
movsd qword [edx + 8], xmm2
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [esi + 0x88]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esi + 0x74]
movsd xmm0, qword [esi + 0x6c]
movsd xmm2, qword [esi + 0x64]
movsd xmm1, qword [esi + 0x5c]
mov dword [edx + 0x3c], ecx
movsd qword [edx + 0x34], xmm0
movsd qword [edx + 0x2c], xmm2
movsd qword [edx + 0x24], xmm1
movsd xmm2, qword [esi + 0x54]
movsd xmm1, qword [esi + 0x4c]
movsd qword [edx + 0x1c], xmm2
movsd qword [edx + 0x14], xmm1
movsd xmm1, qword [esi + 0x44]
movsd xmm2, qword [esi + 0x3c]
movsd qword [edx + 0xc], xmm1
movsd qword [edx + 4], xmm2
mov dword [edx], eax
jmp 0x478467
mov byte [esi + 3], 1
mov dword [esi + 0x90], 1
push 0x556b0c
call fcn.0053bb10
add esp, 4
jmp 0x478590
mov ecx, 0x556d44
mov dword [esi + 0x90], 0
call fcn.0053bdf0
jmp 0x478590
mov byte [esi + 3], 1
mov dword [esi + 0x90], 1
mov ecx, str.must_call_start_pattern_first
mov edx, 0x1f
push 0x556afc
call fcn.0053bf30
add esp, 4
jmp 0x478590
lea eax, [esi + 0x24]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x5546ac
push 0x5545b4
push eax
call fcn.0053be90
lea eax, [esi + 0x24]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x54b688
push 0x54b584
push eax
call fcn.0053be90
mov ecx, 0x556d54
call fcn.0053bdf0
mov dword [esi + 0x90], 4
mov ecx, str.must_call_start_pattern_first
mov edx, 0x1f
push 0x556afc
call fcn.0053bf30
add esp, 4
ud2
mov ecx, 0x556cb4
mov dword [esi + 0x90], 0xffffffff
call fcn.0053bdf0
nop word cs:[eax + eax]
push ebp
sub esp, 0xc
lea esi, [ebp - 0x94]
mov ebp, dword [esi + 0x80]
cmp dword [esi + 8], 0
je 0x4785d9
mov eax, dword [esi + 8]
lock dec dword [eax]
jne 0x4785d9
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0x10]
call fcn.00462220
add esp, 0xc
pop ebp
ret