Function at 0x4c1710
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], 0x538c80
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 0x4c18ab
lea eax, [ebx - 1]
cmp dword [edi + 0xc], eax
jbe 0x4c18ab
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4c18ab
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 0x4c18be
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 0x4c18be
mov dword [esi + 0x30], 4
mov byte [esi + 0x34], al
jmp 0x4c190b
mov eax, dword [edi + 4]
mov ebx, dword [edi]
mov dword [esi + 8], eax
mov al, 2
movzx ecx, al
test ebx, ebx
jne 0x4c18d3
jmp 0x4c18df
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 0x4c18df
cmp ebx, 1
jne 0x4c1b26
add ecx, 6
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x88]
cmp ecx, edx
jae 0x4c1c14
mov edx, dword [edi + 0x84]
mov edx, dword [edx + ecx*4]
test edx, edx
js 0x4c1cc7
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.0048c010
add esp, 4
cmp dword [esi + 0x38], 0
mov ecx, dword [esi + 0x3c]
je 0x4c195e
mov dword [esi + 0x58], ecx
movzx eax, byte [ecx]
test eax, eax
je 0x4c193b
cmp eax, 1
jne 0x4c1fa0
mov ebx, dword [ecx + 4]
push ecx
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], ebx
mov dword [eax], 2
jmp 0x4c1f06
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 0x4c1b42
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 0x4c19cf
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x18]
inc eax
cmp edi, eax
je 0x4c1c1e
cmp dword [esi + 0x20], eax
je 0x4c1f44
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 0x4c1f30
mov edx, dword [edi + 0x78]
mov edi, ebx
mov edx, dword [edx + ecx*4]
test edx, edx
js 0x4c1ae1
mov ecx, edx
cmp edx, 0x7ffffff
jbe 0x4c19c0
mov eax, dword [esi + 0x18]
test ecx, 0x8000000
jne 0x4c1a50
mov edx, dword [esi + 4]
test ecx, 0x40000000
jne 0x4c1d36
test ecx, 0x20000000
je 0x4c19c6
jmp 0x4c1d63
mov eax, dword [esi + 0x54]
mov dword [esi + 0xc], 0
mov dword [esi + 8], ecx
cmp dword [eax + 0x15c], 1
jne 0x4c1a6b
mov edx, dword [esi + 4]
jmp 0x4c1ac2
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 0x4c1f5e
mov ecx, dword [eax + 0x90]
mov edx, dword [esi + 4]
mov eax, dword [ecx + ebx*8 + 4]
test eax, eax
je 0x4c1f74
mov ecx, dword [ecx + ebx*8]
test byte [ecx + 8], 2
je 0x4c1ac2
cmp eax, 0xd
jb 0x4c2000
add eax, 0xfffffff3
cmp eax, 3
jbe 0x4c1fe5
mov eax, dword [ecx + 0x15]
mov dword [esi + 0xc], eax
cmp byte [esi + 0x27], 0
mov dword [esi + 0x10], 1
jne 0x4c1d49
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 8]
mov dword [esi + 0x14], eax
jmp 0x4c19c6
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.00541b40
add esp, 4
test eax, eax
je 0x4c1a15
movzx eax, byte [0x5b9430]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov dword [eax + 4], ecx
jmp 0x4c1953
test byte [edx + 0x59], 1
jne 0x4c1be4
mov eax, dword [esi + 8]
mov dword [esi + 0x30], 2
mov dword [esi + 0x34], eax
jmp 0x4c190b
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 0x4c1c2e
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 0x4c1f30
mov edx, dword [ebx + 0x78]
mov ebx, dword [edx + ecx*4]
test ebx, ebx
js 0x4c1da8
mov ecx, dword [esi + 4]
test ebx, 0x8000000
jne 0x4c1e6f
mov edx, dword [esi + 0xc]
test ebx, 0x20000000
je 0x4c1eeb
movzx eax, byte [0x5b9430]
xor ecx, ecx
mov edx, 0xc
call fcn.0051b940
test eax, eax
je 0x4c2042
movzx ecx, byte [esi + 0x20]
mov byte [eax], 0
mov byte [eax + 1], cl
jmp 0x4c1e41
mov edx, dword [edx + 0x280]
mov edi, dword [esi + 8]
cmp dword [edx + 0x15c], edi
jbe 0x4c1c9d
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 0x4c18f0
push 0x5557fc
call fcn.0053bb10
mov ebx, edi
mov eax, dword [esi + 0x28]
mov dword [esi + 0x18], ebx
cmp edi, eax
jb 0x4c1b5d
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 0x4c1f8c
mov edx, dword [ebx + 0x78]
mov ebx, dword [edx + ecx*4]
test ebx, ebx
js 0x4c1df4
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
test ebx, 0x8000000
je 0x4c1eeb
mov eax, dword [ecx + 0x280]
xor edx, edx
mov dword [esi + 0x10], 1
cmp dword [eax + 0x15c], 1
jne 0x4c1cee
mov eax, dword [esi + 0x28]
mov dword [esi + 0x14], eax
jmp 0x4c1eeb
mov ecx, dword [esi + 4]
mov edx, 1
mov ecx, dword [ecx + 0x284]
and ecx, 0x1f
shl edx, cl
cmp ecx, 0x1b
jae 0x4c201b
or edx, 0x40000000
test edx, edx
jns 0x4c1901
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.005434e0
add esp, 0xc
jmp 0x4c190b
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 0x4c1f5e
mov eax, dword [eax + 0x90]
mov edx, dword [eax + ebx*8 + 4]
test edx, edx
je 0x4c1f74
mov eax, dword [eax + ebx*8]
test byte [eax + 8], 2
jne 0x4c1d77
mov eax, dword [esi + 0x28]
xor edx, edx
mov dword [esi + 0x14], eax
jmp 0x4c1eeb
mov ecx, eax
xor eax, eax
cmp dword [esi + 0x10], 0
mov edx, dword [esi + 0xc]
cmove edx, ecx
jmp 0x4c1ef5
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 0x4c1f06
mov ecx, eax
movzx eax, byte [0x5b9430]
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], ecx
jmp 0x4c1953
cmp edx, 0xd
jb 0x4c205b
mov edi, dword [esi + 0x28]
add edx, 0xfffffff3
cmp edx, 3
ja 0x4c1ede
mov dword [esi + 0x90], 0xffffffff
mov ecx, 4
push 0x55803c
call fcn.0053bb70
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.00541b40
add esp, 4
test eax, eax
je 0x4c1e5e
movzx eax, byte [0x5b9430]
xor ecx, ecx
mov edx, 0xc
call fcn.0051b940
test eax, eax
jne 0x4c1e3e
jmp 0x4c204c
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.00541b40
add esp, 4
test eax, eax
je 0x4c1f1a
movzx eax, byte [0x5b9430]
xor ecx, ecx
mov edx, 0xc
call fcn.0051b940
mov edi, dword [esi + 0x28]
test eax, eax
je 0x4c204c
mov byte [eax], 1
mov dword [eax + 4], edi
push eax
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], edi
jmp 0x4c1953
mov ebx, edx
mov ecx, dword [esi + 4]
test ebx, 0x8000000
je 0x4c1bab
mov eax, dword [ecx + 0x280]
xor edx, edx
mov dword [esi + 0x10], 1
cmp dword [eax + 0x15c], 1
je 0x4c1ee8
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 0x4c1f5e
mov eax, dword [eax + 0x90]
mov edx, dword [eax + ebx*8 + 4]
test edx, edx
je 0x4c1f74
mov eax, dword [eax + ebx*8]
test byte [eax + 8], 2
jne 0x4c1ec9
mov dword [esi + 0x14], edi
xor edx, edx
jmp 0x4c1eeb
cmp edx, 0xd
jb 0x4c205b
add edx, 0xfffffff3
cmp edx, 3
jbe 0x4c1d8f
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 0x4c1c7a
jmp 0x4c1eeb
mov dword [esi + 0x90], 0xffffffff
push 0x5554d0
call fcn.0053bb10
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x28]
mov dword [esi + 0x90], 0xffffffff
push 0x555ee4
call fcn.0053bb10
mov dword [esi + 0x90], 0xffffffff
mov ecx, ebx
push 0x55580c
call fcn.0053bb10
mov dword [esi + 0x90], 0xffffffff
xor ecx, ecx
xor edx, edx
push 0x5580f8
call fcn.0053bb10
mov dword [esi + 0x90], 0xffffffff
push 0x5554e0
call fcn.0053bb10
lea eax, [esi + 0x58]
lea ecx, [esi + 0x38]
mov edx, 0x555bec
mov dword [esi + 0x38], 0x555b74
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], 0x48f330
call fcn.0053ba80
ud2
mov dword [esi + 0x90], 0xffffffff
mov ecx, 4
mov edx, eax
push 0x55803c
call fcn.0053bb70
mov dword [esi + 0x90], 0xffffffff
mov ecx, 0xd
mov edx, eax
push 0x558128
call fcn.0053bab0
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 0x55581c
push 0x554594
push eax
call fcn.0053be90
mov dword [esi + 0x90], 0xffffffff
mov ecx, 4
mov edx, 0xc
call fcn.0053b730
mov dword [esi + 0x90], 0xffffffff
mov ecx, 0xd
push 0x558128
call fcn.0053bab0
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 [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
add esp, 0xc
pop ebp
ret