Function at 0x511bee
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.0050f8f2
mov ecx, esi
mov edx, edi
call fcn.0050f8f2
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.0050fabc
cmp eax, 0x40
je 0x511c7f
cmp eax, 0x5c
je 0x511cb0
cmp eax, 0x23
je 0x511cbd
cmp eax, 0x2f
je 0x511cbd
cmp eax, 0x110000
je 0x511cbd
cmp eax, 0x3f
jne 0x511cba
jmp 0x511cbd
test edi, edi
je 0x511c9c
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 0x511cba
cmp byte [esp + 0xb8], 2
jne 0x511cbd
inc esi
jmp 0x511c54
cmp dword [esp + 8], 0
mov ebx, dword [esp + 0x54]
je 0x511e4c
test ebp, ebp
je 0x511dfc
lea edi, [esp + 0x78]
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 4], 0
test ebp, ebp
jle 0x511dd0
mov ecx, edi
lea edx, [esp + 0x38]
mov esi, edi
call fcn.005138a4
mov eax, dword [esp + 0x78]
cmp eax, 0x110000
je 0x51261b
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
cmp eax, 0x3a
jne 0x511d2b
cmp dword [esp + 0x30], 0
je 0x511d94
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.0051392a
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], 0x623f44
call fcn.00461953
dec ebp
jmp 0x511cf0
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 0x511cf0
mov ecx, dword [esp + 0x10]
push 0x3a
pop edx
call fcn.0050f8f2
mov al, 1
mov dword [esp + 0x34], eax
xor eax, eax
inc eax
mov dword [esp + 0x30], eax
jmp 0x511cf0
cmp dword [esp + 0x30], 0
jne 0x511dde
mov eax, dword [esp + 0x10]
mov ebx, dword [eax + 8]
mov eax, dword [esp + 4]
and al, 1
or al, byte [esp + 0x34]
je 0x511df6
push 0x40
pop edx
mov ecx, dword [esp + 0x10]
call fcn.0050f8f2
mov edx, dword [esp + 8]
jmp 0x511e57
mov esi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
lea edi, [esp + 0x78]
mov ecx, edi
mov edx, esi
push ebx
call fcn.00513abf
pop eax
mov eax, dword [edi]
lea ecx, [eax - 0x23]
cmp ecx, 0x1c
ja 0x511e36
mov edx, 0x10001001
bt edx, ecx
jae 0x511e36
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 4], 0
jmp 0x511e4c
cmp eax, 0x110000
jne 0x512282
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 0x512547
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 0x511f8f
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.004b73f0
lea ecx, [eax - 9]
cmp ecx, 2
jb 0x511f0b
cmp eax, 0xd
je 0x511f0b
cmp eax, 0x3a
je 0x511f13
cmp eax, 0x5b
je 0x511f1b
cmp eax, 0x5c
je 0x511f23
cmp eax, 0x5d
je 0x511f30
cmp eax, 0x23
je 0x511f4e
cmp eax, 0x2f
je 0x511f4e
cmp eax, 0x110000
je 0x511f4e
cmp eax, 0x3f
je 0x511f4e
inc ebx
cmp eax, 0x80
jb 0x511f38
cmp eax, 0x800
jae 0x511f41
push 2
pop eax
jmp 0x511f3a
mov al, 1
mov dword [esp + 4], eax
jmp 0x511f38
test byte [esp], 1
jne 0x511f2d
jmp 0x511f4e
mov al, 1
inc ebx
mov dword [esp], eax
jmp 0x511f38
cmp byte [esp + 0xb8], 2
jne 0x511f4e
inc ebx
jmp 0x511f38
inc ebx
mov dword [esp], 0
mov eax, esi
add ebp, eax
jmp 0x511eb9
cmp eax, 0x10000
push 4
pop eax
sbb eax, 0
jmp 0x511f3a
test byte [esp + 4], 1
jne 0x511ff3
lea edi, [esp + 0x14]
lea eax, [esp + 0x60]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov ecx, edi
call fcn.005141e1
cmp eax, 0x110000
jne 0x511f66
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push 0x623f8c
push ebp
call fcn.005130e5
pop ecx
pop ecx
mov esi, eax
mov edi, edx
jmp 0x512009
mov ecx, edi
push esi
call fcn.00514041
pop eax
mov bl, byte [edi]
cmp byte [edi + 0xc], 2
je 0x512547
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.0050fba4
pop eax
mov cl, byte [ebx]
cmp cl, 3
jne 0x5121d0
mov bl, byte [esp + 0x15]
mov ecx, edi
mov edx, ebp
call fcn.004499b4
jmp 0x512547
lea edi, [esp + 0x6c]
lea edx, [esp + 0x60]
mov ecx, edi
push ebx
call fcn.0050faf3
pop eax
mov esi, dword [edi]
mov edi, dword [edi + 8]
cmp byte [esp + 0xb8], 1
mov dword [esp + 8], esi
je 0x512084
cmp dword [esp + 0x58], 2
jne 0x51208c
mov ecx, esi
mov edx, edi
push 0x5b
call fcn.0044882c
pop ecx
test al, al
je 0x512107
mov ecx, esi
mov edx, edi
push 0x5d
call fcn.00448856
pop ecx
mov cl, 3
test al, al
je 0x51229e
mov eax, edi
mov ecx, esi
mov edx, edi
dec eax
push 0x623d94
push eax
push 1
call fcn.005103dc
add esp, 0xc
mov edi, edx
lea ebx, [esp + 0x14]
mov edx, eax
mov ecx, ebx
push edi
call fcn.00510416
pop eax
cmp byte [ebx], 0
je 0x5125be
mov bl, byte [esp + 0x15]
mov cl, 3
jmp 0x5122a0
test edi, edi
je 0x512241
lea ebx, [esp + 0x14]
mov edx, esi
mov ecx, ebx
push edi
call fcn.0050fba4
pop eax
mov cl, byte [ebx]
cmp cl, 3
jne 0x5120ad
mov bl, byte [esp + 0x15]
mov cl, 3
jmp 0x5122a0
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 0x5122c1
mov edi, ecx
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 8]
call fcn.004499b4
mov ecx, edi
jmp 0x5122c1
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.0050f941
lea eax, [edx - 0x2f]
cmp eax, 0x11
ja 0x512140
bt ebp, eax
jb 0x5121c7
lea eax, [edx - 9]
cmp eax, 0x1a
ja 0x51214d
bt esi, eax
jb 0x5121c7
lea eax, [edx - 0x5b]
cmp eax, 4
jb 0x5121c7
test edx, edx
je 0x5121c7
cmp edx, 0x7c
je 0x5121c7
cmp edx, 0x110000
jne 0x512128
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], 0x623d84
mov ecx, ebx
call fcn.0046198e
test eax, eax
je 0x5125f1
push edx
push eax
push esi
call fcn.00500edb
add esp, 0xc
test al, al
je 0x51218c
push 0x37
pop edx
mov ecx, str.a_Display_implementation_returned_an_error_unexpectedly_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_src_string.rs
push 0x62dac0
push 0x623aac
push ebx
call fcn.00576e10
add esp, 0xc
ud2
mov cl, 3
mov bl, 5
jmp 0x5122a0
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 0x512247
lea ecx, [esp + 0x3c]
call fcn.005141cb
test al, al
je 0x512247
lea ecx, [esp + 0x38]
call fcn.0050fb8f
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 0x512271
mov cl, 3
xor ebx, ebx
jmp 0x5122a0
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.004499b4
mov ecx, dword [esp + 4]
jmp 0x5122c1
cmp byte [esp + 0xb8], 2
je 0x511e41
cmp eax, 0x5c
je 0x511e27
jmp 0x511e41
mov bl, 4
test byte [esp + 4], 1
je 0x5122b8
mov edi, ecx
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 8]
call fcn.004499b4
mov ecx, edi
cmp cl, 3
je 0x512547
movzx eax, word [esp + 0x2e]
lea edi, [esp + 0x38]
mov dword [esp + 0x14], 0x62e9c0
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], 0x50f6a1
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.0050f8ce
pop ecx
pop edx
movzx ecx, al
mov edx, 0x623f54
call fcn.00513f36
mov eax, dword [ebx + 8]
cmp byte [edi], 0
mov dword [esp + 4], eax
jne 0x512374
cmp dword [esp + 0x44], 0
jne 0x512374
mov ecx, dword [esp]
mov edx, esi
push 1
push 0x62cc39
call fcn.00511152
pop ecx
pop edx
xor ebx, ebx
cmp byte [esp + 0xb8], 2
jne 0x51253e
test al, al
jne 0x51253e
mov ecx, dword [esp]
mov edx, esi
push 0x3a
call fcn.00512630
pop ecx
xor ebp, ebp
test eax, eax
je 0x51243e
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.00513abf
pop eax
mov eax, dword [esp + 0x14]
cmp eax, 0x110000
je 0x512404
lea ecx, [eax - 0x30]
cmp ecx, 0xa
jae 0x5123e2
imul eax, ebp, 0xa
add ecx, eax
cmp ecx, 0xffff
ja 0x51253c
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov bl, 1
mov ebp, ecx
jmp 0x5123a2
cmp byte [esp + 8], 0
jne 0x512404
lea ecx, [eax - 0x23]
cmp ecx, 0x1c
ja 0x5123fb
mov edx, 0x10001001
bt edx, ecx
jb 0x512404
cmp eax, 0x5c
jne 0x51253c
test bl, 1
je 0x51243e
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
mov ecx, dword [eax]
push 0x623f7c
push dword [esp + 0xc0]
call fcn.005130e5
pop ecx
pop ecx
mov ecx, eax
call fcn.005108f4
test ax, ax
je 0x51256d
cmp dx, bp
jne 0x51256d
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.0050fb51
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 0x5124a1
test al, al
jne 0x5124a1
mov eax, dword [esp + 0x5c]
mov byte [eax + 4], 0
jmp 0x51254e
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.00513f5c
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.00512ce9
add esp, 0x2c
jmp 0x512562
mov bl, 2
lea ecx, [esp + 0x38]
call fcn.0050fb8f
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.004499b4
add esp, 0x9c
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
mov dword [esp + 0x14], 0x623f64
lea eax, [esp + 0x60]
inc ebx
mov dword [esp + 0x6c], eax
mov word [eax], bp
lea eax, [esp + 0x6c]
mov dword [esp + 0x70], fcn.0043e220
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.0050f8ce
pop ecx
pop edx
movzx ecx, al
mov edx, 0x623f6c
call fcn.00513f36
jmp 0x512440
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 0x51260b
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 0x5122a0
push 0x2b
pop edx
mov ecx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
push 0x623f34
call fcn.00576b20
pop eax
ud2