Function at 0x43fc70
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
mov eax, 0x21a6c
call fcn.004d5830
cmp dword [0x51b06c], 4
mov eax, dword [esp + 0x21a78]
push ebx
push ebp
mov ebp, dword [esp + 0x21a84]
push esi
push edi
mov edi, ecx
mov ecx, dword [0x51ae08]
mov dword [esp + 0x14], ecx
jl 0x43fccf
push 0x4f5ac4
push 0
push 0x4f47b0
call fcn.004a4b10
mov ecx, dword [esp + 0x21a8c]
add esp, 4
push eax
call fcn.0042dd40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21a6c
ret 0x10
xor edx, edx
mov word [esp + 0x1a78], dx
test eax, eax
je 0x43fdf0
cmp word [eax], dx
je 0x43fdf0
push 0x103
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004cb3f1
add esp, 0xc
push 3
lea edx, [esp + 0x74]
xor ecx, ecx
push 0x4f482c
push edx
mov word [esp + 0x282], cx
call fcn.004cbb84
add esp, 0xc
test eax, eax
sete bl
test bl, bl
je 0x43fd6c
lea eax, [esp + 0x70]
push 0x7d
push eax
call fcn.004ca9cb
add esp, 8
test eax, eax
je 0x43fdf7
cmp word [eax + 2], 0
je 0x43fdf7
lea eax, [esp + 0x70]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43fd50
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x6e], 0x5c
jne 0x43fd80
jmp 0x43fdf7
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43fd80
test al, 0x10
jne 0x43fdf7
lea edx, [esp + 0x70]
push 0x5c
push edx
call fcn.004cb9fc
mov esi, eax
add esp, 8
test esi, esi
je 0x43fdbf
push 0xfffe
lea eax, [esi + 2]
push eax
lea ecx, [esp + 0x1a80]
push ecx
call fcn.004cb3f1
xor edx, edx
add esp, 0xc
xor eax, eax
mov word [esp + 0x21a74], dx
mov word [esi], ax
jmp 0x43fdf7
test bl, bl
jne 0x43fdf7
push 0xfffe
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x1a80]
push edx
call fcn.004cb3f1
xor eax, eax
add esp, 0xc
xor ecx, ecx
mov word [esp + 0x21a74], ax
mov word [esp + 0x70], cx
jmp 0x43fdf7
xor edx, edx
mov word [esp + 0x70], dx
test edi, edi
je 0x43fe23
cmp word [edi], 0
je 0x43fe23
push 0x3ff
lea eax, [esp + 0x127c]
push edi
push eax
call fcn.004cb3f1
add esp, 0xc
xor ecx, ecx
mov word [esp + 0x1a76], cx
jmp 0x43fe4c
mov edx, dword [0x51cbc4]
push edx
push 0x4f4834
call fcn.004a4b10
add esp, 4
push eax
mov esi, 0x400
lea edi, [esp + 0x1280]
call fcn.004ac070
add esp, 8
xor eax, eax
xor ecx, ecx
mov word [esp + 0xa78], ax
mov word [esp + 0x278], cx
cmp word [ebp], ax
je 0x43fecd
push 0x28
push ebp
call fcn.004ca9cb
add esp, 8
push 0x3ff
test eax, eax
je 0x43ff11
add eax, 2
push eax
lea edx, [esp + 0x280]
push edx
call fcn.004cb3f1
add esp, 0xc
lea ecx, [esp + 0x278]
xor eax, eax
push 0x29
push ecx
mov word [esp + 0xa7e], ax
call fcn.004cb9fc
add esp, 8
test eax, eax
je 0x43feb9
xor edx, edx
mov word [eax], dx
jmp 0x43ff2c
xor eax, eax
mov word [esp + 0x278], ax
xor edx, edx
mov word [esp + 0xa78], dx
push 0x54
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004d2f90
mov ebx, dword [0x5165ec]
add esp, 0xc
add ebx, 0x4c
mov dword [esp + 0x18], 0x58
call fcn.0045ab80
test eax, eax
je 0x43ff93
mov ecx, dword [0x5165ec]
mov edx, dword [ecx + 0x4c]
mov eax, dword [edx + 4]
mov dword [esp + 0x1c], eax
jmp 0x43ff9b
lea ecx, [esp + 0x27c]
push ebp
push ecx
call fcn.004cb3f1
add esp, 0xc
xor edx, edx
mov word [esp + 0xa76], dx
cmp word [esp + 0x278], 0
je 0x43fec3
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4f5ac4
lea eax, [esp + 0x28c]
push 0x4ec720
push eax
xor eax, eax
call fcn.004ac860
add esp, 0x1c
push 0
push 0
push 0
lea ecx, [esp + 0x284]
push ecx
push 0
push ebp
push str.u_t_mhA5_n_n__5izixyjuibp.
call fcn.004a4b10
add esp, 4
push eax
mov esi, 0x400
lea edi, [esp + 0xa94]
call fcn.004ac070
add esp, 0x1c
jmp 0x43fecd
mov dword [esp + 0x1c], 0
cmp word [esp + 0xa78], 0
lea ecx, [esp + 0x1278]
mov dword [esp + 0x48], ecx
je 0x43ffbe
lea edx, [esp + 0xa78]
mov dword [esp + 0x24], edx
jmp 0x43ffcf
push 0x4f48b8
call fcn.004a4b10
add esp, 4
mov dword [esp + 0x24], eax
movzx ecx, word [esp + 0x70]
mov edi, dword [esp + 0x21a84]
movzx esi, word [edi]
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x70]
and ecx, edx
lea eax, [esp + 0x1a78]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0xfffe
mov dword [esp + 0x44], ecx
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
test esi, 0xffffff80
jne 0x440023
push 2
push esi
call fcn.004cae3e
add esp, 8
test eax, eax
je 0x440023
and esi, 0xffffffdf
movzx eax, si
cmp eax, 0x4d
je 0x440037
cmp eax, 0x53
jne 0x44003f
mov byte [esp + 0x13], 1
jmp 0x44003c
mov byte [esp + 0x12], 1
add edi, 2
mov eax, edi
call fcn.0040e320
test al, al
je 0x440059
push 0x10
push 0
push edi
call fcn.004cb270
add esp, 0xc
jmp 0x440062
push edi
call fcn.004cae86
add esp, 4
mov dword [esp + 0x4c], 0x80004
test al, 0x20
je 0x440076
mov dword [esp + 0x4c], 0x180004
test al, 0x10
je 0x44007f
or dword [esp + 0x4c], 2
test al, 8
je 0x44008b
or dword [esp + 0x4c], 0x2000
cmp byte [esp + 0x12], 0
mov ebp, 0x200
jne 0x44009b
test al, 4
je 0x44009f
or dword [esp + 0x4c], ebp
test al, 2
je 0x4400ab
or dword [esp + 0x4c], 0x800
test al, 1
je 0x4400b7
or dword [esp + 0x4c], 0x1000
call fcn.004b1950
push 0
push 0x403
mov bl, al
mov eax, dword [0x51aed0]
push 0x44
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, 1
add dword [0x51b06c], edi
cmp byte [esp + 0x13], 0
jne 0x440101
mov eax, dword [esp + 0x4c]
test al, 2
je 0x4400f4
test eax, 0x2000
je 0x440101
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
jmp 0x44010c
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
sub dword [0x51b06c], edi
test bl, bl
mov esi, eax
mov eax, dword [0x5165ec]
sete cl
mov byte [eax + 0xee], bl
mov byte [eax + 0xec], cl
cmp word [0x51b6d8], 0
je 0x44013f
push 0x51b6d8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test esi, esi
jne 0x4401a5
mov ecx, dword [esp + 0x14]
call fcn.0041acb0
cmp eax, edi
je 0x44015f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21a6c
ret 0x10
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
test eax, eax
je 0x440183
mov edx, dword [esp + 0x21a80]
push edx
call fcn.004305b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21a6c
ret 0x10
mov eax, dword [0x51b6d0]
push edi
push 0
push 0xffffffffffffffff
push 0x4eb75c
push eax
call fcn.004aefb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21a6c
ret 0x10
mov ecx, dword [0x51b6d0]
push edi
push 0
push 0xffffffffffffffff
push 0x4e6a28
push ecx
call fcn.004aefb0
test dword [esp + 0x4c], ebp
je 0x4402be
cmp byte [esp + 0x12], 0
lea eax, [esp + 0x1a78]
je 0x4402a0
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4401e0
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x1a7a], cx
jne 0x44026f
lea edx, [esp + 0x1a78]
push 0x5c
push edx
call fcn.004cb9fc
mov esi, eax
add esp, 8
test esi, esi
je 0x4402be
mov ecx, esi
lea edx, [esp + 0x1a78]
sub ecx, edx
and ecx, 0xfffffffe
mov eax, 0xa
mov word [esi], ax
cmp ecx, 4
jne 0x4402be
cmp word [esi - 2], 0x3a
jne 0x4402be
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x440244
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 2]
push esi
push ecx
call fcn.004ca630
mov edx, 0x5c
add esp, 0xc
mov word [esi], dx
jmp 0x4402be
lea eax, [esp + 0x1a78]
cmp word [eax], 0
je 0x440289
lea esp, [esp]
add eax, 2
cmp word [eax], 0
jne 0x440280
cmp word [eax + 2], 0
je 0x4402be
mov ecx, 0xa
mov word [eax], cx
jmp 0x440276
cmp word [eax], 0
je 0x4402af
add eax, 2
cmp word [eax], 0
jne 0x4402a6
cmp word [eax + 2], 0
mov edx, 0xa
mov word [eax], dx
jne 0x4402a0
mov ecx, dword [esp + 0x14]
push edi
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x1a84]
push eax
push ecx
call fcn.004aefb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21a6c
ret 0x10