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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x52c]
lea edi, [ebp - 0x52c]
push ebx
mov esi, dword fs:[0x18]
sub esp, 0x5c8
mov dword [esi + 0x34], 0xfaceabee
mov dword [esp + 4], eax
mov eax, dword [sym.imp.lz32.dll_LZOpenFileA]
mov dword [esp + 8], 0
mov dword [esp], str.badfilename_
mov dword [ebp - 0x5b4], eax
call eax
sub esp, 0xc
mov ebx, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x136
xor eax, eax
cmp ebx, 0xffffffff
sete al
mov dword [esp + 4], str.LZOpenFileA_succeeded_on_nonexistent_file_n
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x138
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.GetLastError___returns__ld_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 2
sete al
mov dword [ebp - 0x5b0], esi
lea esi, [ebp - 0x524]
mov dword [esp], eax
call fcn.00401720
mov dword [esp], ebx
mov ebx, dword [sym.imp.lz32.dll_LZClose]
mov dword [ebp - 0x5b8], ebx
call ebx
mov eax, 0xa5a5a5a5
mov ecx, 0x22
lea ebx, [ebp - 0x41c]
rep stosd dword es:[edi], eax
sub esp, 4
mov edx, ebx
mov eax, str.testfile.xx_
call fcn.00401740
lea edx, [ebp - 0x52c]
mov dword [esp + 8], 0x1000
mov dword [esp + 4], edx
mov dword [esp], str.testfile.xx_
mov edx, dword [ebp - 0x5b4]
call edx
sub esp, 0xc
mov edi, eax
call fcn.00404ab0
mov ecx, edi
not ecx
mov dword [eax], 0x408127
mov dword [eax + 4], 0x141
mov eax, ecx
shr eax, 0x1f
mov dword [esp + 4], str.LZOpenFileA_failed_on_creation_n
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
movzx edx, byte [ebp - 0x52c]
mov dword [eax + 4], 0x142
cmp dl, 0x88
mov dword [esp + 8], edx
sete al
mov dword [esp + 4], str.LZOpenFileA_set_test.cBytes_to__d_n
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
movzx edx, word [ebp - 0x52a]
mov dword [eax + 4], 0x144
test dx, dx
mov dword [esp + 8], edx
sete al
mov dword [esp + 4], str.LZOpenFileA_set_test.nErrCode_to__d_n
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov ecx, dword [sym.imp.kernel32.dll_lstrcmpA]
mov dword [eax], 0x408127
mov dword [eax + 4], 0x146
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [ebp - 0x5bc], ecx
call ecx
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0xc], ebx
movzx eax, al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.LZOpenFileA_returned__s__but_was_expected_to_return__s_n
call fcn.00401720
mov dword [esp], edi
mov edi, dword [ebp - 0x5b8]
call edi
mov edx, dword [sym.imp.kernel32.dll_GetFileAttributesA]
sub esp, 4
mov dword [esp], str.testfile.xx_
mov dword [ebp - 0x5c0], edx
call edx
sub esp, 4
mov edi, eax
call fcn.00404ab0
mov ecx, dword [ebp - 0x5b0]
mov dword [eax], 0x408127
mov dword [eax + 4], 0x14c
mov eax, dword [ecx + 0x34]
mov dword [esp + 4], str.GetFileAttributesA:_error__ld_n
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 0xffffffff
lea edi, [ebp - 0x52c]
setne al
mov dword [esp], eax
call fcn.00401720
mov eax, 0xa5a5a5a5
mov ecx, 0x22
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x318]
mov ecx, 1
mov eax, str.testfile.xx_
mov edx, edi
lea edi, [ebp - 0x52c]
call fcn.00401740
mov dword [esp + 4], edi
mov dword [esp + 8], 0
mov dword [esp], str.testfile.xx_
mov edx, dword [ebp - 0x5b4]
call edx
sub esp, 0xc
mov edi, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x155
mov eax, edi
not eax
mov dword [esp + 4], str.LZOpenFileA_failed_on_read_n
shr eax, 0x1f
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
lea edx, [ebp - 0x318]
mov dword [eax], 0x408127
mov dword [eax + 4], 0x156
movzx eax, byte [ebp - 0x52c]
mov dword [esp + 0x10], edx
cmp al, 0x88
movzx edx, al
mov dword [esp + 0xc], ebx
sete al
mov dword [esp + 8], edx
movzx eax, al
mov dword [esp + 4], str.LZOpenFileA_set_test.cBytes_to__d__s__s__n
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
movzx edx, word [ebp - 0x52a]
mov dword [eax + 4], 0x158
test dx, dx
mov dword [esp + 8], edx
sete al
mov dword [esp + 4], str.LZOpenFileA_set_test.nErrCode_to__d_n
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x15a
mov dword [esp + 4], ebx
mov dword [esp], esi
mov ecx, dword [ebp - 0x5bc]
call ecx
lea edx, [ebp - 0x318]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0x10], edx
movzx eax, al
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.LZOpenFileA_returned__s__but_was_expected_to_return__s_or__s_n
call fcn.00401720
mov dword [esp], edi
mov edi, dword [ebp - 0x5b8]
call edi
lea edi, [ebp - 0x52c]
mov eax, 0xa5a5a5a5
mov ecx, 0x22
rep stosd dword es:[edi], eax
sub esp, 4
lea edi, [ebp - 0x52c]
mov dword [esp + 4], edi
mov dword [esp + 8], 1
mov dword [esp], str.testfile.xx_
mov edx, dword [ebp - 0x5b4]
call edx
sub esp, 0xc
mov edi, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x163
mov eax, edi
not eax
mov dword [esp + 4], str.LZOpenFileA_failed_on_write_n
shr eax, 0x1f
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
movzx edx, byte [ebp - 0x52c]
mov dword [eax + 4], 0x164
cmp dl, 0x88
mov dword [esp + 8], edx
sete al
mov dword [esp + 4], str.LZOpenFileA_set_test.cBytes_to__d_n
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
movzx edx, word [ebp - 0x52a]
mov dword [eax + 4], 0x166
test dx, dx
mov dword [esp + 8], edx
sete al
mov dword [esp + 4], str.LZOpenFileA_set_test.nErrCode_to__d_n
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x168
mov dword [esp + 4], ebx
mov dword [esp], esi
mov ecx, dword [ebp - 0x5bc]
call ecx
lea ecx, [ebp - 0x318]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0x10], ecx
movzx eax, al
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.LZOpenFileA_returned__s__but_was_expected_to_return__s_or__s_n
call fcn.00401720
mov dword [esp], edi
mov edi, dword [ebp - 0x5b8]
call edi
lea edi, [ebp - 0x52c]
mov eax, 0xa5a5a5a5
mov ecx, 0x22
rep stosd dword es:[edi], eax
sub esp, 4
lea eax, [ebp - 0x52c]
mov dword [esp + 8], 2
mov dword [esp + 4], eax
mov dword [esp], str.testfile.xx_
mov edx, dword [ebp - 0x5b4]
call edx
sub esp, 0xc
mov edi, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x171
mov eax, edi
not eax
mov dword [esp + 4], str.LZOpenFileA_failed_on_read_write_n
shr eax, 0x1f
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
movzx edx, byte [ebp - 0x52c]
mov dword [eax + 4], 0x172
cmp dl, 0x88
mov dword [esp + 8], edx
sete al
mov dword [esp + 4], str.LZOpenFileA_set_test.cBytes_to__d_n
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
movzx edx, word [ebp - 0x52a]
mov dword [eax + 4], 0x174
test dx, dx
mov dword [esp + 8], edx
sete al
mov dword [esp + 4], str.LZOpenFileA_set_test.nErrCode_to__d_n
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x176
mov dword [esp + 4], ebx
mov dword [esp], esi
mov ecx, dword [ebp - 0x5bc]
call ecx
lea ecx, [ebp - 0x318]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0x10], ecx
movzx eax, al
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.LZOpenFileA_returned__s__but_was_expected_to_return__s_or__s_n
call fcn.00401720
mov dword [esp], edi
mov edi, dword [ebp - 0x5b8]
call edi
lea edi, [ebp - 0x52c]
mov eax, 0xa5a5a5a5
mov ecx, 0x22
rep stosd dword es:[edi], eax
sub esp, 4
lea eax, [ebp - 0x52c]
mov dword [esp + 8], 0x4000
mov dword [esp + 4], eax
mov dword [esp], str.testfile.xx_
mov edx, dword [ebp - 0x5b4]
call edx
sub esp, 0xc
mov edi, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x17f
mov eax, edi
not eax
mov dword [esp + 4], str.LZOpenFileA_failed_on_read_write_n
shr eax, 0x1f
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
movzx edx, byte [ebp - 0x52c]
mov dword [eax + 4], 0x180
cmp dl, 0x88
mov dword [esp + 8], edx
sete al
mov dword [esp + 4], str.LZOpenFileA_set_test.cBytes_to__d_n
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
movzx edx, word [ebp - 0x52a]
mov dword [eax + 4], 0x182
test dx, dx
mov dword [esp + 8], edx
sete al
mov dword [esp + 4], str.LZOpenFileA_set_test.nErrCode_to__d_n
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x184
mov dword [esp + 4], ebx
mov dword [esp], esi
mov ecx, dword [ebp - 0x5bc]
call ecx
lea ecx, [ebp - 0x318]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0x10], ecx
movzx eax, al
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.LZOpenFileA_returned__s__but_was_expected_to_return__s_or__s_n
call fcn.00401720
mov dword [esp], edi
mov edi, dword [ebp - 0x5b8]
call edi
lea edi, [ebp - 0x52c]
mov eax, 0xa5a5a5a5
mov ecx, 0x22
rep stosd dword es:[edi], eax
sub esp, 4
lea eax, [ebp - 0x52c]
mov dword [esp + 8], 0x200
mov dword [esp + 4], eax
mov dword [esp], str.testfile.xx_
mov edx, dword [ebp - 0x5b4]
call edx
sub esp, 0xc
mov edi, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x18d
mov eax, edi
not eax
mov dword [esp + 4], str.LZOpenFileA_failed_on_delete_n
shr eax, 0x1f
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
movzx edx, byte [ebp - 0x52c]
mov dword [eax + 4], 0x18e
cmp dl, 0x88
mov dword [esp + 8], edx
sete al
mov dword [esp + 4], str.LZOpenFileA_set_test.cBytes_to__d_n
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
movzx edx, word [ebp - 0x52a]
mov dword [eax + 4], 0x190
test dx, dx
mov dword [esp + 8], edx
sete al
mov dword [esp + 4], str.LZOpenFileA_set_test.nErrCode_to__d_n
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x192
mov dword [esp + 4], ebx
mov dword [esp], esi
mov ecx, dword [ebp - 0x5bc]
call ecx
lea ecx, [ebp - 0x318]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0x10], ecx
movzx eax, al
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
lea esi, [ebp - 0x214]
mov dword [esp], eax
mov dword [esp + 4], str.LZOpenFileA_returned__s__but_was_expected_to_return__s_or__s_n
call fcn.00401720
mov dword [esp], edi
mov edi, dword [ebp - 0x5b8]
call edi
sub esp, 4
mov dword [esp], str.testfile.xx_
mov ebx, dword [ebp - 0x5c0]
call ebx
sub esp, 4
mov ebx, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x198
xor eax, eax
cmp ebx, 0xffffffff
lea ebx, [ebp - 0x5ac]
sete al
mov dword [esp + 4], str.GetFileAttributesA_succeeded_on_deleted_file_n
mov edi, ebx
mov dword [esp], eax
call fcn.00401720
mov eax, str.testfile.xx_
call fcn.00401860
mov eax, str.dotless._
call fcn.00401860
mov eax, str.extless._
call fcn.00401860
mov eax, 0x4060a4
call fcn.00401860
mov eax, 0xa5a5a5a5
mov ecx, 0x20
mov edx, esi
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x4a4]
mov ecx, 0x22
rep stosd dword es:[edi], eax
mov eax, str.testfile.xx_
call fcn.00401740
mov ecx, dword [ebp - 0x5b0]
lea edx, [ebp - 0x4a4]
mov dword [ecx + 0x34], 0xfaceabee
mov dword [esp + 8], 0x4000
mov dword [esp + 4], edx
mov dword [esp], str.testfile.xxx
mov edx, dword [ebp - 0x5b4]
call edx
sub esp, 0xc
mov edi, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x8f
mov eax, edi
not eax
mov dword [esp + 8], str.testfile.xxx
shr eax, 0x1f
mov dword [esp + 4], str.LZOpenFileA_returns_negative_file_descriptor_for__s_n
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x90
movzx edx, byte [ebp - 0x4a4]
mov dword [esp + 4], str.LZOpenFileA_set_test.cBytes_to__d_n
cmp dl, 0x88
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x92
movzx edx, word [ebp - 0x4a2]
mov dword [esp + 4], str.LZOpenFileA_set_test.nErrCode_to__d_n
test dx, dx
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
lea edx, [ebp - 0x49c]
mov dword [eax], 0x408127
mov dword [eax + 4], 0x94
mov dword [esp + 4], esi
mov dword [esp], edx
mov ecx, dword [ebp - 0x5bc]
call ecx
lea edx, [ebp - 0x49c]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0xc], esi
movzx eax, al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.LZOpenFileA_returned__s__but_was_expected_to_return__s_n
call fcn.00401720
mov dword [esp], edi
mov edi, dword [ebp - 0x5b8]
call edi
mov eax, 0xa5a5a5a5
mov edi, ebx
mov ecx, 0x20
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x4a4]
mov ecx, 0x22
sub esp, 4
rep stosd dword es:[edi], eax
mov edx, esi
mov eax, str.dotless._
call fcn.00401740
mov ecx, dword [ebp - 0x5b0]
lea edx, [ebp - 0x4a4]
mov dword [ecx + 0x34], 0xfaceabee
mov dword [esp + 8], 0x4000
mov dword [esp + 4], edx
mov dword [esp], str.dotless
mov edx, dword [ebp - 0x5b4]
call edx
sub esp, 0xc
mov edi, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0xa0
mov eax, edi
not eax
mov dword [esp + 8], str.dotless
shr eax, 0x1f
mov dword [esp + 4], str.LZOpenFileA_returns_negative_file_descriptor_for__s_n
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0xa1
movzx edx, byte [ebp - 0x4a4]
mov dword [esp + 4], str.LZOpenFileA_set_test.cBytes_to__d_n
cmp dl, 0x88
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0xa3
movzx edx, word [ebp - 0x4a2]
mov dword [esp + 4], str.LZOpenFileA_set_test.nErrCode_to__d_n
test dx, dx
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
lea edx, [ebp - 0x49c]
mov dword [eax], 0x408127
mov dword [eax + 4], 0xa5
mov dword [esp + 4], esi
mov dword [esp], edx
mov ecx, dword [ebp - 0x5bc]
call ecx
lea edx, [ebp - 0x49c]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0xc], esi
movzx eax, al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.LZOpenFileA_returned__s__but_was_expected_to_return__s_n
call fcn.00401720
mov dword [esp], edi
mov edi, dword [ebp - 0x5b8]
call edi
mov eax, 0xa5a5a5a5
mov edi, ebx
mov ecx, 0x20
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x4a4]
mov ecx, 0x22
sub esp, 4
rep stosd dword es:[edi], eax
mov edx, esi
mov eax, str.extless._
call fcn.00401740
mov ecx, dword [ebp - 0x5b0]
lea edx, [ebp - 0x4a4]
mov dword [ecx + 0x34], 0xfaceabee
mov dword [esp + 8], 0x4000
mov dword [esp + 4], edx
mov dword [esp], str.extless.
mov edx, dword [ebp - 0x5b4]
call edx
sub esp, 0xc
mov edi, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0xb1
mov eax, edi
not eax
mov dword [esp + 8], str.extless.
shr eax, 0x1f
mov dword [esp + 4], str.LZOpenFileA_returns_negative_file_descriptor_for__s_n
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0xb2
movzx edx, byte [ebp - 0x4a4]
mov dword [esp + 4], str.LZOpenFileA_set_test.cBytes_to__d_n
cmp dl, 0x88
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0xb4
movzx edx, word [ebp - 0x4a2]
mov dword [esp + 4], str.LZOpenFileA_set_test.nErrCode_to__d_n
test dx, dx
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
lea edx, [ebp - 0x49c]
mov dword [eax], 0x408127
mov dword [eax + 4], 0xb6
mov dword [esp + 4], esi
mov dword [esp], edx
mov ecx, dword [ebp - 0x5bc]
call ecx
lea edx, [ebp - 0x49c]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0xc], esi
movzx eax, al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.LZOpenFileA_returned__s__but_was_expected_to_return__s_n
call fcn.00401720
mov dword [esp], edi
mov edi, dword [ebp - 0x5b8]
call edi
mov eax, 0xa5a5a5a5
mov edi, ebx
mov ecx, 0x20
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x4a4]
mov ecx, 0x22
sub esp, 4
rep stosd dword es:[edi], eax
lea ebx, [ebp - 0x110]
mov edx, esi
mov eax, 0x4060a4
call fcn.00401740
mov ecx, 1
mov edx, ebx
mov eax, 0x4060a4
call fcn.00401740
lea edx, [ebp - 0x4a4]
mov dword [esp + 8], 0x4000
mov dword [esp + 4], edx
mov dword [esp], str._terminated.xxxx_
mov edx, dword [ebp - 0x5b4]
call edx
sub esp, 0xc
mov edi, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0xc2
mov eax, edi
not eax
mov dword [esp + 4], str.LZOpenFileA_failed_on_switching_to_a_compressed_file_name_n
shr eax, 0x1f
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0xc3
movzx edx, byte [ebp - 0x4a4]
mov dword [esp + 4], str.LZOpenFileA_set_test.cBytes_to__d_n
cmp dl, 0x88
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0xc4
movzx edx, word [ebp - 0x4a2]
mov dword [esp + 4], str.LZOpenFileA_set_test.nErrCode_to__d_n
test dx, dx
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
lea edx, [ebp - 0x49c]
mov dword [eax], 0x408127
mov dword [eax + 4], 0xc6
mov dword [esp + 4], esi
mov dword [esp], edx
mov ecx, dword [ebp - 0x5bc]
call ecx
lea edx, [ebp - 0x49c]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 8], edx
movzx eax, al
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov dword [esp + 4], str.LZOpenFileA_returned__s__but_was_expected_to_return__s_or__s_n
call fcn.00401720
mov dword [esp], edi
mov edi, dword [ebp - 0x5b8]
call edi
mov eax, str.testfile.xx_
lea edi, [ebp - 0x4a4]
sub esp, 4
call fcn.00401920
mov eax, str.dotless._
call fcn.00401920
mov eax, str.extless._
call fcn.00401920
mov eax, 0x4060a4
call fcn.00401920
mov eax, 0xa5a5a5a5
mov ecx, 0x20
mov edx, ebx
rep stosd dword es:[edi], eax
mov edi, esi
mov ecx, 0x22
rep stosd dword es:[edi], eax
mov eax, str.testfile.xx_
call fcn.00401740
mov ecx, dword [ebp - 0x5b0]
mov dword [ecx + 0x34], 0xfaceabee
mov dword [esp + 4], esi
mov dword [esp + 8], 0x4000
mov dword [esp], str.testfile.xxx
mov edx, dword [ebp - 0x5b4]
call edx
sub esp, 0xc
mov edi, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0xe4
xor eax, eax
cmp edi, 0xffffffff
sete al
mov dword [esp + 4], str.LZOpenFileA_succeeded_on_nonexistent_file_n
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov ecx, dword [ebp - 0x5b0]
mov dword [eax], 0x408127
mov dword [eax + 4], 0xe6
mov eax, dword [ecx + 0x34]
mov dword [esp + 4], str.GetLastError___returns__ld_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ecx + 0x34], 2
sete al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0xe8
movzx edx, byte [ebp - 0x214]
mov dword [esp + 4], str.LZOpenFileA_set_test.cBytes_to__d_n
cmp dl, 0xa5
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0xea
movzx edx, word [ebp - 0x212]
mov dword [esp + 4], str.LZOpenFileA_set_test.nErrCode_to__d_n
cmp dx, 2
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0xec
mov dword [esp + 4], ebx
mov dword [ebp - 0x5b8], esi
lea esi, [ebp - 0x20c]
mov dword [esp], esi
mov edi, dword [ebp - 0x5bc]
mov dword [ebp - 0x5c0], edi
call edi
lea edx, [ebp - 0x4a4]
sub esp, 8
test eax, eax
mov edi, edx
sete al
mov dword [esp + 0x10], edx
movzx eax, al
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.LZOpenFileA_returned__s__but_was_expected_to_return__s_or__s_n
call fcn.00401720
mov eax, 0xa5a5a5a5
mov ecx, 0x20
mov edx, ebx
mov dword [ebp - 0x5bc], edi
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x5b8]
mov ecx, 0x22
rep stosd dword es:[edi], eax
mov eax, str.dotless._
call fcn.00401740
mov ecx, dword [ebp - 0x5b0]
mov dword [ecx + 0x34], 0xfaceabee
mov dword [esp + 8], 0x4000
mov edx, dword [ebp - 0x5b8]
mov dword [esp], str.dotless
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x5b4]
call edx
sub esp, 0xc
mov edi, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0xf7
xor eax, eax
cmp edi, 0xffffffff
sete al
mov dword [esp + 4], str.LZOpenFileA_succeeded_on_nonexistent_file_n
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov ecx, dword [ebp - 0x5b0]
mov dword [eax], 0x408127
mov dword [eax + 4], 0xf9
mov eax, dword [ecx + 0x34]
mov dword [esp + 4], str.GetLastError___returns__ld_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ecx + 0x34], 2
sete al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0xfb
movzx edx, byte [ebp - 0x214]
mov dword [esp + 4], str.LZOpenFileA_set_test.cBytes_to__d_n
cmp dl, 0xa5
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0xfd
movzx edx, word [ebp - 0x212]
mov dword [esp + 4], str.LZOpenFileA_set_test.nErrCode_to__d_n
cmp dx, 2
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0xff
mov dword [esp + 4], ebx
mov dword [esp], esi
mov eax, dword [ebp - 0x5c0]
call eax
mov edi, dword [ebp - 0x5bc]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0x10], edi
movzx eax, al
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.LZOpenFileA_returned__s__but_was_expected_to_return__s_or__s_n
call fcn.00401720
mov eax, 0xa5a5a5a5
mov ecx, 0x20
mov edx, ebx
mov dword [ebp - 0x5bc], edi
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x5b8]
mov ecx, 0x22
rep stosd dword es:[edi], eax
mov eax, str.extless._
call fcn.00401740
mov ecx, dword [ebp - 0x5b0]
mov dword [ecx + 0x34], 0xfaceabee
mov dword [esp + 8], 0x4000
mov edi, dword [ebp - 0x5b8]
mov dword [esp], str.extless.
mov dword [esp + 4], edi
mov edx, dword [ebp - 0x5b4]
call edx
sub esp, 0xc
mov edi, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x10a
xor eax, eax
cmp edi, 0xffffffff
sete al
mov dword [esp + 4], str.LZOpenFileA_succeeded_on_nonexistent_file_n
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov ecx, dword [ebp - 0x5b0]
mov dword [eax], 0x408127
mov dword [eax + 4], 0x10c
mov eax, dword [ecx + 0x34]
mov dword [esp + 4], str.GetLastError___returns__ld_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ecx + 0x34], 2
sete al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x10e
movzx edx, byte [ebp - 0x214]
mov dword [esp + 4], str.LZOpenFileA_set_test.cBytes_to__d_n
cmp dl, 0xa5
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x110
movzx edx, word [ebp - 0x212]
mov dword [esp + 4], str.LZOpenFileA_set_test.nErrCode_to__d_n
cmp dx, 2
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x112
mov dword [esp + 4], ebx
mov dword [esp], esi
mov eax, dword [ebp - 0x5c0]
call eax
mov edi, dword [ebp - 0x5bc]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0x10], edi
movzx eax, al
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.LZOpenFileA_returned__s__but_was_expected_to_return__s_or__s_n
call fcn.00401720
mov eax, 0xa5a5a5a5
mov ecx, 0x20
mov edx, ebx
mov dword [ebp - 0x5bc], edi
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x5b8]
mov ecx, 0x22
rep stosd dword es:[edi], eax
mov eax, 0x4060a4
call fcn.00401740
mov ecx, dword [ebp - 0x5b0]
mov dword [ecx + 0x34], 0xfaceabee
mov dword [esp + 8], 0x4000
mov edi, dword [ebp - 0x5b8]
mov dword [esp], str._terminated.xxxx_
mov dword [esp + 4], edi
mov edx, dword [ebp - 0x5b4]
call edx
sub esp, 0xc
mov edi, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x11d
xor eax, eax
cmp edi, 0xffffffff
sete al
mov dword [esp + 4], str.LZOpenFileA_succeeded_on_nonexistent_file_n
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov ecx, dword [ebp - 0x5b0]
mov dword [eax], 0x408127
mov dword [eax + 4], 0x11f
mov eax, dword [ecx + 0x34]
mov dword [esp + 4], str.GetLastError___returns__ld_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ecx + 0x34], 2
sete al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x121
movzx edx, byte [ebp - 0x214]
mov dword [esp + 4], str.LZOpenFileA_set_test.cBytes_to__d_n
cmp dl, 0xa5
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x123
movzx edx, word [ebp - 0x212]
mov dword [esp + 4], str.LZOpenFileA_set_test.nErrCode_to__d_n
cmp dx, 2
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401720
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x125
mov dword [esp + 4], ebx
mov dword [esp], esi
mov eax, dword [ebp - 0x5c0]
call eax
mov edi, dword [ebp - 0x5bc]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0x10], edi
movzx eax, al
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], str.LZOpenFileA_returned__s__but_was_expected_to_return__s_or__s_n
mov dword [esp], eax
call fcn.00401720
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret