Function at 0x40a840
Capabilities:
Get common file path
Get disk information
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88c
mov eax, dword [0x41a178]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x5e4], 0
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x5ec], 0
mov dword [ebp - 0x298], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x40a897
cmp dword [ebp + 0x10], 0
je 0x40a897
mov dword [ebp - 0x14], 1
jmp 0x40a8c9
cmp dword [ebp + 0x14], 0
je 0x40a8c9
cmp dword [ebp + 0x18], 0xffffffff
je 0x40a8c9
mov dword [ebp - 0x5ec], 1
cmp dword [ebp + 0x18], 2
jne 0x40a8bf
mov dword [ebp - 0x298], 0x8ae
jmp 0x40a8c9
mov dword [ebp - 0x298], 2
push 1
push 0x20
lea eax, [ebp - 0x290]
push eax
push 0x4205c0
call fcn.0040dc90
mov dword [ebp - 0x2a8], eax
cmp dword [ebp - 0x2a8], 0xffffffff
jne 0x40a944
push 1
push 0x12c
push 0x4209a0
push 0x1b71
mov ecx, dword [0x4204a0]
push ecx
call fcn.0040c3b0
push 1
push 0x12c
push 0x420860
push 0x1b72
mov edx, dword [0x4204a0]
push edx
call fcn.0040c3b0
push 0
push 0x4209a0
push 0x420860
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40b66a
mov ecx, dword [ebp - 0x2a8]
push ecx
call fcn.0040c9f0
mov dword [ebp - 0x1d8], eax
push 0
mov edx, dword [ebp - 0x1d8]
sub edx, 0x114
push edx
mov eax, dword [ebp - 0x2a8]
push eax
call fcn.0040ddc0
push 0x114
push 0x4206e0
mov ecx, dword [ebp - 0x2a8]
push ecx
call fcn.0040ddf0
movzx edx, byte [0x4207f0]
shl edx, 0x18
movzx eax, byte [0x4207f1]
shl eax, 0x10
or edx, eax
movzx ecx, byte [0x4207f2]
shl ecx, 8
or edx, ecx
movzx eax, byte [0x4207f3]
or edx, eax
mov dword [ebp - 0x1ec], edx
movzx ecx, byte [0x4207ec]
shl ecx, 0x18
movzx edx, byte [0x4207ed]
shl edx, 0x10
or ecx, edx
movzx eax, byte [0x4207ee]
shl eax, 8
or ecx, eax
movzx edx, byte [0x4207ef]
or ecx, edx
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x1ec], 0x270f
je 0x40aa48
push 1
push 0x12c
push 0x4209a0
push 0x1b73
mov eax, dword [0x4204a0]
push eax
call fcn.0040c3b0
push 1
push 0x12c
push 0x420860
push 0x1b74
mov ecx, dword [0x4204a0]
push ecx
call fcn.0040c3b0
push 0
push 0x4209a0
push 0x420860
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40b66a
cmp dword [ebp - 0x5ec], 0
je 0x40aa85
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x101
add eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x1fc], eax
cmp dword [ebp - 0x1fc], 0
jne 0x40aa7c
xor eax, eax
jmp 0x40b66a
mov ecx, dword [ebp - 0x1fc]
mov byte [ecx], 0
mov edx, dword [ebp - 0x28]
imul edx, edx, 0x114
mov eax, dword [ebp - 0x1d8]
sub eax, edx
mov dword [ebp - 0x204], eax
mov dword [ebp - 0x658], 0
mov dword [ebp - 0x200], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
jmp 0x40aac9
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x28]
jge 0x40b602
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x114
add eax, dword [ebp - 0x204]
mov dword [ebp - 0x2a0], eax
push 0
mov ecx, dword [ebp - 0x2a0]
push ecx
mov edx, dword [ebp - 0x2a8]
push edx
call fcn.0040ddc0
push 0x114
push 0x4206e0
mov eax, dword [ebp - 0x2a8]
push eax
call fcn.0040ddf0
movzx ecx, byte [0x4207e4]
shl ecx, 0x18
movzx edx, byte [0x4207e5]
shl edx, 0x10
or ecx, edx
movzx eax, byte [0x4207e6]
shl eax, 8
or ecx, eax
movzx edx, byte [0x4207e7]
or ecx, edx
mov dword [ebp - 0x140], ecx
movzx eax, byte [0x4207e8]
shl eax, 0x18
movzx ecx, byte [0x4207e9]
shl ecx, 0x10
or eax, ecx
movzx edx, byte [0x4207ea]
shl edx, 8
or eax, edx
movzx ecx, byte [0x4207eb]
or eax, ecx
mov dword [ebp - 0x654], eax
movzx edx, byte [0x4207ec]
shl edx, 0x18
movzx eax, byte [0x4207ed]
shl eax, 0x10
or edx, eax
movzx ecx, byte [0x4207ee]
shl ecx, 8
or edx, ecx
movzx eax, byte [0x4207ef]
or edx, eax
mov dword [ebp - 0x29c], edx
cmp dword [ebp - 0x654], 0
jne 0x40abc9
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x654], ecx
mov dword [ebp - 0x13c], 0
jmp 0x40abd3
mov dword [ebp - 0x13c], 1
cmp dword [ebp - 0x29c], 2
je 0x40abff
cmp dword [ebp - 0x29c], 0x8ae
je 0x40abff
mov edx, dword [ebp - 0x658]
add edx, dword [ebp - 0x654]
mov dword [ebp - 0x658], edx
jmp 0x40aac0
cmp dword [0x41b198], 0
je 0x40ac37
cmp dword [ebp - 0x14], 0
jne 0x40ac37
cmp dword [ebp - 0x5ec], 0
jne 0x40ac37
cmp dword [ebp - 0x200], 0
jne 0x40ac37
mov eax, dword [ebp - 0x658]
add eax, dword [ebp - 0x654]
mov dword [ebp - 0x658], eax
jmp 0x40aac0
cmp dword [ebp - 0x14], 0
je 0x40ac67
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4206e0
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40ac67
mov edx, dword [ebp - 0x658]
add edx, dword [ebp - 0x654]
mov dword [ebp - 0x658], edx
jmp 0x40aac0
cmp dword [ebp - 0x5ec], 0
je 0x40ace7
mov eax, dword [ebp - 0x29c]
cmp eax, dword [ebp - 0x298]
jne 0x40acc6
cmp dword [ebp + 0x18], 0
jne 0x40ac8d
cmp dword [ebp - 0x200], 0
jne 0x40aca2
cmp dword [ebp + 0x18], 1
jne 0x40ac9c
cmp dword [ebp - 0x200], 0
je 0x40aca2
cmp dword [ebp + 0x18], 2
jne 0x40acc6
push 0x4206e0
mov ecx, dword [ebp - 0x1fc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x419e64
mov edx, dword [ebp - 0x1fc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x200], 0
mov eax, dword [ebp - 0x658]
add eax, dword [ebp - 0x654]
mov dword [ebp - 0x658], eax
jmp 0x40aac0
movzx ecx, byte [0x4207e0]
shl ecx, 0x18
movzx edx, byte [0x4207e1]
shl edx, 0x10
or ecx, edx
movzx eax, byte [0x4207e2]
shl eax, 8
or ecx, eax
movzx edx, byte [0x4207e3]
or ecx, edx
mov dword [ebp - 0x1d4], ecx
push 0x4206e0
lea eax, [ebp - 0x4c8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x5f0], 0
cmp dword [ebp - 0x29c], 2
jne 0x40ad5b
push 0x118
lea ecx, [ebp - 0x3c0]
push ecx
lea edx, [ebp - 0x4c8]
push edx
call fcn.0040dc40
mov dword [ebp - 0x5f0], eax
cmp dword [ebp - 0x5f0], 0
jne 0x40adbe
push 0x4205c0
lea eax, [ebp - 0x3c0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x3c0]
push ecx
call fcn.0040c700
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x40ada3
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov byte [eax], 0
jmp 0x40adaa
mov byte [ebp - 0x3c0], 0
lea eax, [ebp - 0x4c8]
push eax
lea ecx, [ebp - 0x3c0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp - 0x14], 0
je 0x40add0
mov dword [ebp - 0x208], 0xffffffff
jmp 0x40ae02
cmp dword [ebp - 0x29c], 2
jne 0x40adf8
push 1
push 0x20
lea edx, [ebp - 0x1d0]
push edx
lea eax, [ebp - 0x3c0]
push eax
call fcn.0040dc90
mov dword [ebp - 0x208], eax
jmp 0x40ae02
mov dword [ebp - 0x208], 0xffffffff
cmp dword [ebp - 0x208], 0xffffffff
jne 0x40b5c6
cmp dword [ebp - 0x140], 0
jne 0x40af0d
cmp dword [ebp - 0x29c], 2
jne 0x40af0d
mov ecx, dword [ebp - 0x2a8]
push ecx
call fcn.0040dda0
cmp dword [ebp - 0x5e4], 0
je 0x40ae4b
mov edx, dword [ebp - 0x5e4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x4205c0
call fcn.0040c700
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x40ae79
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x144], eax
jmp 0x40ae83
mov dword [ebp - 0x144], 0x4205c0
mov ecx, dword [ebp - 0x144]
push ecx
push 0x4209a0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x2e
push 0x4209a0
call fcn.0040c6b0
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x40aeb0
mov edx, dword [ebp - 0x2c]
mov byte [edx], 0
lea eax, [ebp - 0x4c8]
push eax
push 0x4209a0
push str._s___s_
lea ecx, [ebp - 0x880]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 1
push 0x12c
push 0x420860
push 0x1b76
mov edx, dword [0x4204a0]
push edx
call fcn.0040c3b0
push 0
lea eax, [ebp - 0x880]
push eax
push 0x420860
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40b66a
cmp dword [ebp - 0x208], 0xffffffff
jne 0x40b063
cmp dword [ebp - 0x14], 0
je 0x40af3b
push 0x118
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x5e0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x40b063
push 4
push 0x4205c0
lea ecx, [ebp - 0x884]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [ebp - 0x884]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov word [ebp - 0x65c], ax
movzx eax, word [ebp - 0x65c]
cmp eax, 2
je 0x40af7b
movzx ecx, word [ebp - 0x65c]
cmp ecx, 5
jne 0x40af87
mov dword [ebp - 0x1f0], 1
jmp 0x40af91
mov dword [ebp - 0x1f0], 0
movzx edx, word [ebp - 0x65c]
cmp edx, 2
jne 0x40afb0
cmp dword [0x41b194], 0
je 0x40afb0
mov dword [ebp - 0x1f0], 0
cmp dword [ebp - 0x1f0], 0
je 0x40b009
push 0x118
lea eax, [ebp - 0x5e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40afdb
mov byte [ebp - 0x5e0], 0
cmp dword [ebp - 0x1c], 3
jle 0x40aff3
push 0x419e70
lea ecx, [ebp - 0x5e0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x4c8]
push edx
lea eax, [ebp - 0x5e0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40b063
push 0x4205c0
lea ecx, [ebp - 0x5e0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x5e0]
push edx
call fcn.0040c700
mov dword [ebp - 0x888], eax
cmp dword [ebp - 0x888], 0
je 0x40b048
mov eax, dword [ebp - 0x888]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov byte [eax], 0
jmp 0x40b04f
mov byte [ebp - 0x5e0], 0
lea ecx, [ebp - 0x4c8]
push ecx
lea edx, [ebp - 0x5e0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
movzx eax, byte [ebp - 0x5e0]
cmp eax, 0x5c
jne 0x40b0c1
movzx ecx, byte [ebp - 0x5df]
cmp ecx, 0x5c
jne 0x40b0c1
push 0x104
lea edx, [ebp - 0x5e0]
push edx
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x138]
push ecx
call fcn.0040c700
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x40b0bf
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov byte [eax], 0
jmp 0x40b0ef
mov al, byte [ebp - 0x5e0]
mov byte [ebp - 0x138], al
mov byte [ebp - 0x137], 0x3a
mov byte [ebp - 0x136], 0x5c
mov byte [ebp - 0x135], 0
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.USER32.dll_CharUpperA]
mov edx, dword [ebp - 0x140]
push edx
lea eax, [ebp - 0x138]
push eax
call fcn.0040a6a0
test eax, eax
jne 0x40b1ce
mov ecx, dword [ebp - 0x2a8]
push ecx
call fcn.0040dda0
cmp dword [ebp - 0x5e4], 0
je 0x40b12c
mov edx, dword [ebp - 0x5e4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x10], 0x190
push 1
push 0x12c
push 0x4209a0
push 0x1b77
mov eax, dword [0x4204a0]
push eax
call fcn.0040c3b0
push 1
push 0x12c
push 0x420860
push 0x1b78
mov ecx, dword [0x4204a0]
push ecx
call fcn.0040c3b0
push 1
push 0x50
lea edx, [ebp - 0x650]
push edx
push 0x1b79
mov eax, dword [0x4204a0]
push eax
call fcn.0040c3b0
lea ecx, [ebp - 0x650]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x420860
push 0x4209a0
push str._s___s__dK__s.
push 0x4204c0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
lea eax, [ebp - 0x5e0]
push eax
push 0x4204c0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40b66a
push 0
push 0x1011
lea edx, [ebp - 0x1d0]
push edx
lea eax, [ebp - 0x5e0]
push eax
call fcn.0040dc90
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0xffffffff
jne 0x40b254
mov ecx, dword [ebp - 0x2a8]
push ecx
call fcn.0040dda0
cmp dword [ebp - 0x5e4], 0
je 0x40b219
mov edx, dword [ebp - 0x5e4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
push 0x12c
push 0x4209a0
push 0x1b7a
mov eax, dword [0x4204a0]
push eax
call fcn.0040c3b0
push 0
lea ecx, [ebp - 0x5e0]
push ecx
push 0x4209a0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40b66a
mov dword [ebp - 0x5e8], 0
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x5f8], 0
mov eax, dword [ebp - 0x654]
cmp eax, dword [ebp - 0x140]
jle 0x40b298
mov ecx, dword [ebp - 0x654]
mov dword [ebp - 0x88c], ecx
jmp 0x40b2a4
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x88c], edx
mov eax, dword [ebp - 0x88c]
add eax, 0x3e8
mov dword [ebp - 0x1e4], eax
mov ecx, dword [ebp - 0x1e4]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x5f4], eax
mov edx, dword [ebp - 0x5f4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x2a4], eax
cmp dword [ebp - 0x5f4], 0
je 0x40b42c
cmp dword [ebp - 0x2a4], 0
je 0x40b42c
mov dword [ebp - 0x5e8], 1
push 0
mov eax, dword [ebp - 0x658]
push eax
mov ecx, dword [ebp - 0x2a8]
push ecx
call fcn.0040ddc0
push 0
lea edx, [ebp - 0x5fc]
push edx
mov eax, dword [ebp - 0x654]
push eax
mov ecx, dword [ebp - 0x2a4]
push ecx
mov edx, dword [ebp - 0x2a8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp - 0x5fc]
cmp eax, dword [ebp - 0x654]
je 0x40b358
mov dword [ebp - 0x1e0], 0
cmp dword [ebp - 0x1e0], 0
je 0x40b42c
cmp dword [ebp - 0x13c], 0
je 0x40b3d1
cmp dword [ebp - 0x294], 0
jne 0x40b393
mov ecx, dword [0x4204a0]
push ecx
call fcn.00401340
mov dword [ebp - 0x5e4], eax
mov dword [ebp - 0x294], 1
cmp dword [ebp - 0x5e4], 0
je 0x40b3cf
mov edx, dword [ebp - 0x1e4]
push edx
mov eax, dword [ebp - 0x654]
push eax
mov ecx, dword [ebp - 0x2a4]
push ecx
call fcn.00401440
mov dword [ebp - 0x1e8], eax
cmp dword [ebp - 0x1e8], 0xffffffff
je 0x40b3cf
mov dword [ebp - 0x5f8], 1
jmp 0x40b3e7
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x1e8], edx
mov dword [ebp - 0x5f8], 1
cmp dword [ebp - 0x5f8], 0
je 0x40b42c
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x1e8]
push ecx
mov edx, dword [ebp - 0x2a4]
push edx
mov eax, dword [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1dc], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x1e8]
je 0x40b42c
mov dword [ebp - 0x1dc], 0
cmp dword [ebp - 0x5f4], 0
je 0x40b44f
mov edx, dword [ebp - 0x5f4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x5f4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x1dc], 0
jne 0x40b53d
mov ecx, dword [ebp - 0x208]
push ecx
call fcn.0040dda0
mov edx, dword [ebp - 0x2a8]
push edx
call fcn.0040dda0
cmp dword [ebp - 0x5e4], 0
je 0x40b48a
mov eax, dword [ebp - 0x5e4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x5e8], 0
jne 0x40b4b2
push 1
push 0x12c
push 0x4209a0
push 0x1b93
mov ecx, dword [0x4204a0]
push ecx
call fcn.0040c3b0
jmp 0x40b51e
cmp dword [ebp - 0x1e0], 0
jne 0x40b4da
push 1
push 0x12c
push 0x4209a0
push 0x1b94
mov edx, dword [0x4204a0]
push edx
call fcn.0040c3b0
jmp 0x40b51e
cmp dword [ebp - 0x5f8], 0
jne 0x40b501
push 1
push 0x12c
push 0x4209a0
push 0x1b95
mov eax, dword [0x4204a0]
push eax
call fcn.0040c3b0
jmp 0x40b51e
push 1
push 0x12c
push 0x4209a0
push 0x1b7b
mov ecx, dword [0x4204a0]
push ecx
call fcn.0040c3b0
push 0
lea edx, [ebp - 0x4c8]
push edx
push 0x4209a0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40b66a
mov ecx, dword [ebp - 0x208]
push ecx
call fcn.0040dda0
lea edx, [ebp - 0x1f8]
push edx
mov eax, dword [ebp - 0x1d4]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x1d4]
shr ecx, 0x10
and ecx, 0xffff
push ecx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x1f8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x3c0]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x40b5c4
lea edx, [ebp - 0xc]
push edx
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b5d2
mov edx, dword [ebp - 0x208]
push edx
call fcn.0040dda0
mov dword [ebp - 0x200], 0
mov eax, dword [ebp - 0x658]
add eax, dword [ebp - 0x654]
mov dword [ebp - 0x658], eax
cmp dword [ebp - 0x14], 0
je 0x40b5fd
mov dword [ebp - 0x24], 1
jmp 0x40b602
jmp 0x40aac0
mov ecx, dword [ebp - 0x2a8]
push ecx
call fcn.0040dda0
cmp dword [ebp - 0x5e4], 0
je 0x40b624
mov edx, dword [ebp - 0x5e4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x14], 0
je 0x40b62f
mov eax, dword [ebp - 0x24]
jmp 0x40b66a
cmp dword [ebp - 0x5ec], 0
je 0x40b665
mov eax, dword [ebp - 0x1fc]
push eax
call fcn.0040c660
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x40b653
mov ecx, dword [ebp - 0x2c]
mov byte [ecx], 0
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x1fc]
mov dword [edx], eax
mov eax, 1
jmp 0x40b66a
mov eax, 1
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0040f735
mov esp, ebp
pop ebp
ret 0x14