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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x9c
mov ebp, dword [esp + 0xb4]
mov ebx, dword [esp + 0xb0]
mov esi, edx
mov dword [esp + 0x5c], ecx
push 0x2f
pop edi
mov ecx, edx
mov edx, edi
call fcn.00512a27
mov ecx, esi
mov edx, edi
call fcn.00512a27
mov eax, dword [esi + 8]
mov dword [esp + 0x38], ebx
mov dword [esp + 4], ebx
mov edi, dword [esi + 0x18]
mov dword [esp + 0x10], esi
mov dword [esp + 0x3c], ebp
mov dword [esp], ebp
mov dword [esp + 8], 0
mov dword [esp + 0x54], eax
lea eax, [esp + 0x14]
mov dword [eax], ebx
mov ebx, dword [esi + 0x1c]
xor esi, esi
mov dword [eax + 4], ebp
lea ecx, [esp + 0x14]
call fcn.00512c6d
cmp eax, 0x40
je 0x514e2f
cmp eax, 0x5c
je 0x514e60
cmp eax, 0x23
je 0x514e6d
cmp eax, 0x2f
je 0x514e6d
cmp eax, 0x110000
je 0x514e6d
cmp eax, 0x3f
jne 0x514e6a
jmp 0x514e6d
test edi, edi
je 0x514e4c
xor eax, eax
cmp dword [esp + 8], 0
setne al
lea eax, [eax*8 + 2]
push eax
push edi
call dword [ebx + 0x14]
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebp, esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
jmp 0x514e6a
cmp byte [esp + 0xb8], 2
jne 0x514e6d
inc esi
jmp 0x514e04
cmp dword [esp + 8], 0
mov ebx, dword [esp + 0x54]
je 0x514ffc
test ebp, ebp
je 0x514fac
lea edi, [esp + 0x78]
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 4], 0
test ebp, ebp
jle 0x514f80
mov ecx, edi
lea edx, [esp + 0x38]
mov esi, edi
call fcn.00516a54
mov eax, dword [esp + 0x78]
cmp eax, 0x110000
je 0x5157cb
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
cmp eax, 0x3a
jne 0x514edb
cmp dword [esp + 0x30], 0
je 0x514f44
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 4]
cmp byte [esp + 0x34], 0
mov dword [esp], ebp
mov ebp, ebx
mov ebx, dword [esp + 0x10]
mov edx, 1
movzx ecx, cl
cmove ecx, edx
mov edx, dword [ebx + 0x1c]
mov dword [esp + 4], ecx
mov ecx, dword [ebx + 0x18]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push eax
call fcn.00516ada
add esp, 0xc
mov eax, dword [esp + 0x58]
mov ecx, ebx
mov ebx, ebp
mov ebp, dword [esp]
mov edx, esi
mov dword [esp + 0x78], edi
mov edi, esi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0x631fc0
call fcn.00464213
dec ebp
jmp 0x514ea0
mov eax, dword [esp + 0x10]
mov ecx, ebp
dec ebp
mov edi, esi
cmp ecx, 1
mov ebx, dword [eax + 8]
mov eax, 1
mov dword [esp + 0x30], eax
jbe 0x514ea0
mov ecx, dword [esp + 0x10]
push 0x3a
pop edx
call fcn.00512a27
mov al, 1
mov dword [esp + 0x34], eax
xor eax, eax
inc eax
mov dword [esp + 0x30], eax
jmp 0x514ea0
cmp dword [esp + 0x30], 0
jne 0x514f8e
mov eax, dword [esp + 0x10]
mov ebx, dword [eax + 8]
mov eax, dword [esp + 4]
and al, 1
or al, byte [esp + 0x34]
je 0x514fa6
push 0x40
pop edx
mov ecx, dword [esp + 0x10]
call fcn.00512a27
mov edx, dword [esp + 8]
jmp 0x515007
mov esi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
lea edi, [esp + 0x78]
mov ecx, edi
mov edx, esi
push ebx
call fcn.00516c6f
pop eax
mov eax, dword [edi]
lea ecx, [eax - 0x23]
cmp ecx, 0x1c
ja 0x514fe6
mov edx, 0x10001001
bt edx, ecx
jae 0x514fe6
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 4], 0
jmp 0x514ffc
cmp eax, 0x110000
jne 0x515432
mov dword [esp], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 4], esi
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov dword [esp + 0xc], eax
test edx, edx
je 0x5156f7
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
lea edi, [esp + 0x14]
mov dword [esp + 0x60], edx
mov dword [esp + 0x30], ebx
mov eax, dword [eax + 8]
mov dword [esp + 0x64], esi
mov dword [esp + 0x34], eax
mov al, byte [esp + 0xb8]
test al, al
movzx eax, al
mov dword [esp + 0x58], eax
je 0x51513f
mov dword [edi], edx
mov dword [edi + 4], esi
sub esi, edx
xor ebp, ebp
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0xc], esi
xor esi, esi
xor ebx, ebx
inc esi
mov ecx, edi
call fcn.004b9fa2
lea ecx, [eax - 9]
cmp ecx, 2
jb 0x5150bb
cmp eax, 0xd
je 0x5150bb
cmp eax, 0x3a
je 0x5150c3
cmp eax, 0x5b
je 0x5150cb
cmp eax, 0x5c
je 0x5150d3
cmp eax, 0x5d
je 0x5150e0
cmp eax, 0x23
je 0x5150fe
cmp eax, 0x2f
je 0x5150fe
cmp eax, 0x110000
je 0x5150fe
cmp eax, 0x3f
je 0x5150fe
inc ebx
cmp eax, 0x80
jb 0x5150e8
cmp eax, 0x800
jae 0x5150f1
push 2
pop eax
jmp 0x5150ea
mov al, 1
mov dword [esp + 4], eax
jmp 0x5150e8
test byte [esp], 1
jne 0x5150dd
jmp 0x5150fe
mov al, 1
inc ebx
mov dword [esp], eax
jmp 0x5150e8
cmp byte [esp + 0xb8], 2
jne 0x5150fe
inc ebx
jmp 0x5150e8
inc ebx
mov dword [esp], 0
mov eax, esi
add ebp, eax
jmp 0x515069
cmp eax, 0x10000
push 4
pop eax
sbb eax, 0
jmp 0x5150ea
test byte [esp + 4], 1
jne 0x5151a3
lea edi, [esp + 0x14]
lea eax, [esp + 0x60]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov ecx, edi
call fcn.00517391
cmp eax, 0x110000
jne 0x515116
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push 0x632008
push ebp
call fcn.00516295
pop ecx
pop ecx
mov esi, eax
mov edi, edx
jmp 0x5151b9
mov ecx, edi
push esi
call fcn.005171f1
pop eax
mov bl, byte [edi]
cmp byte [edi + 0xc], 2
je 0x5156f7
movzx eax, bl
lea ebx, [esp + 0x14]
movzx edi, byte [ebx + 3]
movzx ecx, word [ebx + 1]
mov ebp, dword [ebx + 4]
mov esi, dword [ebx + 0x14]
shl ecx, 8
shl edi, 0x18
or edi, ecx
mov ecx, dword [ebx + 0x10]
or edi, eax
mov edx, edi
mov dword [esp], ecx
mov ecx, ebx
push dword [ebx + 8]
call fcn.00512d54
pop eax
mov cl, byte [ebx]
cmp cl, 3
jne 0x515380
mov bl, byte [esp + 0x15]
mov ecx, edi
mov edx, ebp
call fcn.0044c034
jmp 0x5156f7
lea edi, [esp + 0x6c]
lea edx, [esp + 0x60]
mov ecx, edi
push ebx
call fcn.00512ca4
pop eax
mov esi, dword [edi]
mov edi, dword [edi + 8]
cmp byte [esp + 0xb8], 1
mov dword [esp + 8], esi
je 0x515234
cmp dword [esp + 0x58], 2
jne 0x51523c
mov ecx, esi
mov edx, edi
push 0x5b
call fcn.0044aea7
pop ecx
test al, al
je 0x5152b7
mov ecx, esi
mov edx, edi
push 0x5d
call fcn.0044af0a
pop ecx
mov cl, 3
test al, al
je 0x51544e
mov eax, edi
mov ecx, esi
mov edx, edi
dec eax
push 0x631e10
push eax
push 1
call fcn.0051358c
add esp, 0xc
mov edi, edx
lea ebx, [esp + 0x14]
mov edx, eax
mov ecx, ebx
push edi
call fcn.005135c6
pop eax
cmp byte [ebx], 0
je 0x51576e
mov bl, byte [esp + 0x15]
mov cl, 3
jmp 0x515450
test edi, edi
je 0x5153f1
lea ebx, [esp + 0x14]
mov edx, esi
mov ecx, ebx
push edi
call fcn.00512d54
pop eax
mov cl, byte [ebx]
cmp cl, 3
jne 0x51525d
mov bl, byte [esp + 0x15]
mov cl, 3
jmp 0x515450
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
movzx eax, word [esp + 0x16]
test byte [esp + 4], 1
mov bl, byte [esp + 0x15]
mov dword [esp + 0xc], edx
mov dword [esp + 0x4c], esi
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov word [esp + 0x2e], ax
mov dword [esp + 0x50], edx
mov dword [esp + 0x68], esi
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
mov dword [esp], edx
je 0x515471
mov edi, ecx
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 8]
call fcn.0044c034
mov ecx, edi
jmp 0x515471
mov eax, esi
lea ebx, [esp + 0x1c]
mov ebp, 0x3a801
add eax, edi
mov dword [ebx - 8], esi
mov dword [ebx - 4], edi
mov dword [ebx], esi
mov esi, 0x4800013
mov dword [ebx + 4], eax
and dword [ebx + 8], 0
mov ecx, ebx
call fcn.00512a76
lea eax, [edx - 0x2f]
cmp eax, 0x11
ja 0x5152f0
bt ebp, eax
jb 0x515377
lea eax, [edx - 9]
cmp eax, 0x1a
ja 0x5152fd
bt esi, eax
jb 0x515377
lea eax, [edx - 0x5b]
cmp eax, 4
jb 0x515377
test edx, edx
je 0x515377
cmp edx, 0x7c
je 0x515377
cmp edx, 0x110000
jne 0x5152d8
lea esi, [esp + 0x38]
mov eax, dword [esp + 8]
lea ebx, [esp + 0x14]
mov dword [esi], 1
and dword [esi + 4], 0
and dword [esi + 8], 0
mov dword [ebx], eax
mov dword [ebx + 4], edi
mov dword [ebx + 8], 0x631e00
mov ecx, ebx
call fcn.0046424e
test eax, eax
je 0x5157a1
push edx
push eax
push esi
call fcn.00502831
add esp, 0xc
test al, al
je 0x51533c
push 0x37
pop edx
mov ecx, str.a_Display_implementation_returned_an_error_unexpectedly_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_src_string.rs
push 0x63c818
push 0x631b28
push ebx
call fcn.005812d0
add esp, 0xc
ud2
mov cl, 3
mov bl, 5
jmp 0x515450
movsd xmm0, qword [esp + 0x16]
movsd xmm1, qword [esp + 0x1e]
movzx eax, word [esp + 0x26]
mov bl, byte [esp + 0x15]
test cl, cl
mov dword [esp + 8], ebp
mov dword [esp + 4], ecx
movsd qword [esp + 0x3a], xmm0
movsd qword [esp + 0x42], xmm1
mov word [esp + 0x4a], ax
mov byte [esp + 0x38], cl
mov byte [esp + 0x39], bl
jne 0x5153f7
lea ecx, [esp + 0x3c]
call fcn.0051737b
test al, al
je 0x5153f7
lea ecx, [esp + 0x38]
call fcn.00512d40
xor eax, eax
mov dword [esp + 4], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
inc eax
mov dword [esp + 0xc], eax
jmp 0x515421
mov cl, 3
xor ebx, ebx
jmp 0x515450
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
movzx eax, word [esp + 0x3a]
mov dword [esp + 0xc], edx
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov word [esp + 0x2e], ax
mov dword [esp + 0x50], edx
mov dword [esp + 0x68], ecx
mov edx, dword [esp + 8]
mov ecx, edi
call fcn.0044c034
mov ecx, dword [esp + 4]
jmp 0x515471
cmp byte [esp + 0xb8], 2
je 0x514ff1
cmp eax, 0x5c
je 0x514fd7
jmp 0x514ff1
mov bl, 4
test byte [esp + 4], 1
je 0x515468
mov edi, ecx
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 8]
call fcn.0044c034
mov ecx, edi
cmp cl, 3
je 0x5156f7
movzx eax, word [esp + 0x2e]
lea edi, [esp + 0x38]
mov dword [esp + 0x14], 0x63d800
mov word [edi + 2], ax
mov eax, dword [esp + 0xc]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x50]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x68]
mov dword [edi + 0x10], eax
xor eax, eax
mov byte [edi], cl
lea ecx, [esp + 0x6c]
mov byte [edi + 1], bl
inc eax
mov dword [ecx], edi
mov dword [ecx + 4], 0x5127ec
mov dword [esp + 0x18], eax
and dword [esp + 0x24], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
mov ebx, dword [esp + 0x14]
push ebx
call fcn.00512a03
pop ecx
pop edx
movzx ecx, al
mov edx, 0x631fd0
call fcn.005170e6
mov eax, dword [ebx + 8]
cmp byte [edi], 0
mov dword [esp + 4], eax
jne 0x515524
cmp dword [esp + 0x44], 0
jne 0x515524
mov ecx, dword [esp]
mov edx, esi
push 1
push 0x63ba51
call fcn.00514302
pop ecx
pop edx
xor ebx, ebx
cmp byte [esp + 0xb8], 2
jne 0x5156ee
test al, al
jne 0x5156ee
mov ecx, dword [esp]
mov edx, esi
push 0x3a
call fcn.005157e0
pop ecx
xor ebp, ebp
test eax, eax
je 0x5155ee
mov ecx, dword [esp + 0x10]
mov esi, edx
mov edx, eax
lea edi, [esp + 0x14]
xor ebx, ebx
mov eax, esi
mov cl, byte [ecx + 0x20]
mov byte [esp + 8], cl
mov esi, eax
mov ecx, edi
mov dword [esp], edx
push eax
call fcn.00516c6f
pop eax
mov eax, dword [esp + 0x14]
cmp eax, 0x110000
je 0x5155b4
lea ecx, [eax - 0x30]
cmp ecx, 0xa
jae 0x515592
imul eax, ebp, 0xa
add ecx, eax
cmp ecx, 0xffff
ja 0x5156ec
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov bl, 1
mov ebp, ecx
jmp 0x515552
cmp byte [esp + 8], 0
jne 0x5155b4
lea ecx, [eax - 0x23]
cmp ecx, 0x1c
ja 0x5155ab
mov edx, 0x10001001
bt edx, ecx
jb 0x5155b4
cmp eax, 0x5c
jne 0x5156ec
test bl, 1
je 0x5155ee
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
mov ecx, dword [eax]
push 0x631ff8
push dword [esp + 0xc0]
call fcn.00516295
pop ecx
pop ecx
mov ecx, eax
call fcn.00513aa4
test ax, ax
je 0x51571d
cmp dx, bp
jne 0x51571d
xor ebx, ebx
mov eax, dword [esp + 0x48]
movsd xmm0, qword [esp + 0x38]
movsd xmm1, qword [esp + 0x40]
lea edi, [esp + 0x80]
lea edx, [esp + 0x14]
mov ecx, edi
mov dword [edx + 0x10], eax
movsd qword [edx + 8], xmm1
movsd qword [edx], xmm0
call fcn.00512d02
mov eax, dword [esp + 0x34]
movsd xmm0, qword [edi + 1]
movsd xmm1, qword [edi + 9]
cmp dword [esp + 0x54], eax
mov al, byte [edi]
movsd qword [esp + 0x38], xmm0
movsd qword [esp + 0x40], xmm1
je 0x515651
test al, al
jne 0x515651
mov eax, dword [esp + 0x5c]
mov byte [eax + 4], 0
jmp 0x5156fe
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x10]
mov byte [esp + 0x54], al
mov edx, dword [esp + 0x58]
mov eax, dword [ebx + 8]
mov ecx, ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x78]
mov byte [eax], 1
push esi
push dword [esp + 4]
push eax
call fcn.0051710c
add esp, 0xc
mov dword [esp], eax
mov eax, edx
push 9
pop ecx
lea edx, [esp + 0x78]
mov esi, ebx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov cl, byte [esp + 0x54]
movsd xmm0, qword [esp + 0x38]
movsd xmm1, qword [esp + 0x40]
mov byte [esp + 0x14], cl
mov ecx, dword [esp + 0x5c]
movsd qword [esp + 0x15], xmm0
movsd qword [esp + 0x1d], xmm1
push eax
push dword [esp + 4]
push dword [esp + 0x14]
push ebp
push dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x50]
push dword [esp + 0x50]
push dword [esp + 0xe0]
push dword [esp + 0x80]
call fcn.00515e99
add esp, 0x2c
jmp 0x515712
mov bl, 2
lea ecx, [esp + 0x38]
call fcn.00512d40
mov eax, dword [esp + 0x5c]
mov byte [eax + 4], bl
mov edx, dword [esp + 0x10]
mov dword [eax], 2
mov ecx, dword [edx]
mov edx, dword [edx + 4]
call fcn.0044c034
add esp, 0x9c
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
mov dword [esp + 0x14], 0x631fe0
lea eax, [esp + 0x60]
inc ebx
mov dword [esp + 0x6c], eax
mov word [eax], bp
lea eax, [esp + 0x6c]
mov dword [esp + 0x70], fcn.0043e430
mov dword [esp + 0x18], ebx
and dword [esp + 0x24], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
push edi
push dword [esp + 0x14]
call fcn.00512a03
pop ecx
pop edx
movzx ecx, al
mov edx, 0x631fe8
call fcn.005170e6
jmp 0x5155f0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
movzx eax, word [esp + 0x16]
mov bl, byte [esp + 0x15]
mov dword [esp + 0xc], edx
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x20]
movzx ecx, byte [esp + 0x24]
mov word [esp + 0x2e], ax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x50], edx
mov cl, 2
jmp 0x5157bb
mov eax, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
mov dword [esp], eax
jmp 0x515450
push 0x2b
pop edx
mov ecx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
push 0x631fb0
call fcn.00580fe0
pop eax
ud2