Function at 0x4c3a20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4ff864
mov eax, dword fs:[0]
push eax
mov eax, 0x1bc40
call fcn.004e6b50
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x1bc3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x519bc0]
xor eax, esp
push eax
lea eax, [esp + 0x1bc54]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x1bc64]
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebp, ebp
test byte [0x5792bc], 1
mov word [0x574d08], ax
mov word [0x573d08], cx
mov word [0x572d08], dx
mov byte [0x572b41], al
jne 0x4c3ac0
or dword [0x5792bc], 1
mov dword [esp + 0x1bc5c], ebp
mov ecx, 0x5789a0
call fcn.004be2c0
push 0x500710
call fcn.004ea830
add esp, 4
mov dword [esp + 0x1bc5c], 0xffffffff
mov ecx, 0x5789a0
mov dword [0x575d0c], 0x5789a0
call fcn.004698b0
mov ecx, 0x5789fc
call fcn.004698b0
mov ecx, 0x578a58
call fcn.004698b0
mov al, byte [0x53d329]
mov byte [0x5792bb], al
cmp ebx, ebp
jne 0x4c3b21
mov ecx, dword [0x53f484]
mov edx, dword [0x531154]
push 0x5789a0
push 0x4bea10
push ecx
push str.FINDFILES
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
test eax, eax
je 0x4c446e
push 0x4bf600
push ebp
push ebp
push 8
call fcn.004b7e20
push 0x50a3b8
call fcn.004b5c70
cmp byte [0x5792b7], 0
je 0x4c3b49
push 1
call fcn.00497f40
xor eax, eax
cmp ebx, ebp
je 0x4c3c02
jmp 0x4c3b60
movzx ecx, word [eax + 0x559bdc]
mov word [esp + eax + 0x743c], cx
add eax, 2
cmp cx, bp
jne 0x4c3b60
push 0x502a28
mov ecx, 0x578a58
mov byte [0x5792b6], 1
mov byte [0x5792b5], 1
mov byte [0x5792b4], 0
call fcn.004698e0
mov ecx, 0x55bbfc
call fcn.00469860
push 0x800
lea eax, [esp + 0x7c54]
push eax
mov ecx, 0x55bbfc
call fcn.00469af0
test al, al
je 0x4c3d0c
jmp 0x4c3bd0
lea ecx, [esp + 0x7c50]
push ecx
mov ecx, 0x5789a0
call fcn.004698e0
push 0x800
lea edx, [esp + 0x7c54]
push edx
mov ecx, 0x55bbfc
call fcn.00469af0
test al, al
jne 0x4c3bd0
jmp 0x4c3d0c
mov word [esp + 0x743c], ax
cmp word [0x578ab4], bp
je 0x4c3d0c
cmp byte [0x5792b8], 0
je 0x4c3c44
lea edi, [esp + 0x743c]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x4c3c30
mov ecx, dword [0x50a3b4]
mov dword [edi], ecx
cmp byte [0x5792b9], 0
je 0x4c3c74
lea edi, [esp + 0x743c]
add edi, 0xfffffffe
jmp 0x4c3c60
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x4c3c60
mov edx, dword [0x50a3b0]
mov dword [edi], edx
cmp byte [0x5792ba], 0
je 0x4c3ca3
lea edi, [esp + 0x743c]
add edi, 0xfffffffe
jmp 0x4c3c90
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x4c3c90
mov eax, dword [0x50a3ac]
mov dword [edi], eax
lea edi, [esp + 0x743c]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x4c3cb0
mov ecx, dword [0x5062e4]
mov eax, 0x578ab4
mov dword [edi], ecx
mov edx, eax
jmp 0x4c3cd0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4c3cd0
lea edi, [esp + 0x743c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4c3cf0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x4c3cf0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [0x53d329], 0
je 0x4c3d2c
push 0x800
lea edx, [esp + 0x8c54]
push edx
mov ecx, 0x54be08
call fcn.0047b170
cmp byte [0x5792b4], 0
mov dword [0x575d08], ebp
mov byte [0x572b42], 0
mov byte [0x572b43], 1
je 0x4c3d59
cmp byte [0x5792bb], 0
jne 0x4c3d59
mov ecx, 2
jmp 0x4c3d5b
xor ecx, ecx
mov eax, 0x5789fc
cmp ebx, ebp
je 0x4c3d66
mov eax, ebx
push 3
push ebp
push ecx
push eax
lea ecx, [esp + 0x3368]
call fcn.00465890
mov dword [esp + 0x1bc5c], 1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x335c]
mov dword [esp + 0x1028], ebp
mov dword [esp + 0x102c], ebp
mov dword [esp + 0x1030], ebp
mov dword [esp + 0x1034], ebp
mov dword [esp + 0x1038], ebp
mov dword [esp + 0x103c], ebp
call fcn.00466750
test eax, eax
jne 0x4c4360
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp byte [0x53e3e9], 0
jne 0x4c4360
call fcn.00497940
mov eax, dword [0x575d08]
cmp eax, ebp
je 0x4c3e01
movzx ecx, byte [0x5792bb]
mov edx, dword [0x53d324]
push ecx
push eax
push edx
call fcn.004be3d0
mov dword [0x575d08], ebp
cmp word [esp + 0x14], 0x2e
jne 0x4c3e15
cmp word [esp + 0x16], 0x5c
lea ecx, [esp + 0x18]
je 0x4c3e19
lea ecx, [esp + 0x14]
lea edx, [esp + 0x9c50]
mov ebx, 2
movzx eax, word [ecx]
mov word [edx], ax
add ecx, ebx
add edx, ebx
cmp ax, bp
jne 0x4c3e25
push 0x50
lea eax, [esp + 0x9c54]
push eax
call fcn.004979f0
push eax
push 0x523
call fcn.00463400
push eax
lea ecx, [esp + 0xac58]
push ecx
mov edx, 0x800
call fcn.004a63e0
mov eax, dword [0x53d324]
add esp, 0xc
lea edx, [esp + 0xac50]
push edx
push 0x9b
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp byte [0x5792b6], 0
je 0x4c3ed0
cmp byte [esp + 0x1020], 0
jne 0x4c3ed0
mov ecx, 0x578a58
call fcn.00469860
mov ecx, 0x578a58
call fcn.00469bc0
mov esi, eax
cmp esi, ebp
je 0x4c3ed0
lea ebx, [ebx]
push ebp
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.00448a60
test al, al
jne 0x4c3f39
mov ecx, 0x578a58
call fcn.00469bc0
mov esi, eax
cmp esi, ebp
jne 0x4c3eb0
cmp byte [0x5792b5], 0
je 0x4c4347
cmp byte [esp + 0x1020], 0
je 0x4c3ef5
cmp word [esp + 0x743c], bp
jne 0x4c4347
mov ecx, 0x5789a0
call fcn.00469860
mov ecx, 0x5789a0
call fcn.00469bc0
cmp eax, ebp
je 0x4c4347
push 4
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.00448a60
test al, al
jne 0x4c4273
mov ecx, 0x5789a0
call fcn.00469bc0
cmp eax, ebp
jne 0x4c3f11
jmp 0x4c4347
cmp word [esi], 0x2a
jne 0x4c3f6b
cmp word [esi + 2], bp
jne 0x4c3f6b
cmp byte [0x5792bb], 0
jne 0x4c3f6b
push 1
push ebp
push ebp
push ebp
push ebp
lea edx, [esp + 0x28]
push edx
mov ecx, 0x54be08
call fcn.0047bd60
test al, al
je 0x4c3ed0
cmp byte [0x5792bb], 0
mov dword [0x53e3d4], ebx
je 0x4c3f81
mov byte [0x54c2a4], 1
cmp word [esp + 0x743c], bp
push 1
setne al
movzx ecx, al
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x54be08
call fcn.0047c7b0
cmp eax, ebx
jne 0x4c3fb7
call fcn.00497f20
test al, al
je 0x4c4360
jmp 0x4c4347
cmp eax, 1
jne 0x4c3ed0
push 1
push ebp
push ebp
push ebp
lea ecx, [esp + 0x7c60]
push ecx
lea edx, [esp + 0x28]
xor eax, eax
push edx
mov ecx, 0x54be08
mov word [esp + 0x7c68], ax
call fcn.0047bd60
lea eax, [esp + 0x7c50]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0046cb00
test eax, eax
je 0x4c4093
lea edx, [esp + 0x7c50]
push edx
call edi
cmp eax, 0xffffffff
jne 0x4c4347
push 0x800
push 0x502a40
lea eax, [esp + 0x7c58]
push eax
call fcn.00453ec0
lea ecx, [esp + 0x7c50]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0046cb00
test eax, eax
je 0x4c4053
lea eax, [esp + 0x7c50]
push eax
call edi
cmp eax, 0xffffffff
jne 0x4c4347
push 0x800
push 0x502a48
lea ecx, [esp + 0x7c58]
push ecx
call fcn.00453ec0
lea edx, [esp + 0x7c50]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0046cb00
test eax, eax
je 0x4c4093
lea ecx, [esp + 0x7c50]
push ecx
call edi
cmp eax, 0xffffffff
jne 0x4c4347
cmp word [esp + 0x743c], bp
jne 0x4c416d
push 1
lea edx, [esp + 0x2274]
push edx
mov ecx, 0x54be08
xor ebx, ebx
mov dword [esp + 0x3308], ebp
mov dword [esp + 0x330c], ebp
call fcn.0047ae90
test al, al
je 0x4c4347
lea ecx, [ecx]
cmp byte [0x53e3e9], 0
jne 0x4c4347
inc ebx
test bl, 0x1f
jne 0x4c40e8
call fcn.00497940
mov ecx, 0x5789a0
call fcn.00469860
mov ecx, 0x5789a0
call fcn.00469bc0
cmp eax, ebp
je 0x4c414c
push 4
lea ecx, [esp + 0x2274]
push ecx
push eax
call fcn.00448a60
test al, al
jne 0x4c4124
mov ecx, 0x5789a0
call fcn.00469bc0
cmp eax, ebp
jne 0x4c4100
jmp 0x4c414c
mov edx, dword [esp + 0x3308]
push 0x501a98
push edx
call fcn.00444ee0
movzx eax, al
push eax
lea ecx, [esp + 0x2278]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.004badf0
push 1
lea eax, [esp + 0x2274]
push eax
mov ecx, 0x54be08
call fcn.0047ae90
test al, al
jne 0x4c40d0
jmp 0x4c4347
lea ecx, [esp + 0x105c]
push ecx
mov ecx, 0x54be08
call fcn.0047b1c0
mov ecx, 0x54be08
call fcn.0047b4f0
and eax, 0x400
and edx, ebp
or eax, edx
je 0x4c41b1
push 0x3ac
call fcn.00463400
push eax
push 0x55abfa
call fcn.004c3030
add esp, 8
jmp 0x4c4347
push ebp
call fcn.004b0320
push 0x800
push 0x55abfa
mov ecx, 0x54be08
call fcn.0047b190
mov edx, dword [esp + 0x119c]
mov ecx, 0x55bbfc
mov dword [0x557ba8], edx
call fcn.004698b0
mov ecx, 0x5789a0
call fcn.00469860
mov ecx, 0x5789a0
call fcn.00469bc0
cmp eax, ebp
je 0x4c4219
lea ebx, [ebx]
push eax
mov ecx, 0x55bbfc
call fcn.004698e0
mov ecx, 0x5789a0
call fcn.00469bc0
cmp eax, ebp
jne 0x4c4200
lea eax, [esp + 0x743c]
push eax
push 0x50a3a4
push 0x559bda
mov edx, 0x810
mov byte [0x555ac9], 1
mov dword [0x555aa8], ebp
mov dword [0x555aac], ebp
mov dword [0x555ab0], ebp
mov dword [0x555ab4], ebp
call fcn.004a63e0
add esp, 0xc
mov ecx, 0x54be08
mov byte [0x559bc4], 1
mov dword [0x53e3d4], ebx
call fcn.0047acd0
jmp 0x4c4347
cmp word [esp + 0x743c], bp
jne 0x4c42a8
lea edx, [esp + 0x14]
push edx
push ebp
lea eax, [esp + 0x7444]
push eax
push ebp
push ebp
call fcn.004474c0
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0xbc60]
push ecx
call fcn.004474c0
jmp 0x4c4347
lea ecx, [esp + 0x124c]
call fcn.00443e50
mov byte [esp + 0x1bc5c], 2
push 4
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x1254]
call fcn.00443ed0
test al, al
je 0x4c4333
lea eax, [esp + 0x14]
push eax
push ebp
lea ecx, [esp + 0x7444]
push ecx
push ebp
push ebp
call fcn.004474c0
push 0x10000
lea edx, [esp + 0xbc54]
push edx
lea ecx, [esp + 0x1254]
call fcn.004448f0
cmp eax, ebp
je 0x4c4333
push ebp
push ebp
push ebp
push eax
lea eax, [esp + 0xbc60]
push eax
call fcn.004474c0
push 0x10000
lea ecx, [esp + 0xbc54]
push ecx
lea ecx, [esp + 0x1254]
call fcn.004448f0
cmp eax, ebp
jne 0x4c4305
mov byte [esp + 0x1bc5c], 1
lea ecx, [esp + 0x124c]
call fcn.004445b0
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x335c]
call fcn.00466750
test eax, eax
je 0x4c3dcb
cmp byte [0x53e3e9], 0
mov byte [0x572b43], 0
je 0x4c4380
cmp byte [0x572b41], 0
je 0x4c4380
mov byte [0x53e3e9], 0
mov eax, dword [0x575d08]
cmp eax, ebp
je 0x4c43a4
movzx ecx, byte [0x5792bb]
mov edx, dword [0x53d324]
push ecx
push eax
push edx
call fcn.004be3d0
mov dword [0x575d08], ebp
push 0x270
mov byte [0x572b42], 0
call fcn.00463400
push eax
mov eax, dword [0x53d324]
push 0x9b
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp byte [0x53e3e9], 0
je 0x4c43df
mov ecx, dword [0x53d324]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x4c43e4
call fcn.004b57f0
cmp word [0x573d08], bp
je 0x4c4407
push 0x573d08
mov ecx, 0x549cb8
call fcn.00495770
cmp word [0x574d08], bp
je 0x4c442b
jmp 0x4c441a
cmp word [0x574d08], bp
je 0x4c443c
mov ecx, 0x549cb8
call fcn.004928d0
push 1
push 0x574d08
mov ecx, 0x549cb8
call fcn.00495890
push 0x572d08
mov ecx, 0x549cb8
call fcn.00493f30
jmp 0x4c4457
cmp byte [0x53d329], 0
je 0x4c4457
lea edx, [esp + 0x8c50]
push edx
mov ecx, 0x54be08
call fcn.0047b050
mov dword [esp + 0x1bc5c], 0xffffffff
lea ecx, [esp + 0x3358]
call fcn.00465970
mov ecx, dword [esp + 0x1bc54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1bc3c]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x1bc4c
ret 4