Function at 0x423aa0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4b633c
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x4ef7d0]
xor eax, esp
mov dword [esp + 0xc4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ef7d0]
xor eax, esp
push eax
lea eax, [esp + 0xdc]
mov dword fs:[0], eax
xor esi, esi
cmp byte [esp + 0xec], 0
mov edi, ecx
mov dword [esp + 0x20], esi
jne 0x423b09
mov eax, dword [0x4e65b8]
cmp byte [eax + 0x18], 0
jne 0x423b09
cmp byte [esp + 0xf4], 0
jne 0x423b09
mov al, 1
jmp 0x423fe3
or ebp, 0xffffffff
cmp byte [esp + 0xf0], 0
je 0x423bff
cmp dword [0x4e6614], esi
jne 0x423b44
push esi
push 0x2712
lea ecx, [esp + 0x20]
call fcn.0042c080
mov ebx, dword [eax]
mov dword [esp + 0xe4], esi
mov dword [esp + 0x20], 1
jmp 0x423b58
cmp dword [0x4e6618], 0x10
mov ebx, dword [0x4e6604]
jae 0x423b58
mov ebx, 0x4e6604
push esi
push 0x2710
lea ecx, [esp + 0x1c]
call fcn.0042c080
mov esi, eax
push 0
push 0xc361
lea ecx, [esp + 0x24]
mov dword [esp + 0xec], 1
call fcn.0042c080
mov eax, dword [eax]
push ebx
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0xf0], 2
call fcn.004010e0
mov esi, dword [esi]
mov eax, dword [eax]
mov edx, dword [edi + 4]
add esp, 0xc
push 0x33
push esi
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, eax
mov eax, dword [esp + 0x24]
push eax
call fcn.0049ec02
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0049ec02
mov edx, dword [esp + 0x1c]
push edx
call fcn.0049ec02
add esp, 0xc
test byte [esp + 0x20], 1
mov dword [esp + 0xe4], ebp
je 0x423bed
mov eax, dword [esp + 0x18]
push eax
call fcn.0049ec02
add esp, 4
sub esi, 2
je 0x423fe1
sub esi, 5
je 0x423b02
cmp byte [esp + 0xf4], 0
mov ebx, 0x10
jne 0x423d23
cmp byte [esp + 0xf8], 0
jne 0x423d23
cmp dword [0x4e6614], 0
je 0x423d23
cmp dword [0x4e6618], ebx
mov eax, dword [0x4e6604]
jae 0x423c3f
mov eax, 0x4e6604
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebp
je 0x423c55
mov ecx, dword [0x4e65b8]
and al, 1
mov byte [ecx + 0x19], al
mov eax, dword [0x4e65b8]
movzx ecx, byte [eax + 0x19]
test cl, cl
je 0x423d23
movzx edx, byte [eax + 0x18]
movzx eax, byte [eax + 0x30]
push ecx
push edx
push eax
mov ecx, edi
call fcn.0041fc90
push 0
push 0x2710
lea ecx, [esp + 0x24]
call fcn.0042c080
mov esi, eax
push 0
push 0xc36b
lea ecx, [esp + 0x1c]
mov dword [esp + 0xec], 3
call fcn.0042c080
cmp dword [0x4e6618], ebx
mov ecx, dword [0x4e6604]
mov byte [esp + 0xe4], 4
jae 0x423cc0
mov ecx, 0x4e6604
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004010e0
mov ecx, dword [esi]
mov eax, dword [eax]
add esp, 0xc
push ecx
push 0x34
push eax
mov ecx, edi
call fcn.00413220
mov edx, dword [esp + 0x18]
cmp eax, 6
push edx
sete bl
call fcn.0049ec02
mov eax, dword [esp + 0x18]
push eax
call fcn.0049ec02
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp + 0xf0], ebp
call fcn.0049ec02
add esp, 0xc
test bl, bl
je 0x423fe1
mov byte [esp + 0xf4], 1
mov ebx, 0x10
mov dword [esp + 0xd4], 0xf
mov dword [esp + 0xd0], 0
mov byte [esp + 0xc0], 0
cmp byte [esp + 0xf4], 0
mov dword [esp + 0xe4], 5
jne 0x423d8d
cmp byte [esp + 0xf8], 0
jne 0x423d8d
cmp dword [0x4e6614], 0
je 0x423d8d
cmp dword [0x4e6618], ebx
mov eax, dword [0x4e6604]
jae 0x423d7b
mov eax, 0x4e6604
push eax
lea ecx, [esp + 0xc0]
call fcn.00407dc0
jmp 0x423e62
cmp dword [0x4e6618], ebx
mov esi, dword [0x4e6604]
jae 0x423da0
mov esi, 0x4e6604
call fcn.0042aa50
mov ecx, dword [edi + 4]
push 0x4c8960
push esi
push eax
push ecx
push 0
lea ecx, [esp + 0x58]
call fcn.0042fa30
or dword [esp + 0x80], 0x800000
mov dword [esp + 0x44], vtable.wnd::SaveFile.0
lea ecx, [esp + 0x44]
mov byte [esp + 0xe4], 6
call fcn.0042c650
cmp byte [esp + 0xa8], 0
je 0x423df6
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
jmp 0x423e01
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
test al, al
je 0x423fbf
mov edx, dword [esp + 0x68]
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x423e20
sub eax, esi
push eax
push edx
lea ecx, [esp + 0xc4]
call fcn.004068a0
mov ecx, dword [0x4e65f4]
mov eax, dword [edi + 0x28]
push 0
push ecx
push 0x7ef
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x44]
mov byte [esp + 0xe4], 5
call fcn.004239f0
cmp dword [esp + 0xd4], ebx
mov eax, dword [esp + 0xc0]
jae 0x423e79
lea eax, [esp + 0xc0]
push eax
mov ecx, edi
call fcn.0041d7c0
cmp dword [esp + 0xd4], ebx
mov eax, dword [esp + 0xc0]
jae 0x423e98
lea eax, [esp + 0xc0]
movzx edx, byte [esp + 0xf8]
mov ecx, dword [0x4e65f4]
push edx
push ecx
lea esi, [edi + 0x24]
push eax
mov ecx, esi
call fcn.00415b80
mov bl, al
test bl, bl
mov ebp, 0x10
je 0x423f61
cmp byte [esp + 0xf8], 0
jne 0x423f16
mov edx, dword [0x4e65b8]
mov byte [edx + 0x18], 0
cmp dword [esp + 0xd4], ebp
mov eax, dword [esp + 0xc0]
jae 0x423eed
lea eax, [esp + 0xc0]
push eax
mov ecx, 0x4e65f4
call fcn.0041e3e0
cmp dword [0x4e6618], ebp
mov eax, dword [0x4e6604]
jae 0x423f0a
mov eax, 0x4e6604
mov edx, dword [edi + 0x34]
lea ecx, [edi + 0x34]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0xf4], 0
je 0x423f61
cmp dword [0x4e6618], ebp
mov eax, dword [0x4e6604]
jae 0x423f32
mov eax, 0x4e6604
push eax
lea ecx, [esp + 0x2c]
call fcn.00407d80
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov byte [esp + 0xe8], 7
call fcn.00418c80
lea ecx, [esp + 0x28]
mov byte [esp + 0xe4], 5
call fcn.00490500
cmp dword [esp + 0xd4], ebp
mov eax, dword [esp + 0xc0]
jae 0x423f78
lea eax, [esp + 0xc0]
push eax
mov ecx, edi
call fcn.0041d840
mov ecx, edi
call fcn.00421eb0
mov eax, dword [0x4e65b8]
movzx edx, byte [eax + 0x19]
movzx ecx, byte [eax + 0x18]
push edx
movzx edx, byte [eax + 0x30]
push ecx
push edx
mov ecx, edi
call fcn.0041fc90
cmp dword [esp + 0xd4], ebp
jb 0x423fbb
mov eax, dword [esp + 0xc0]
push eax
call fcn.0049ea7d
add esp, 4
mov al, bl
jmp 0x423fe3
lea ecx, [esp + 0x44]
call fcn.004239f0
cmp dword [esp + 0xd4], ebx
jb 0x423fe1
mov ecx, dword [esp + 0xc0]
push ecx
call fcn.0049ea7d
add esp, 4
xor al, al
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0049ec31
add esp, 0xd4
ret 0x10