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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov edx, dword [sym.zsh.exe_noerrs]
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
mov ebx, dword [esp + 0x84]
test esi, esi
je 0x4a6560
test ebx, ebx
je 0x4a6498
mov dword [esp + 4], edi
mov dword [esp], esi
call sym.zsh.exe_pattry
test eax, eax
je 0x4a6741
cmp ebx, 2
jne 0x4a64e8
mov dword [esp + 4], 0
mov dword [esp], edi
call sym.zsh.exe_tildequote
mov esi, eax
jmp 0x4a64fd
mov dword [esp], edi
mov dword [esp + 0x28], edx
call sym.zsh.exe_dupstring
mov dword [esp], eax
mov ebp, eax
call sym.zsh.exe_tokenize
mov dword [esp], ebp
mov dword [sym.zsh.exe_noerrs], 1
call sym.zsh.exe_parse_subst_string
mov edx, dword [esp + 0x28]
test eax, eax
je 0x4a66f0
mov ebp, edi
mov dword [esp + 4], ebp
mov dword [esp], esi
mov dword [sym.zsh.exe_noerrs], edx
call sym.zsh.exe_pattry
test eax, eax
je 0x4a6741
xor eax, eax
test ebx, ebx
mov dword [esp], edi
sete al
mov dword [esp + 4], eax
call sym.zsh.exe_multiquote
mov esi, eax
mov dword [esp], edi
call sym.zsh.exe_dupstring
mov dword [esp], eax
mov edi, eax
call sub.cygwin1.dll_strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004a3f30
mov ecx, dword [esp + 0x80]
mov dword [ecx], eax
mov eax, dword [esp + 0x98]
mov dword [eax], 0
test ebx, ebx
jne 0x4a6553
mov dword [0x529068], 1
add esp, 0x5c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ebx, 2
je 0x4a66d0
xor eax, eax
test ebx, ebx
mov dword [esp], edi
sete al
mov dword [esp + 4], eax
call sym.zsh.exe_multiquote
mov edi, eax
mov dword [esp], edi
call sub.cygwin1.dll_strlen
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x14], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [0x529064], ebx
call fcn.004a47f0
mov ebp, eax
test eax, eax
js 0x4a6741
mov edx, dword [esp + 0x74]
test edx, edx
je 0x4a65f5
mov eax, dword [esp + 0x74]
cmp byte [eax], 0
jne 0x4a6750
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], 0
xor edx, edx
mov eax, esi
sub eax, dword [esp + 0x44]
add ecx, edi
mov dword [esp], eax
xor eax, eax
call fcn.004a09e0
mov eax, esi
sub eax, dword [esp + 0x44]
sub ebp, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], ebp
add eax, edi
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004a4410
mov eax, dword [0x529118]
mov edx, 0x4fcd7c
mov ebp, dword [0x52910c]
test eax, eax
cmove eax, edx
mov dword [esp], eax
call sym.zsh.exe_dupstring
mov esi, eax
mov eax, dword [esp + 0x80]
mov dword [eax], ebp
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4a6710
mov eax, dword [esp + 0x74]
cmp byte [eax], 0
je 0x4a6710
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov ebp, eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call sub.cygwin1.dll_strncmp
xor edx, edx
test eax, eax
jne 0x4a6727
add ebp, edi
mov eax, dword [esp + 0x74]
mov dword [esp + 4], ebp
jmp 0x4a6718
mov dword [esp], edi
mov dword [esp + 4], 0
call sym.zsh.exe_tildequote
mov edi, eax
jmp 0x4a657e
mov dword [esp], ebp
call sym.zsh.exe_remnulargs
mov dword [esp], ebp
call sym.zsh.exe_untokenize
mov edx, dword [esp + 0x28]
jmp 0x4a64ce
mov dword [esp + 4], edi
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
xor edx, edx
test eax, eax
sete dl
mov eax, dword [esp + 0x98]
mov dword [eax], edx
jmp 0x4a6545
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.004a1140
add esp, 0x5c
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x529110]
mov dword [esp], eax
mov dword [esp + 0x30], eax
call sym.zsh.exe_zhalloc
mov edx, dword [esp + 0x30]
mov ecx, eax
mov dword [esp + 0x3c], eax
mov eax, dword [0x529118]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
call sub.cygwin1.dll_memcpy
mov eax, dword [0x529104]
test eax, eax
je 0x4a69e0
mov edx, dword [sym.zsh.exe_freecl]
mov dword [esp + 0x2c], edx
test edx, edx
je 0x4a6a3a
mov edx, dword [edx]
mov dword [sym.zsh.exe_freecl], edx
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 0x24], eax
mov eax, dword [0x529108]
mov dword [ecx], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 4], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x2c], 0
mov dword [esp + 0x38], eax
test eax, eax
je 0x4a6a20
mov dword [eax], ecx
mov eax, dword [0x52910c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x14], 1
mov dword [esp + 8], eax
lea eax, [edi + ebp]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.004a47f0
mov dword [esp + 0x34], eax
test eax, eax
js 0x4a6735
mov edx, dword [0x529104]
test edx, edx
je 0x4a68f7
mov eax, dword [sym.zsh.exe_freecl]
test eax, eax
je 0x4a6a54
mov ecx, dword [eax]
mov dword [sym.zsh.exe_freecl], ecx
mov dword [eax + 0x28], edx
mov edx, dword [0x529108]
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 4], 4
mov dword [eax + 0x24], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x2c], 0
test edx, edx
je 0x4a6a30
mov dword [edx], eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x44]
mov dword [esp + 4], 1
xor edx, edx
sub eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov dword [esp], eax
xor eax, eax
add ecx, edi
call fcn.004a09e0
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 4], 1
mov dword [esp], edx
xor edx, edx
call fcn.004a09e0
lea eax, [esp + 0x4c]
mov edx, dword [esp + 0x34]
sub ebp, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x44]
sub eax, dword [esp + 0x48]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
sub edx, dword [esp + 0x48]
add ebp, edx
add eax, edi
mov dword [esp + 8], ebp
mov dword [esp], eax
call fcn.004a3f30
mov ecx, dword [esp + 0x4c]
mov ebp, eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x48]
mov dword [ecx + 0x20], eax
mov eax, dword [0x52910c]
or dword [ecx + 4], 8
test eax, eax
jne 0x4a69a2
jmp 0x4a69ac
mov eax, edx
mov edx, dword [eax]
mov dword [eax], esi
mov esi, eax
test edx, edx
jne 0x4a69a0
mov dword [ecx], eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4a6a10
mov dword [eax], ebp
mov eax, dword [0x529118]
test eax, eax
je 0x4a6a00
mov dword [esp], eax
call sym.zsh.exe_dupstring
mov edx, dword [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x80]
mov dword [eax], edx
jmp 0x4a6693
mov eax, dword [0x52910c]
mov dword [esp + 0x2c], eax
mov eax, dword [0x529108]
mov dword [esp + 0x38], eax
jmp 0x4a681d
mov dword [esp], 0x4fcd7c
jmp 0x4a69c4
mov dword [esp + 0x2c], ebp
jmp 0x4a69b8
mov eax, dword [esp + 0x2c]
mov dword [0x52910c], eax
jmp 0x4a681d
mov dword [0x52910c], eax
jmp 0x4a68f7
mov dword [esp], 0x34
call sym.zsh.exe_zhalloc
mov dword [esp + 0x2c], eax
mov eax, dword [0x529104]
jmp 0x4a67a7
mov dword [esp], 0x34
call sym.zsh.exe_zhalloc
mov edx, dword [0x529104]
jmp 0x4a6891