Function at 0x514bb0
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], 0x579430
mov edi, dword [ebp + 0xc]
mov dword [esi + 0x1c], ecx
lea ecx, [esi + 0x88]
mov dword [esi + 4], edx
mov eax, dword fs:[0]
mov dword [esi + 0x88], eax
mov dword fs:[0], ecx
mov ebx, dword [edi + 0x10]
test ebx, ebx
mov dword [esi + 0x18], ebx
je 0x514d4b
lea eax, [ebx - 1]
cmp dword [edi + 0xc], eax
jbe 0x514d4b
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x514d4b
movzx eax, byte [ecx + eax]
mov ecx, dword [edx + 0x260]
mov ebx, dword [edx + 0x268]
or ebx, dword [edx + 0x278]
or ecx, dword [edx + 0x270]
mov byte [esi + 0x20], al
mov eax, dword [edx + 0x26c]
or ecx, ebx
mov ebx, dword [edx + 0x264]
or eax, dword [edx + 0x27c]
or ebx, dword [edx + 0x274]
movzx edx, byte [esi + 0x20]
or ebx, eax
movzx eax, dl
or ebx, ecx
mov ebx, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 8], ecx
je 0x514d5e
mov eax, edx
mov dword [esi + 0x7c], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x70], 1
mov dword [esi + 0x6c], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x60], 0
mov ch, dl
and al, 0x78
and ch, 7
shr al, 3
mov cl, ch
neg al
movsx edi, al
mov ebx, dword [esi + edi + 0x78]
mov eax, dword [esi + edi + 0x7c]
mov dword [esi + 0xc], edi
shld eax, ebx, cl
shl ebx, cl
not cl
mov dword [esi + 0x2c], eax
mov eax, dword [esi + edi + 0x74]
mov edx, eax
mov edi, eax
mov eax, dword [esi + 0x10]
shr edx, 1
shr edx, cl
mov cl, ch
or edx, ebx
mov ebx, dword [esi + 0xc]
shr eax, 3
and eax, 0xfffffff0
mov ebx, dword [esi + ebx + 0x70]
shld edi, ebx, cl
shl ebx, cl
mov ecx, dword [esi + 4]
mov dword [esi + 0x54], edi
add ecx, 0x260
mov dword [esi + 0xc], ecx
and edx, dword [ecx + eax + 8]
mov ecx, dword [esi + 0x2c]
mov edi, dword [esi + 0xc]
and ecx, dword [edi + eax + 0xc]
mov edi, dword [esi + 0x54]
mov dword [esi + 0x2c], ecx
mov ecx, dword [esi + 0xc]
and edi, dword [ecx + eax + 4]
and ebx, dword [ecx + eax]
movzx eax, byte [esi + 0x20]
or edi, dword [esi + 0x2c]
or ebx, edx
or edi, ebx
je 0x514d5e
mov dword [esi + 0x30], 4
mov byte [esi + 0x34], al
jmp 0x514dab
mov eax, dword [edi + 4]
mov ebx, dword [edi]
mov dword [esi + 8], eax
mov al, 2
movzx ecx, al
test ebx, ebx
jne 0x514d73
jmp 0x514d7f
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
movzx eax, byte [edx + eax + 0x60]
movzx ecx, al
test ebx, ebx
je 0x514d7f
cmp ebx, 1
jne 0x514fc6
add ecx, 6
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x88]
cmp ecx, edx
jae 0x5150b4
mov edx, dword [edi + 0x84]
mov edx, dword [edx + ecx*4]
test edx, edx
js 0x515167
mov dword [esi + 0x34], edx
mov dword [esi + 0x30], 5
mov ebx, dword [esi + 0x18]
lea edi, [esi + 0x30]
lea ecx, [esi + 0x38]
mov edx, edi
push ebx
call fcn.004df450
add esp, 4
cmp dword [esi + 0x38], 0
mov ecx, dword [esi + 0x3c]
je 0x514dfe
mov dword [esi + 0x58], ecx
movzx eax, byte [ecx]
test eax, eax
je 0x514ddb
cmp eax, 1
jne 0x515440
mov ebx, dword [ecx + 4]
push ecx
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], ebx
mov dword [eax], 2
jmp 0x5153a6
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], ecx
mov edi, dword [eax + 0x14]
mov ecx, dword [eax + 0xc]
cmp ebx, edi
mov dword [esi + 0x28], ecx
jae 0x514fe2
mov edx, dword [eax + 8]
mov eax, ecx
mov dword [esi + 0x10], 0
mov dword [esi + 0x2c], edx
mov edx, dword [esi + 4]
mov ecx, dword [edx + 0x280]
mov dword [esi + 0x54], ecx
mov ecx, dword [edx + 0x284]
and ecx, 0x1f
cmp eax, ebx
mov dword [esi + 0x5c], ecx
mov ecx, ebx
cmova ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 8]
movzx eax, byte [eax + 0x18]
mov byte [esi + 0x27], al
mov eax, ebx
jmp 0x514e6f
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x18]
inc eax
cmp edi, eax
je 0x5150be
cmp dword [esi + 0x20], eax
je 0x5153e4
mov ebx, edi
mov edi, dword [esi + 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 8], ecx
and ecx, 0x7ffffff
movzx eax, byte [edi + eax]
mov edi, dword [ebp + 8]
movzx edx, byte [edx + eax + 0x160]
add ecx, edx
mov edx, dword [edi + 0x7c]
cmp ecx, edx
jae 0x5153d0
mov edx, dword [edi + 0x78]
mov edi, ebx
mov edx, dword [edx + ecx*4]
test edx, edx
js 0x514f81
mov ecx, edx
cmp edx, 0x7ffffff
jbe 0x514e60
mov eax, dword [esi + 0x18]
test ecx, 0x8000000
jne 0x514ef0
mov edx, dword [esi + 4]
test ecx, 0x40000000
jne 0x5151d6
test ecx, 0x20000000
je 0x514e66
jmp 0x515203
mov eax, dword [esi + 0x54]
mov dword [esi + 0xc], 0
mov dword [esi + 8], ecx
cmp dword [eax + 0x15c], 1
jne 0x514f0b
mov edx, dword [esi + 4]
jmp 0x514f62
mov eax, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [esi + 0x5c]
and ebx, 0x7ffffff
shr ebx, cl
mov edx, dword [eax + 0x94]
cmp ebx, edx
jae 0x5153fe
mov ecx, dword [eax + 0x90]
mov edx, dword [esi + 4]
mov eax, dword [ecx + ebx*8 + 4]
test eax, eax
je 0x515414
mov ecx, dword [ecx + ebx*8]
test byte [ecx + 8], 2
je 0x514f62
cmp eax, 0xd
jb 0x5154a0
add eax, 0xfffffff3
cmp eax, 3
jbe 0x515485
mov eax, dword [ecx + 0x15]
mov dword [esi + 0xc], eax
cmp byte [esi + 0x27], 0
mov dword [esi + 0x10], 1
jne 0x5151e9
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 8]
mov dword [esi + 0x14], eax
jmp 0x514e66
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
shl eax, 8
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x38], ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x38]
push eax
call fcn.00583a20
add esp, 4
test eax, eax
je 0x514eb5
movzx eax, byte [0x5fd2ec]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov dword [eax + 4], ecx
jmp 0x514df3
test byte [edx + 0x59], 1
jne 0x515084
mov eax, dword [esi + 8]
mov dword [esi + 0x30], 2
mov dword [esi + 0x34], eax
jmp 0x514dab
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0x28]
mov dword [esi + 0x18], ebx
cmp edi, eax
jae 0x5150ce
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esi + 8], ecx
and ecx, 0x7ffffff
mov eax, dword [eax + 8]
movzx eax, byte [eax + edi]
mov byte [esi + 0x20], al
movzx eax, al
movzx edx, byte [edx + eax + 0x160]
add ecx, edx
mov edx, dword [ebx + 0x7c]
cmp ecx, edx
jae 0x5153d0
mov edx, dword [ebx + 0x78]
mov ebx, dword [edx + ecx*4]
test ebx, ebx
js 0x515248
mov ecx, dword [esi + 4]
test ebx, 0x8000000
jne 0x51530f
mov edx, dword [esi + 0xc]
test ebx, 0x20000000
je 0x51538b
movzx eax, byte [0x5fd2ec]
xor ecx, ecx
mov edx, 0xc
call fcn.0056a9f0
test eax, eax
je 0x5154e2
movzx ecx, byte [esi + 0x20]
mov byte [eax], 0
mov byte [eax + 1], cl
jmp 0x5152e1
mov edx, dword [edx + 0x280]
mov edi, dword [esi + 8]
cmp dword [edx + 0x15c], edi
jbe 0x51513d
mov edx, dword [esi + 8]
lea edx, [edx + edx*2]
lea ecx, [ecx + edx*2 + 0xc]
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x88]
cmp ecx, edx
jb 0x514d90
push 0x59bcd4
call fcn.0057f710
mov ebx, edi
mov eax, dword [esi + 0x28]
mov dword [esi + 0x18], ebx
cmp edi, eax
jb 0x514ffd
movzx eax, byte [edx + 0x25f]
mov ebx, dword [ebp + 8]
mov edi, ecx
and ecx, 0x7ffffff
shl eax, 0x10
add eax, 0x10001
mov edx, eax
shr edx, 0x10
add ecx, edx
mov edx, dword [ebx + 0x7c]
cmp ecx, edx
jae 0x51542c
mov edx, dword [ebx + 0x78]
mov ebx, dword [edx + ecx*4]
test ebx, ebx
js 0x515294
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
test ebx, 0x8000000
je 0x51538b
mov eax, dword [ecx + 0x280]
xor edx, edx
mov dword [esi + 0x10], 1
cmp dword [eax + 0x15c], 1
jne 0x51518e
mov eax, dword [esi + 0x28]
mov dword [esi + 0x14], eax
jmp 0x51538b
mov ecx, dword [esi + 4]
mov edx, 1
mov ecx, dword [ecx + 0x284]
and ecx, 0x1f
shl edx, cl
cmp ecx, 0x1b
jae 0x5154bb
or edx, 0x40000000
test edx, edx
jns 0x514da1
mov ecx, dword [esi + 4]
movzx eax, al
lea edx, [esi + 0x38]
mov dword [esi + 0x38], ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x30]
push eax
push dword [esi + 8]
push ebx
call fcn.005853c0
add esp, 0xc
jmp 0x514dab
mov eax, dword [ebp + 8]
movzx ecx, byte [ecx + 0x284]
and ebx, 0x7ffffff
mov edx, dword [eax + 0x94]
shr ebx, cl
cmp ebx, edx
jae 0x5153fe
mov eax, dword [eax + 0x90]
mov edx, dword [eax + ebx*8 + 4]
test edx, edx
je 0x515414
mov eax, dword [eax + ebx*8]
test byte [eax + 8], 2
jne 0x515217
mov eax, dword [esi + 0x28]
xor edx, edx
mov dword [esi + 0x14], eax
jmp 0x51538b
mov ecx, eax
xor eax, eax
cmp dword [esi + 0x10], 0
mov edx, dword [esi + 0xc]
cmove edx, ecx
jmp 0x515395
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x18]
mov dword [eax], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
jmp 0x5153a6
mov ecx, eax
movzx eax, byte [0x5fd2ec]
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], ecx
jmp 0x514df3
cmp edx, 0xd
jb 0x5154fb
mov edi, dword [esi + 0x28]
add edx, 0xfffffff3
cmp edx, 3
ja 0x51537e
mov dword [esi + 0x90], 0xffffffff
mov ecx, 4
push 0x59e514
call fcn.0057f770
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
shl eax, 8
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x38], ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x38]
push eax
call fcn.00583a20
add esp, 4
test eax, eax
je 0x5152fe
movzx eax, byte [0x5fd2ec]
xor ecx, ecx
mov edx, 0xc
call fcn.0056a9f0
test eax, eax
jne 0x5152de
jmp 0x5154ec
mov ecx, dword [esi + 4]
mov edx, edi
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x38], ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x38]
push eax
call fcn.00583a20
add esp, 4
test eax, eax
je 0x5153ba
movzx eax, byte [0x5fd2ec]
xor ecx, ecx
mov edx, 0xc
call fcn.0056a9f0
mov edi, dword [esi + 0x28]
test eax, eax
je 0x5154ec
mov byte [eax], 1
mov dword [eax + 4], edi
push eax
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], edi
jmp 0x514df3
mov ebx, edx
mov ecx, dword [esi + 4]
test ebx, 0x8000000
je 0x51504b
mov eax, dword [ecx + 0x280]
xor edx, edx
mov dword [esi + 0x10], 1
cmp dword [eax + 0x15c], 1
je 0x515388
mov eax, dword [ebp + 8]
movzx ecx, byte [ecx + 0x284]
and ebx, 0x7ffffff
mov edx, dword [eax + 0x94]
shr ebx, cl
cmp ebx, edx
jae 0x5153fe
mov eax, dword [eax + 0x90]
mov edx, dword [eax + ebx*8 + 4]
test edx, edx
je 0x515414
mov eax, dword [eax + ebx*8]
test byte [eax + 8], 2
jne 0x515369
mov dword [esi + 0x14], edi
xor edx, edx
jmp 0x51538b
cmp edx, 0xd
jb 0x5154fb
add edx, 0xfffffff3
cmp edx, 3
jbe 0x51522f
mov edx, dword [eax + 0x15]
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], edi
xor eax, eax
cmp dword [esi + 0x10], 0
cmove edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
sete al
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edx, dword [esi + 0x14]
mov dword [ecx + 8], edx
mov eax, dword [esi + 0x88]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, edx
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
test ebx, 0x8000000
jne 0x51511a
jmp 0x51538b
mov dword [esi + 0x90], 0xffffffff
push 0x59b9a8
call fcn.0057f710
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x28]
mov dword [esi + 0x90], 0xffffffff
push 0x59c3bc
call fcn.0057f710
mov dword [esi + 0x90], 0xffffffff
mov ecx, ebx
push 0x59bce4
call fcn.0057f710
mov dword [esi + 0x90], 0xffffffff
xor ecx, ecx
xor edx, edx
push 0x59e5d0
call fcn.0057f710
mov dword [esi + 0x90], 0xffffffff
push 0x59b9b8
call fcn.0057f710
lea eax, [esi + 0x58]
lea ecx, [esi + 0x38]
mov edx, 0x59c0c4
mov dword [esi + 0x38], 0x59c04c
mov dword [esi + 0x3c], 1
mov dword [esi + 0x48], 0
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], 1
mov dword [esi + 0x90], 0
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 0x4e2770
call fcn.0057f680
ud2
mov dword [esi + 0x90], 0xffffffff
mov ecx, 4
mov edx, eax
push 0x59e514
call fcn.0057f770
mov dword [esi + 0x90], 0xffffffff
mov ecx, 0xd
mov edx, eax
push 0x59e600
call fcn.0057f6b0
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], 0
lea eax, [esi + 0x38]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x59bcf4
push 0x59aa5c
push eax
call fcn.0057fa90
mov dword [esi + 0x90], 0xffffffff
mov ecx, 4
mov edx, 0xc
call fcn.0057f230
mov dword [esi + 0x90], 0xffffffff
mov ecx, 0xd
push 0x59e600
call fcn.0057f6b0
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0xc
lea esi, [ebp - 0x94]
mov ebp, dword [esi + 0x80]
push dword [esi + 0x58]
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
add esp, 0xc
pop ebp
ret