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

Disassembly:
push ebp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x10c
add dword [sym.zsh.exe_queueing_enabled], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
mov eax, dword [0x521368]
or eax, dword [0x521360]
mov dword [0x52131c], 0
jne 0x423a60
mov eax, dword [0x521348]
or eax, dword [0x52134c]
mov ebp, eax
jne 0x423d40
test edx, edx
jne 0x4241e8
mov eax, dword [esp + 0x2c]
mov ecx, 1
lea edx, [esp + 0x40]
call fcn.00422060
test eax, eax
je 0x4241a0
sub dword [sym.zsh.exe_queueing_enabled], 1
jne 0x423a55
mov eax, dword [sym.zsh.exe_queue_front]
cmp eax, dword [sym.zsh.exe_queue_rear]
je 0x423a55
lea esi, [esi]
add eax, 1
cdq
shr edx, 0x19
add eax, edx
and eax, 0x7f
sub eax, edx
mov dword [sym.zsh.exe_queue_front], eax
mov eax, dword [eax*4 + sym.zsh.exe_signal_mask_queue]
mov dword [esp], eax
call sym.zsh.exe_signal_setmask
mov ebx, eax
mov eax, dword [sym.zsh.exe_queue_front]
mov eax, dword [eax*4 + sym.zsh.exe_signal_queue]
mov dword [esp], eax
call sym.zsh.exe_zhandler
mov dword [esp], ebx
call sym.zsh.exe_signal_setmask
mov eax, dword [sym.zsh.exe_queue_front]
cmp eax, dword [sym.zsh.exe_queue_rear]
jne 0x423a08
add esp, 0x10c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x40]
mov ecx, 1
mov dword [esp + 0x24], eax
mov edx, eax
mov eax, edi
call fcn.00422060
test eax, eax
jne 0x423cc0
mov edx, dword [0x521370]
mov ebx, dword [esp + 0x50]
mov ebp, 1
test edx, edx
je 0x423ac3
and ebx, 0xf000
lea edx, [esp + 0xa0]
cmp ebx, 0xa000
je 0x4241c8
mov esi, dword [esp + 0x24]
mov ecx, 0x18
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 0xb0]
mov ebp, 3
mov eax, dword [0x521368]
test eax, eax
jne 0x423ff0
mov eax, ebx
and eax, 0xf000
cmp eax, 0x4000
je 0x423ff0
mov eax, dword [esp + 0x38]
mov edx, dword [0x521348]
or edx, dword [0x52134c]
mov ecx, eax
jne 0x423d64
mov eax, dword [0x521308]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym.zsh.exe_dyncat
mov dword [esp + 0x38], eax
mov eax, dword [0x52131c]
test eax, eax
jne 0x423c26
lea esi, [esi]
mov eax, dword [0x521340]
test eax, eax
je 0x423b49
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
lea eax, [esp + 0x38]
mov dword [esp + 8], 1
mov dword [esp], eax
call fcn.0046c220
test ebp, ebp
jne 0x423e70
mov eax, dword [0x521374]
test al, 0xf8
jne 0x423fa0
and eax, 0x1f00
mov ebp, eax
je 0x423f00
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0xa0]
xor ecx, ecx
mov dword [esp + 0x24], edx
call fcn.00422060
mov edx, dword [esp + 0x24]
test eax, eax
jne 0x424148
mov ecx, dword [0x52133c]
mov eax, dword [esp + 0x38]
mov ebp, 2
mov dword [ecx], eax
nop
mov eax, dword [esp + 0xc8]
mov edx, dword [esp + 0xcc]
mov dword [ecx + 0x28], eax
mov eax, dword [esp + 0xd0]
mov dword [ecx + 0x2c], edx
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0xd8]
mov dword [ecx + 0x34], eax
mov eax, dword [esp + 0xe0]
mov dword [ecx + 0x38], eax
movzx eax, word [esp + 0xb4]
mov dword [ecx + 0x3c], eax
mov eax, dword [esp + 0xd4]
mov dword [ecx + 0x44], eax
mov eax, dword [esp + 0xdc]
mov dword [ecx + 0x4c], eax
mov eax, dword [esp + 0xe4]
mov dword [ecx + 0x54], eax
mov eax, dword [0x52132c]
add ecx, 0x58
mov dword [0x52133c], ecx
add eax, 1
mov dword [0x52132c], eax
cmp eax, dword [0x521328]
je 0x423f68
mov eax, dword [0x52131c]
test eax, eax
je 0x423c45
lea edx, [eax + 4]
mov eax, dword [eax]
mov dword [0x52131c], edx
mov dword [esp], eax
call sym.zsh.exe_dupstring
mov dword [esp + 0x38], eax
test eax, eax
jne 0x423b20
sub dword [sym.zsh.exe_queueing_enabled], 1
jne 0x423a55
mov eax, dword [sym.zsh.exe_queue_front]
cmp dword [sym.zsh.exe_queue_rear], eax
je 0x423a55
lea esi, [esi]
nop
add eax, 1
cdq
shr edx, 0x19
add eax, edx
and eax, 0x7f
sub eax, edx
mov dword [sym.zsh.exe_queue_front], eax
mov eax, dword [eax*4 + sym.zsh.exe_signal_mask_queue]
mov dword [esp], eax
call sym.zsh.exe_signal_setmask
mov ebx, eax
mov eax, dword [sym.zsh.exe_queue_front]
mov eax, dword [eax*4 + sym.zsh.exe_signal_queue]
mov dword [esp], eax
call sym.zsh.exe_zhandler
mov dword [esp], ebx
call sym.zsh.exe_signal_setmask
mov eax, dword [sym.zsh.exe_queue_front]
cmp eax, dword [sym.zsh.exe_queue_rear]
jne 0x423c68
add esp, 0x10c
pop ebx
pop esi
pop edi
pop ebp
ret
sub dword [sym.zsh.exe_queueing_enabled], 1
jne 0x423a55
mov eax, dword [sym.zsh.exe_queue_front]
cmp dword [sym.zsh.exe_queue_rear], eax
je 0x423a55
nop
add eax, 1
cdq
shr edx, 0x19
add eax, edx
and eax, 0x7f
sub eax, edx
mov dword [sym.zsh.exe_queue_front], eax
mov eax, dword [eax*4 + sym.zsh.exe_signal_mask_queue]
mov dword [esp], eax
call sym.zsh.exe_signal_setmask
mov ebx, eax
mov eax, dword [sym.zsh.exe_queue_front]
mov eax, dword [eax*4 + sym.zsh.exe_signal_queue]
mov dword [esp], eax
call sym.zsh.exe_zhandler
mov dword [esp], ebx
call sym.zsh.exe_signal_setmask
mov eax, dword [sym.zsh.exe_queue_front]
cmp eax, dword [sym.zsh.exe_queue_rear]
jne 0x423ce0
add esp, 0x10c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x40]
mov ecx, 1
mov dword [esp + 0x24], eax
mov edx, eax
mov eax, dword [esp + 0x2c]
call fcn.00422060
test eax, eax
jne 0x4240d0
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [0x521308]
mov ebp, 1
mov dword [esp], eax
call sym.zsh.exe_dyncat
mov ebx, dword [0x521344]
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x423b0f
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x423b0f
mov eax, dword [ebx + 0x20]
mov esi, dword [esp + 0x24]
mov dword [0x521350], eax
mov eax, dword [ebx + 0x1c]
mov dword [0x521354], eax
mov eax, dword [ebx + 0x24]
mov dword [0x521358], eax
test byte [ebx + 0x18], 2
je 0x423e0b
lea esi, [esp + 0xa0]
test ebp, 2
jne 0x423e0b
mov eax, dword [esp + 0x50]
and eax, 0xf000
cmp eax, 0xa000
je 0x424180
mov esi, dword [esp + 0x24]
mov ecx, 0x18
lea edi, [esp + 0xa0]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 8]
mov ebp, 3
test byte [ebx + 0x18], 2
je 0x4241f1
lea esi, [esp + 0xa0]
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], edx
mov dword [esp], eax
call ecx
test eax, eax
sete al
movzx eax, al
xor eax, dword [ebx + 0x18]
test al, 1
je 0x423ee8
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
test eax, eax
je 0x424050
mov ebx, dword [esp + 0x28]
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x423d9b
jmp 0x423b0f
mov esi, ebp
and esi, 2
je 0x423f18
mov ebx, ebp
and ebx, 1
mov ecx, dword [0x52133c]
mov eax, dword [esp + 0x38]
mov dword [ecx], eax
test ebx, ebx
je 0x423ed6
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x70]
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x78]
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0x80]
mov dword [ecx + 0x20], eax
movzx eax, word [esp + 0x54]
mov dword [ecx + 0x24], eax
mov eax, dword [esp + 0x74]
mov dword [ecx + 0x40], eax
mov eax, dword [esp + 0x7c]
mov dword [ecx + 0x48], eax
mov eax, dword [esp + 0x84]
mov dword [ecx + 0x50], eax
test esi, esi
jne 0x423ba0
jmp 0x423bfb
mov ebx, dword [ebx]
test ebx, ebx
jne 0x423d90
jmp 0x423b0f
mov ecx, dword [0x52133c]
mov eax, dword [esp + 0x38]
mov dword [ecx], eax
jmp 0x423bfb
mov esi, dword [0x521374]
mov ebx, ebp
and ebx, 1
and esi, 0x1f00
je 0x423e80
or ebp, 2
mov eax, dword [esp + 0x50]
lea edx, [esp + 0xa0]
and eax, 0xf000
cmp eax, 0xa000
je 0x424160
lea esi, [esp + 0x40]
mov ecx, 0x18
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov esi, 2
jmp 0x423e80
add eax, eax
mov dword [0x521328], eax
imul eax, eax, 0x58
mov dword [esp + 4], eax
mov eax, dword [0x521338]
mov dword [esp], eax
call sym.zsh.exe_zrealloc
imul edx, dword [0x52132c], 0x58
mov dword [0x521338], eax
add eax, edx
mov dword [0x52133c], eax
jmp 0x423c1d
mov eax, dword [esp + 0x2c]
mov ecx, 1
lea edx, [esp + 0x40]
call fcn.00422060
mov esi, dword [0x521374]
and esi, 0x1f00
je 0x423fd0
mov ebx, 1
mov ebp, 3
jmp 0x423f32
mov ecx, dword [0x52133c]
mov eax, dword [esp + 0x38]
mov ebp, 1
mov dword [ecx], eax
jmp 0x423e90
mov edi, dword [esp + 0x2c]
mov dword [esp], edi
call sub.cygwin1.dll_strlen
mov esi, eax
lea eax, [eax + 2]
mov dword [esp], eax
call sym.zsh.exe_hcalloc
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 0x38], eax
call sub.cygwin1.dll_strcpy
mov dword [esp], ebx
mov edx, dword [esp + 0x38]
add edx, esi
call sym.zsh.exe_file_type
mov byte [edx], al
mov eax, dword [esp + 0x38]
mov byte [eax + esi + 1], 0
mov eax, dword [0x521348]
or eax, dword [0x52134c]
jne 0x423d60
mov ecx, dword [esp + 0x38]
jmp 0x423afa
sub dword [sym.zsh.exe_queueing_enabled], 1
jne 0x423a55
mov eax, dword [sym.zsh.exe_queue_front]
cmp dword [sym.zsh.exe_queue_rear], eax
je 0x423a55
nop
add eax, 1
cdq
shr edx, 0x19
add eax, edx
and eax, 0x7f
sub eax, edx
mov dword [sym.zsh.exe_queue_front], eax
mov eax, dword [eax*4 + sym.zsh.exe_signal_mask_queue]
mov dword [esp], eax
call sym.zsh.exe_signal_setmask
mov ebx, eax
mov eax, dword [sym.zsh.exe_queue_front]
mov eax, dword [eax*4 + sym.zsh.exe_signal_queue]
mov dword [esp], eax
call sym.zsh.exe_zhandler
mov dword [esp], ebx
call sym.zsh.exe_signal_setmask
mov eax, dword [sym.zsh.exe_queue_front]
cmp eax, dword [sym.zsh.exe_queue_rear]
jne 0x424070
add esp, 0x10c
pop ebx
pop esi
pop edi
pop ebp
ret
sub dword [sym.zsh.exe_queueing_enabled], 1
jne 0x423a55
mov eax, dword [sym.zsh.exe_queue_front]
cmp eax, dword [sym.zsh.exe_queue_rear]
je 0x423a55
nop
add eax, 1
cdq
shr edx, 0x19
add eax, edx
and eax, 0x7f
sub eax, edx
mov dword [sym.zsh.exe_queue_front], eax
mov eax, dword [eax*4 + sym.zsh.exe_signal_mask_queue]
mov dword [esp], eax
call sym.zsh.exe_signal_setmask
mov ebx, eax
mov eax, dword [sym.zsh.exe_queue_front]
mov eax, dword [eax*4 + sym.zsh.exe_signal_queue]
mov dword [esp], eax
call sym.zsh.exe_zhandler
mov dword [esp], ebx
call sym.zsh.exe_signal_setmask
mov eax, dword [sym.zsh.exe_queue_front]
cmp eax, dword [sym.zsh.exe_queue_rear]
jne 0x4240f0
jmp 0x423a55
mov eax, dword [esp + 0x2c]
mov ecx, 1
call fcn.00422060
jmp 0x423b8d
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov dword [esp + 0x24], edx
call fcn.00422060
mov edx, dword [esp + 0x24]
test eax, eax
jne 0x423f4d
jmp 0x423f5a
mov eax, dword [esp + 0x2c]
xor ecx, ecx
lea edx, [esp + 0xa0]
call fcn.00422060
test eax, eax
jne 0x423de0
jmp 0x423df2
mov eax, dword [esp + 0x38]
mov ebp, 1
mov dword [esp + 4], eax
mov eax, dword [0x521308]
mov dword [esp], eax
call sym.zsh.exe_dyncat
mov dword [esp + 0x38], eax
jmp 0x423b0f
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov dword [esp + 0x28], edx
call fcn.00422060
mov edx, dword [esp + 0x28]
test eax, eax
jne 0x423aaa
jmp 0x423ab7
mov ecx, dword [esp + 0x2c]
jmp 0x423afa
mov esi, dword [esp + 0x24]
jmp 0x423e0b