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

Disassembly:
push ebp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0xac
mov ebx, dword [esp + 0xc4]
mov dword [esp + 0x50], eax
mov eax, edx
mov dword [esp + 0x54], ecx
mov edx, dword [edi + 0x28]
mov ecx, dword [eax + 0x28]
test ebx, ebx
cmove ecx, dword [eax + 0x24]
cmove edx, dword [edi + 0x24]
mov eax, ecx
test edx, edx
je 0x4a3aa1
mov ebp, edx
test ecx, ecx
je 0x4a3ae3
mov dword [esp + 0x60], ecx
mov eax, dword [edx + 4]
mov dword [esp + 0x70], 0
mov dword [esp + 0x30], 0
lea esi, [esi]
nop
mov edx, dword [esp + 0x60]
and eax, 0x20
mov dword [esp + 0x24], eax
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x9c], edx
jne 0x4a3480
mov eax, dword [esp + 0xc4]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [esp], eax
lea eax, [esp + 0x60]
call fcn.004a0bb0
mov edi, eax
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x4a3764
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4a3850
mov eax, dword [esp + 0x80]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 4]
or eax, 0x22
mov dword [ebp + 4], eax
jmp 0x4a3380
mov eax, dword [esp + 0xc4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp], eax
lea eax, [esp + 0x60]
call fcn.004a0bb0
mov edi, eax
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x4a3764
lea ecx, [ebp + 0xc]
mov dword [esp + 0x24], 1
mov dword [esp + 0x38], ecx
lea ecx, [ebp + 8]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 4]
sub eax, edi
mov dword [esp + 0x28], eax
and ecx, 0x40
mov esi, ecx
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
add eax, edi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x4a3502
mov edx, dword [esp + 0xc4]
lea eax, [esp + 0x60]
call fcn.004a0b00
test eax, eax
jne 0x4a39fd
mov eax, dword [esp + 0x70]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x40], eax
test edx, edx
je 0x4a3527
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
add dword [esp + 0x3c], ebx
add eax, ecx
mov dword [esp + 0x40], eax
mov ebx, dword [sym.zsh.exe_bmatchers]
test ebx, ebx
je 0x4a39fd
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x4c], ebp
mov ebp, esi
mov dword [esp + 0x48], edi
cmp ecx, eax
cmovle eax, ecx
mov dword [esp + 0x44], eax
jmp 0x4a3587
test ebp, ebp
jne 0x4a3570
mov eax, dword [esi + 0x18]
cmp eax, dword [esp + 0x44]
jle 0x4a3880
lea esi, [esi]
mov eax, 1
mov ebx, dword [ebx]
test ebx, ebx
je 0x4a3780
test al, al
je 0x4a3780
mov esi, dword [ebx + 4]
test esi, esi
je 0x4a3570
mov eax, dword [esi + 8]
test eax, eax
jne 0x4a3570
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x4a3570
mov edx, dword [esi + 0x10]
test edx, edx
jle 0x4a3570
cmp dword [esp + 0x28], edx
jl 0x4a3558
cmp eax, dword [esp + 0x2c]
jg 0x4a3558
mov edi, dword [esp + 0xc4]
mov ecx, dword [esi + 0x14]
test edi, edi
je 0x4a3870
mov edi, dword [esp + 0x40]
sub edi, eax
mov eax, dword [esp + 0x3c]
sub eax, edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call sym.zsh.exe_pattern_match
test eax, eax
je 0x4a3558
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x68]
mov edx, dword [esi + 0x10]
mov esi, dword [esp + 0xc4]
sub ecx, eax
mov edi, dword [esp + 0x48]
mov dword [esp + 0x24], ecx
mov ebp, dword [esp + 0x4c]
lea ecx, [ebx + eax]
test esi, esi
je 0x4a361e
sub dword [esp + 0x3c], edx
mov ecx, ebx
sub ecx, eax
mov eax, dword [esp + 0x24]
mov esi, dword [sym.zsh.exe_freecl]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x70], eax
test esi, esi
je 0x4a3d41
mov eax, dword [esi]
mov dword [sym.zsh.exe_freecl], eax
mov eax, dword [esp + 0x3c]
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 4], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x10], eax
mov eax, 2
mov ecx, dword [esp + 0x38]
mov dword [esi + 4], eax
lea eax, [edi + edx]
mov ebx, dword [ecx]
cmp eax, ebx
je 0x4a3bb0
mov ecx, dword [esp + 0x34]
sub ebx, edi
sub ebx, edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0xc4]
add eax, edx
test ecx, ecx
cmove edx, eax
mov eax, dword [sym.zsh.exe_freecl]
test eax, eax
je 0x4a3bdd
mov ecx, dword [eax]
mov dword [sym.zsh.exe_freecl], ecx
mov dword [eax], 0
mov dword [eax + 0x10], edx
mov edx, dword [ebp]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 4], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x2c], 0
mov dword [eax], edx
mov dword [esi], eax
test edi, edi
je 0x4a3bbd
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x4a3759
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
sub eax, edi
add dword [ecx], eax
mov eax, dword [esp + 0x38]
mov dword [eax], edi
mov dword [ebp], esi
mov ebp, esi
mov edx, dword [ebp]
test edx, edx
je 0x4a39a8
mov dword [esp + 0x30], ebp
mov eax, dword [edx + 4]
mov ebp, edx
jmp 0x4a3380
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4a3a10
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x4a3b69
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov esi, dword [ebp + 4]
mov eax, dword [eax]
mov ebx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [sym.zsh.exe_freecl]
sub ebx, edi
test edx, edx
jne 0x4a3b37
mov edi, dword [esp + 0x28]
add edi, dword [ebp + 0x10]
test eax, eax
je 0x4a3d5c
mov edx, dword [eax]
mov dword [sym.zsh.exe_freecl], edx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], ebx
mov dword [eax + 0x28], 0
mov edi, dword [esp + 0x54]
mov dword [eax + 0x24], 0
mov edx, dword [ebp]
mov dword [eax + 0x18], 0
mov dword [eax], edx
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 4], esi
mov dword [eax + 0x30], 0
mov dword [eax + 0x2c], 0
mov dword [edi], eax
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
mov dword [eax], edi
mov dword [ebp], 0
jmp 0x4a3a30
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x20]
lea ecx, [ebp + 0x14]
sub dword [ebp + 0xc], edx
mov dword [esp + 0x38], ecx
lea ecx, [ebp + 0x10]
mov dword [esp + 0x34], ecx
jmp 0x4a34bc
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
jmp 0x4a35cd
mov ecx, dword [esp + 0xc4]
mov edx, dword [esi + 0x14]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
test ecx, ecx
je 0x4a3945
mov ecx, dword [esp + 0x3c]
mov dword [esp], edx
sub ecx, eax
mov dword [esp + 4], ecx
call sym.zsh.exe_pattern_match
mov edi, eax
test eax, eax
jne 0x4a3a61
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 0
sub eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call sym.zsh.exe_pattern_match
test eax, eax
je 0x4a3570
mov eax, dword [esi + 0x10]
add eax, eax
mov dword [esp], eax
call sym.zsh.exe_zhalloc
mov ecx, dword [esp + 0x40]
sub ecx, dword [esi + 0x18]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
xor edi, edi
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, esi
call fcn.004a24f0
test eax, eax
jne 0x4a3c52
test edi, edi
sete al
jmp 0x4a3575
mov eax, dword [esp + 0x3c]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.zsh.exe_pattern_match
mov edi, eax
test eax, eax
jne 0x4a3a8a
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call sym.zsh.exe_pattern_match
test eax, eax
je 0x4a3570
mov eax, dword [esi + 0x10]
add eax, eax
mov dword [esp], eax
call sym.zsh.exe_zhalloc
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x58], eax
jmp 0x4a3904
mov ebx, dword [esp + 0x70]
test ebx, ebx
jne 0x4a39b8
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x4a39c0
mov eax, dword [esp + 0x50]
or dword [eax + 4], 1
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4a39ce
mov dword [eax], 0
mov edx, dword [esp + 0xc0]
test edx, edx
je 0x4a39f2
mov edx, dword [esp + 0xc4]
lea eax, [esp + 0x60]
call fcn.004a0900
mov edi, dword [esp + 0xc0]
mov dword [edi], eax
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4a3798
lea esi, [esi]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a3c19
mov dword [eax], 0
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4a3c45
mov dword [eax], ebp
mov ebp, dword [esp + 0x54]
test ebp, ebp
je 0x4a3a43
mov edi, dword [esp + 0xc0]
test edi, edi
jne 0x4a39d9
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0xc0]
or dword [eax + 4], 1
test esi, esi
jne 0x4a39d9
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x10]
add eax, eax
mov dword [esp], eax
call sym.zsh.exe_zhalloc
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esi + 0x18]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x5c], eax
jmp 0x4a3912
mov eax, dword [esi + 0x10]
add eax, eax
mov dword [esp], eax
call sym.zsh.exe_zhalloc
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
jmp 0x4a3a79
mov edi, dword [esp + 0x54]
test edi, edi
je 0x4a3aaf
mov dword [edi], 0
mov ebp, dword [esp + 0xc0]
test ebp, ebp
je 0x4a3ac3
mov edi, dword [esp + 0xc0]
mov dword [edi], eax
test eax, eax
je 0x4a39f2
mov edi, dword [eax + 0x14]
test edi, edi
je 0x4a39f2
mov eax, dword [esp + 0x50]
or dword [eax + 4], 1
jmp 0x4a39f2
mov esi, dword [esp + 0xc4]
mov eax, dword [esp + 0x50]
test esi, esi
je 0x4a3b2e
mov dword [eax + 0x28], 0
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4a3c38
mov dword [eax], ebp
mov ebx, dword [esp + 0xc0]
test ebx, ebx
je 0x4a39f2
mov eax, dword [esp + 0xc0]
mov dword [eax], 0
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [eax + 0x24], 0
jmp 0x4a3af9
add edi, dword [ebp + 8]
test eax, eax
je 0x4a3d6d
mov edx, dword [eax]
mov dword [sym.zsh.exe_freecl], edx
mov dword [eax], 0
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
jmp 0x4a37fb
mov ecx, dword [esp + 0xc4]
test ecx, ecx
je 0x4a3b88
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
sub eax, dword [esp + 0x28]
add dword [edi], eax
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
mov dword [eax], edi
mov eax, dword [ebp]
mov dword [esp], eax
call fcn.004a1140
mov dword [ebp], 0
jmp 0x4a3a43
mov eax, dword [ebp]
mov dword [esi], eax
test edi, edi
jne 0x4a373c
mov dword [ebp], 0
mov dword [esp], ebp
call fcn.004a1140
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a3bf6
mov dword [eax], esi
mov ebp, esi
jmp 0x4a3764
mov dword [esp], 0x34
mov dword [esp + 0x24], edx
call sym.zsh.exe_zhalloc
mov edx, dword [esp + 0x24]
jmp 0x4a36db
mov ebx, dword [esp + 0xc4]
mov eax, dword [esp + 0x50]
test ebx, ebx
je 0x4a3c0f
mov dword [eax + 0x28], esi
mov ebp, esi
jmp 0x4a3764
mov dword [eax + 0x24], esi
mov ebp, esi
jmp 0x4a3764
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0x50]
test edx, edx
je 0x4a3d35
mov dword [eax + 0x28], 0
jmp 0x4a3a22
mov dword [esp], ebp
call fcn.004a1140
jmp 0x4a3b07
mov dword [esp], ebp
call fcn.004a1140
jmp 0x4a3a43
mov ebx, edi
mov ebp, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov edx, eax
mov ecx, dword [esi + 0x18]
test ebx, ebx
je 0x4a3c69
mov edx, ecx
mov ecx, eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xc4]
mov ebx, eax
add eax, ecx
sub ebx, ecx
test edx, edx
cmovne eax, ebx
mov ebx, dword [esi + 0x10]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
sub dword [esp + 0x70], ecx
call sym.zsh.exe_zlelineasstring
mov esi, dword [sym.zsh.exe_freecl]
mov edx, dword [esp + 0x24]
mov ecx, eax
test esi, esi
je 0x4a3d7e
mov eax, dword [esi]
mov dword [sym.zsh.exe_freecl], eax
mov dword [esi], 0
mov eax, 0x42
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 4], 0x40
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
jmp 0x4a369a
mov dword [eax + 0x24], 0
jmp 0x4a3a22
mov dword [esp], 0x34
mov dword [esp + 0x24], edx
call sym.zsh.exe_zhalloc
mov edx, dword [esp + 0x24]
mov esi, eax
jmp 0x4a363f
mov dword [esp], 0x34
call sym.zsh.exe_zhalloc
jmp 0x4a37e1
mov dword [esp], 0x34
call sym.zsh.exe_zhalloc
jmp 0x4a3b4a
mov dword [esp], 0x34
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
call sym.zsh.exe_zhalloc
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov esi, eax
jmp 0x4a3cd9