Function at 0x10009230
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ccbe
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x400], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
je 0x10009285
mov edi, esi
call fcn.10009d90
mov eax, dword [esi]
cmp eax, ebx
je 0x10009285
push eax
call fcn.10009b30
push 0x24
mov dword [esi], ebx
mov dword [ebp - 0x44c], 3
call fcn.1006610e
add esp, 4
mov edi, eax
cmp edi, ebx
je 0x100092be
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov dword [edi], ebx
mov dword [edi + 0x20], 1
call fcn.10068213
jmp 0x100092c0
xor edi, edi
mov byte [ebp - 4], bl
mov dword [esi], edi
lea eax, [esi + 4]
lea edi, [ebp + 8]
call fcn.10003400
lea eax, [esi + 8]
call fcn.10003400
push 3
mov esi, 0xf
push 0x10082900
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x438], ebx
mov byte [ebp - 0x448], bl
call fcn.10004bf0
mov dword [ebp - 0x2c0], esi
mov dword [ebp - 0x2c4], ebx
mov byte [ebp - 0x2d4], bl
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 4
call fcn.10004830
mov eax, 2
mov edi, 0x10
mov dword [ebp - 0x2b8], ebx
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2b0], 0xffffffff
mov dword [ebp - 0x2ac], eax
cmp dword [ebp - 0x434], edi
jb 0x10009369
mov ecx, dword [ebp - 0x448]
push ecx
call fcn.100660ce
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x438], ebx
mov byte [ebp - 0x448], bl
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x298], ebx
mov byte [ebp - 0x2a8], bl
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x2d4]
push edx
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 6
call fcn.10004830
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 0x2b4]
mov edx, dword [ebp - 0x2b0]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x284], edx
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x2c0], edi
jb 0x100093f6
mov ecx, dword [ebp - 0x2d4]
push ecx
call fcn.100660ce
add esp, 4
push 5
push str.value
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x2c0], esi
mov dword [ebp - 0x2c4], ebx
mov byte [ebp - 0x2d4], bl
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x418], ebx
mov byte [ebp - 0x428], bl
call fcn.10004bf0
mov dword [ebp - 0x2ec], esi
mov dword [ebp - 0x2f0], ebx
mov byte [ebp - 0x300], bl
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x428]
push edx
lea ecx, [ebp - 0x300]
mov byte [ebp - 4], 0xa
call fcn.10004830
mov dword [ebp - 0x2e4], ebx
mov dword [ebp - 0x2e0], 2
mov dword [ebp - 0x2dc], 0xffffffff
mov dword [ebp - 0x2d8], 1
cmp dword [ebp - 0x414], edi
jb 0x10009492
mov eax, dword [ebp - 0x428]
push eax
call fcn.100660ce
add esp, 4
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x418], ebx
mov byte [ebp - 0x428], bl
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x26c], ebx
mov byte [ebp - 0x27c], bl
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x300]
push ecx
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0xc
call fcn.10004830
mov edx, dword [ebp - 0x2e4]
mov eax, dword [ebp - 0x2e0]
mov ecx, dword [ebp - 0x2dc]
mov dword [ebp - 0x260], edx
mov edx, dword [ebp - 0x2d8]
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], edx
cmp dword [ebp - 0x2ec], edi
jb 0x10009516
mov eax, dword [ebp - 0x300]
push eax
call fcn.100660ce
add esp, 4
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x250], bl
mov dword [ebp - 0x234], 2
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], 0xffffffff
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x404], ebx
mov edi, edi
mov ecx, dword [ebp - 0x400]
mov byte [ebp - 4], 0x11
mov esi, dword [ecx + 8]
cmp esi, ebx
jne 0x10009565
xor edx, edx
jmp 0x100095b3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x100095af
add eax, eax
mov dword [ebp - 0x3fc], eax
call fcn.10067150
mov edi, esp
mov dword [ebp - 0x10], esp
cmp edi, ebx
je 0x100095af
mov edx, dword [ebp - 0x3fc]
mov eax, dword [ebp - 0x44c]
push ebx
push ebx
push edx
push edi
push 0xffffffffffffffff
push esi
push ebx
push eax
mov byte [edi], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x100095b1
xor eax, eax
mov edx, eax
mov eax, edx
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], ebx
mov byte [ebp - 0x428], bl
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100095d0
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x428]
call fcn.10004bf0
mov esi, dword [ebp - 0x400]
mov edi, dword [esi]
mov byte [ebp - 4], 0x12
mov eax, dword [edi]
cmp eax, ebx
je 0x1000961a
push eax
call fcn.1004bf1a
lea eax, [edi + 4]
mov dword [edi], ebx
add esp, 4
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], ebx
jb 0x10009611
mov eax, dword [eax]
mov byte [eax], bl
mov dword [edi + 0x20], 1
cmp dword [ebp - 0x414], 0x10
mov eax, dword [ebp - 0x428]
jae 0x1000962f
lea eax, [ebp - 0x428]
push ebx
push 6
push edi
push eax
call fcn.1004cb09
add esp, 0x10
mov dword [edi + 0x20], eax
cmp eax, ebx
jne 0x10009902
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x414], 0x10
jb 0x10009663
mov ecx, dword [ebp - 0x428]
push ecx
call fcn.100660ce
add esp, 4
lea edx, [ebp - 0x2a8]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3fc], esp
push 4
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push str.meta
mov byte [ecx], bl
call fcn.10004bf0
mov eax, dword [esi]
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x3f8]
call fcn.1000e8b3
lea eax, [ebp - 0x37c]
push str.select__from
push eax
lea edi, [ebp - 0x3f4]
mov byte [ebp - 4], 0x16
call fcn.1000e3db
add esp, 8
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x37c]
mov byte [ebp - 4], 0x17
push ecx
mov esi, 0xf
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x418], ebx
mov byte [ebp - 0x428], bl
call fcn.10004830
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x3d4]
mov edi, 0x10
mov dword [ebp - 0x3c4], ebx
cmp dword [ebp - 0x3c0], edi
jae 0x1000970e
lea eax, [ebp - 0x3d4]
lea edx, [ebp - 0x394]
push edx
mov byte [eax], bl
call fcn.1000f145
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x3b8], 1
mov dword [ebp - 0x3fc], ebx
cmp dword [ebp - 0x414], edi
jae 0x10009740
lea eax, [ebp - 0x428]
lea ecx, [ebp - 0x3fc]
push ecx
lea edx, [ebp - 0x3d8]
push edx
push 0x1000eef3
push eax
mov eax, dword [ebp - 0x3d8]
push eax
call fcn.1003b1bc
add esp, 0x14
mov dword [ebp - 0x3b8], eax
cmp eax, ebx
jne 0x100097fc
cmp dword [ebp - 0x414], edi
jb 0x10009788
mov ecx, dword [ebp - 0x428]
push ecx
call fcn.100660ce
add esp, 4
cmp dword [ebp - 0x368], edi
jb 0x1000979f
mov edx, dword [ebp - 0x37c]
push edx
call fcn.100660ce
add esp, 4
lea eax, [ebp - 0x3f8]
push eax
mov byte [ebp - 4], 0x11
call fcn.10009bd0
push fcn.10004d30
push 3
push 0x2c
lea ecx, [ebp - 0x2a8]
push ecx
mov dword [ebp - 4], ebx
call fcn.10066e2d
mov eax, dword [ebp + 8]
lea edx, [eax - 0xc]
cmp edx, dword [0x10095a00]
je 0x100097f2
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100097f2
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
push eax
call fcn.10066c8a
add esp, 4
mov eax, 1
jmp 0x10009b06
mov edi, dword [ebp - 0x3fc]
cmp byte [edi], bl
je 0x1000982f
mov eax, edi
lea edx, [eax + 1]
jmp 0x10009810
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10009810
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x3d4]
call fcn.10004bf0
push edi
call fcn.100117f2
add esp, 4
lea ecx, [ebp - 0x2f0]
lea eax, [ebp - 0x3d8]
call fcn.1000eeb7
push eax
lea ecx, [ebp - 0x448]
push str.RecordSet::query:
push ecx
mov byte [ebp - 4], 0x19
call fcn.1000e36f
mov edi, dword [ebp - 0x3b8]
add esp, 0xc
push 0xffffffffffffffff
mov byte [ebp - 4], 0x1a
push ebx
lea edx, [ebp - 0x448]
push edx
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2b4], esi
mov dword [ebp - 0x2b8], ebx
mov byte [ebp - 0x2c8], bl
call fcn.10004830
cmp dword [ebp - 0x434], 0x10
mov dword [ebp - 0x2ac], edi
jb 0x100098a8
mov eax, dword [ebp - 0x448]
push eax
call fcn.100660ce
add esp, 4
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x438], ebx
mov byte [ebp - 0x448], bl
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 0x1b
push ecx
lea ecx, [ebp - 0x320]
mov dword [ebp - 0x30c], esi
mov dword [ebp - 0x310], ebx
mov byte [ebp - 0x320], bl
call fcn.10004830
mov edx, dword [ebp - 0x2ac]
push 0x1008f1e0
lea eax, [ebp - 0x320]
push eax
mov dword [ebp - 0x304], edx
call fcn.1006618e
mov ecx, dword [edi]
push ecx
call fcn.1004c88b
mov ecx, eax
add esp, 4
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x10009912
sub ecx, esi
push ecx
push eax
lea ecx, [edi + 4]
call fcn.10004bf0
lea ecx, [ebp - 0x2f0]
mov eax, edi
call fcn.1000eeb7
push eax
lea edx, [ebp - 0x448]
push str.Database::open:
push edx
mov byte [ebp - 4], 0x13
call fcn.1000e36f
mov edi, dword [edi + 0x20]
add esp, 0xc
push 0xffffffffffffffff
mov byte [ebp - 4], 0x14
push ebx
lea eax, [ebp - 0x448]
mov esi, 0xf
push eax
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2b4], esi
mov dword [ebp - 0x2b8], ebx
mov byte [ebp - 0x2c8], bl
call fcn.10004830
cmp dword [ebp - 0x434], 0x10
mov dword [ebp - 0x2ac], edi
jb 0x1000999c
mov ecx, dword [ebp - 0x448]
push ecx
call fcn.100660ce
add esp, 4
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x438], ebx
mov byte [ebp - 0x448], bl
push 0xffffffffffffffff
mov byte [ebp - 4], 0x15
push ebx
lea edx, [ebp - 0x2c8]
push edx
lea ecx, [ebp - 0x340]
mov dword [ebp - 0x32c], esi
mov dword [ebp - 0x330], ebx
mov byte [ebp - 0x340], bl
call fcn.10004830
mov eax, dword [ebp - 0x2ac]
push 0x1008f1e0
lea ecx, [ebp - 0x340]
push ecx
mov dword [ebp - 0x324], eax
call fcn.1006618e
xor ebx, ebx
mov byte [ebp - 4], 0x1d
cmp dword [ebp + 0xc], ebx
je 0x10009a7c
cmp dword [ebp - 0x344], 5
jne 0x10009a7c
lea edx, [ebp - 0x220]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10009a7c
mov esi, dword [ebp - 0x400]
add esi, 8
push esi
mov eax, 0x104
call fcn.10004440
push eax
push ebx
push str.sbw_
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, esi
call fcn.10004dd0
mov esi, dword [esi]
mov ecx, dword [ebp + 8]
push ebx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x360]
call fcn.10004d30
mov dword [ebp - 4], 0x10
mov eax, 0x10009a75
ret
inc dword [ebp - 0x404]
cmp dword [ebp - 0x344], 8
jne 0x10009ab7
cmp dword [ebp - 0x404], 5
jge 0x10009ab7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x360]
call fcn.10004d30
mov dword [ebp - 4], 0x10
mov eax, 0x10009a75
ret
mov esi, dword [ebp - 0x400]
mov eax, dword [esi]
cmp eax, ebx
je 0x10009ac9
push eax
call fcn.10009b30
lea ecx, [ebp - 0x360]
mov dword [esi], ebx
call fcn.10004d30
mov dword [ebp - 4], 0x10
mov eax, 0x10009ae3
ret
lea esp, [ebp - 0x460]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret 8