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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [edx + 8]
imul ebx, eax, 0xb8
add ebx, dword [ecx + 0x38]
cmp dword [ecx + 0x40], eax
mov dword [esp + 8], 3
jbe 0x537bee
mov edi, edx
lea eax, [esp + 8]
push eax
call fcn.0051765f
pop eax
cmp byte [ebx + 0xa2], 0
je 0x537bfa
push 2
pop eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x633a1b
mov dword [esi + 0x10], 0x21
and dword [esi + 4], 0
mov dword [esi], eax
jmp 0x537d52
mov dword [esi + 8], 3
jmp 0x537d48
mov eax, dword [ebx + 0x68]
lea ecx, [ebx + 0x60]
cmp eax, 3
je 0x537d01
mov dword [esp + 0x3c], ecx
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x54]
mov edx, dword [edi]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
and dword [esp + 8], 0
and dword [esp + 0xc], 0
mov ecx, dword [edi + 4]
lea eax, [esp + 8]
push eax
mov dword [esp + 8], edx
push edx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0xc], ecx
call dword [ecx + 0x2c]
lea ecx, [esp + 0x34]
add esp, 0xc
xor eax, eax
cmp dword [ecx], eax
jne 0x537d37
push 0x1e
pop ecx
xor edx, edx
inc edx
call fcn.0055c09d
lea ecx, [esp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], 0x1e
call fcn.00567ab5
mov dword [esp + 0x50], edx
push edx
mov dword [esp + 0x58], eax
push eax
push dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
call dword [eax + 0x20]
add esp, 0x10
lea eax, [esp + 8]
cmp byte [eax], 4
je 0x537ca2
cmp byte [esp + 8], 4
jne 0x537d9f
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
cmp edx, 0x1e
jne 0x537d86
cmp dword [ecx], 0x4034b50
jne 0x537dc5
mov dword [esp + 0x28], 0x4034b50
mov al, byte [ecx + 6]
mov byte [esp + 0x2e], al
movzx eax, word [ecx + 4]
mov word [esp + 0x2c], ax
mov eax, dword [ecx + 7]
mov dword [esp + 4], eax
mov eax, dword [ecx + 0xb]
mov dword [esp + 0x24], eax
movzx eax, word [ecx + 0x1a]
mov word [esp + 0x44], ax
movzx eax, word [ecx + 0x1c]
mov word [esp + 0x42], ax
mov al, 1
mov dword [esp], eax
jmp 0x537de3
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
lea edx, [esp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x14], ecx
and dword [esp + 0xc], 0
and dword [esp + 8], 0
lea ecx, [esp + 0x28]
push edx
push dword [edi]
push ecx
call dword [eax + 0x2c]
add esp, 0xc
xor eax, eax
lea ecx, [esp + 0x28]
cmp dword [ecx], eax
je 0x537d5a
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
and dword [esi + 4], 0
mov dword [esi], 2
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp word [ebx + 0x78], 2
jne 0x537d65
push 2
jmp 0x537d72
cmp word [ebx + 0x20], 0
je 0x537ec1
push 4
pop eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x63ccf0
mov dword [esi + 0x10], 0x20
jmp 0x537d48
mov dword [esp + 0x2b], 1
push 0x13
pop eax
mov dword [esp + 0x24], eax
mov dword [esp + 4], 0x633ab4
jmp 0x537ddc
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
and dword [esp + 0x2b], 0
mov dword [esp], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], eax
jmp 0x537de3
mov dword [esp + 0x2b], 1
push 0x19
pop eax
mov dword [esp + 0x24], eax
mov dword [esp + 4], 0x633a9b
mov dword [esp], 0
call fcn.00448429
cmp byte [esp], 0
je 0x537ea3
lea eax, [ebx + 0x68]
movzx ecx, word [esp + 0x44]
lea edx, [esp + 8]
mov dword [esp], eax
movzx eax, word [esp + 0x42]
add eax, ecx
mov ecx, dword [ebx + 0x54]
add eax, dword [ebx + 0x50]
adc ecx, 0
add eax, 0x1e
adc ecx, 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x4c], ecx
and dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov eax, dword [ebx + 0x68]
cmp eax, 3
je 0x537e4a
mov eax, dword [esp]
mov eax, dword [eax]
cmp eax, 3
jne 0x537f04
mov eax, dword [esp + 8]
or eax, dword [esp + 0xc]
je 0x537eb4
mov eax, dword [esp]
mov eax, dword [eax]
cmp eax, 3
jne 0x537f48
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x4c]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
xor edx, ecx
mov dword [esp], edx
mov edx, dword [esp + 0x48]
xor edx, eax
or edx, dword [esp]
lea edx, [esp + 8]
je 0x537d0a
and dword [esp + 8], 0
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 8]
lea edx, [esp + 0x48]
push eax
call fcn.005815e0
jmp 0x537f5a
mov eax, dword [esp + 0x2b]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x24]
jmp 0x537d3f
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
jmp 0x537d0a
mov eax, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x44]
and dword [esi + 8], 0
mov dword [esi + 0xc], 0x20
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 0x6337d8
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
and dword [esi + 4], 0
mov dword [esi], 1
push 2
pop eax
and dword [esi + 0x2c], 0
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0xd0], eax
jmp 0x537d52
lea eax, [esp + 8]
lea ecx, [esp + 0x28]
xor edx, edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
inc edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x47]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x58]
mov dword [eax], ecx
mov ecx, dword [esp]
push 0x6333ec
push 0x63338c
push eax
call fcn.00583720
lea edx, [esp + 0x14]
add esp, 0xc
jmp 0x537e4a
push 0x2b
pop edx
mov ecx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
push 0x6337b8
call fcn.00580f20
pop eax
ud2