Function at 0x4780e0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x94]
push eax
call fcn.0046f9e0
add esp, 4
push 0xa
push str.dblink.db
mov ecx, eax
call fcn.00402350
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x60], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebp - 0x80]
cmp edx, 8
jb 0x4781a3
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x94]
mov eax, ecx
cmp edx, 0x1000
jb 0x478199
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478ed8
push edx
push ecx
call fcn.005342bc
add esp, 8
lea esi, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
cmovae esi, dword [ebp - 0x70]
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
cmp esi, 0xffffffff
je 0x47831f
test esi, 0x10
jne 0x47831f
mov byte [ebp - 0x25], 1
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
cmovae eax, dword [ebp - 0x70]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x54], esi
cmp esi, 0xffffffff
je 0x4782f7
lea eax, [ebp - 0xd0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0x78], ecx
test ecx, ecx
je 0x4782f7
push 0
push 0
push 0
push 0x4000002
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x4782f7
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4782ee
xor ecx, ecx
mov edx, dword [ebp - 0x78]
test edx, edx
je 0x4782be
cmp edx, 8
jb 0x4782be
mov esi, edx
and esi, 0xfffffff8
movaps xmm2, xmmword [0x57c150]
movaps xmm3, xmm2
movd xmm1, dword [eax + ecx]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pand xmm2, xmm1
movd xmm1, dword [eax + ecx + 4]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pand xmm3, xmm1
add ecx, 8
cmp ecx, esi
jb 0x478291
mov dword [ebp - 0x18], 0
cmp ecx, edx
jae 0x4782e4
xor esi, esi
mov edi, dword [ebp - 0x30]
nop
movzx eax, byte [ecx + edi]
and esi, eax
inc ecx
cmp ecx, edx
jb 0x4782d0
mov dword [ebp - 0x18], esi
mov edi, dword [ebp - 0x74]
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [ebp - 0x54]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x478302
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
push 0x57bb98
push 1
call fcn.005607a0
add esp, 4
push eax
call fcn.004724d0
add esp, 0xc
jmp 0x478323
mov byte [ebp - 0x25], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
push 0xfde9
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00401830
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 0x10
cmovae eax, dword [ebp - 0x48]
lea esi, [edi + 8]
push esi
push eax
call fcn.004b0ea0
add esp, 0x14
test eax, eax
je 0x4783eb
push dword [esi]
call fcn.004b1430
add esp, 4
push eax
push 0x57bb9c
push 2
call fcn.005607a0
add esp, 4
push eax
call fcn.004724d0
add esp, 0xc
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x4783be
inc edx
mov ecx, dword [ebp - 0x48]
mov eax, ecx
cmp edx, 0x1000
jb 0x4783b4
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478edd
push edx
push ecx
call fcn.005342bc
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
lea ecx, [ebp - 0x70]
call fcn.00403070
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x25], 0
jne 0x478538
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.BEGIN
push dword [esi]
call fcn.004af800
add esp, 0x14
test eax, eax
jne 0x478ee2
lea eax, [ebp - 0x14]
push eax
push 0
push 0x472400
push str.CREATE_TABLE_IF_NOT_EXISTS_Version_ID_INTEGER_PRIMARY_KEY__Ver_INTEGER_
push dword [esi]
call fcn.004af800
add esp, 0x14
test eax, eax
jne 0x478efd
push dword [0x5b5010]
push str.REPLACE_INTO_Version_ID_Ver__VALUES__1__d__
lea eax, [ebp - 0x94]
push eax
call fcn.004014d0
push 0xfde9
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00401830
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 0x10
cmovae eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push eax
push dword [esi]
call fcn.004af800
add esp, 0x2c
test eax, eax
jne 0x478f18
mov eax, dword [0x5b5010]
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.CREATE_TABLE_IF_NOT_EXISTS_Groups_ID_INTEGER_PRIMARY_KEY_AUTOINCREMENT_NAME_CHARACTER_16__NOT_NULL_TYPE_INTEGER_DEFAULT_0_SORT_INTEGER_DEFAULT_0_POS_INTEGER_DEFAULT_0_ParentGroup_INTEGER_DEFAULT_0_ICON_TEXT_LAYOUT_INTEGER_DEFAULT_0_ICONSIZE_INTEGER_DEFAULT_0_FLAG_INTEGER_DEFAULT_0_Content_TEXT__
push dword [esi]
call fcn.004af800
add esp, 0x14
test eax, eax
jne 0x478f33
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.CREATE_TABLE_IF_NOT_EXISTS_Links_ID_INTEGER_PRIMARY_KEY_AUTOINCREMENT_NAME_TEXT_NOT_NULL_POS_INTEGER_DEFAULT_0_RunCount_INTEGER_DEFAULT_0_ParentGroup_INTEGER_DEFAULT_0_TYPE_INTEGER_DEFAULT_0_ICON_TEXT_NOT_NULL_PATH_TEXT_NOT_NULL_Parameter_TEXT_NOT_NULL_WorkDir_TEXT_NOT_NULL_HotKey_INTEGER_DEFAULT_0_ShowCmd_INTEGER_DEFAULT_0_IsAdmin_INTEGER_DEFAULT_0_IsCustomColor_INTEGER_DEFAULT_0_CustomColor_CHARACTER_10__Remark_TEXT_Pidl_BLOB__
push dword [esi]
call fcn.004af800
add esp, 0x14
test eax, eax
jne 0x478f4e
push 0xfde9
lea eax, [ebp - 0x48]
push eax
push str.INSERT_INTO_Groups_ID_NAME__VALUES__1_
call fcn.004017b0
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 0x10
cmovae eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push eax
push dword [esi]
call fcn.004af800
add esp, 0x20
test eax, eax
jne 0x478f69
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.COMMIT
push dword [esi]
call fcn.004af800
add esp, 0x14
test eax, eax
jne 0x478f84
lea ecx, [ebp - 0x94]
call fcn.00403070
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0xc], 0
jne 0x4786e4
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
push str.select_Ver_from_Version_where_id1
push dword [esi]
call fcn.004b1680
add esp, 0x14
test eax, eax
jne 0x478596
push dword [ebp - 0x18]
call fcn.004b2380
add esp, 4
cmp eax, 0x64
jne 0x47858b
push 0
push dword [ebp - 0x18]
call fcn.004b2730
add esp, 8
mov dword [edi + 0xc], eax
push dword [ebp - 0x18]
call fcn.004b2c10
add esp, 4
cmp dword [edi + 0xc], 0
jne 0x4786e4
lea eax, [ebp - 0x14]
push eax
push 0
push 0x472400
push str.CREATE_TABLE_IF_NOT_EXISTS_Version_ID_INTEGER_PRIMARY_KEY__Ver_INTEGER_
push dword [esi]
call fcn.004af800
add esp, 0x14
test eax, eax
je 0x478652
push dword [ebp - 0x14]
push str.SQL_error:__s_n
push 2
call fcn.005607a0
add esp, 4
push eax
call fcn.004724d0
push dword [ebp - 0x14]
call fcn.004b09e0
add esp, 0x10
jmp 0x47862f
lea ecx, [ebp - 0x48]
call fcn.00402770
lea ecx, [ebp - 0x70]
call fcn.00403070
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2968
push str.REPLACE_INTO_Version_ID_Ver__VALUES__1__d__
lea eax, [ebp - 0x94]
push eax
call fcn.004014d0
push 0xfde9
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00401830
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 0x10
cmovae eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push eax
push dword [esi]
call fcn.004af800
add esp, 0x2c
test eax, eax
je 0x4786d2
push dword [ebp - 0x14]
push str.SQL_error:__s_n
push 2
call fcn.005607a0
add esp, 4
push eax
call fcn.004724d0
push dword [ebp - 0x14]
call fcn.004b09e0
add esp, 0x10
lea ecx, [ebp - 0x94]
call fcn.00403070
jmp 0x47862f
mov dword [edi + 0xc], 0x2968
lea ecx, [ebp - 0x94]
call fcn.00403070
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
push str.select__from_sqlite_master_where_name__Groups_and_sql_like__TYPE_
push dword [esi]
call fcn.004b04d0
add esp, 0x18
test eax, eax
jne 0x4785c2
cmp dword [edi + 0xc], 0x29d4
jb 0x478719
cmp dword [ebp - 0x2c], eax
jne 0x478761
lea eax, [ebp - 0x14]
push eax
push 0
push 0x472400
push str.ALTER_TABLE_Groups_ADD_TYPE_INTEGER_Default_0_ALTER_TABLE_Groups_ADD_SORT_INTEGER_Default_0_
push dword [esi]
call fcn.004af800
add esp, 0x14
test eax, eax
jne 0x4785c2
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.REPLACE_INTO_Version_ID_Ver__VALUES__1_10708_
push dword [esi]
call fcn.004af800
add esp, 0x14
test eax, eax
jne 0x4785c2
mov dword [edi + 0xc], 0x29d4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
push str.select__from_sqlite_master_where_name__Groups_and_sql_like__Content_
push dword [esi]
call fcn.004b04d0
add esp, 0x18
test eax, eax
jne 0x4785c2
cmp dword [edi + 0xc], 0x2a30
jb 0x478796
cmp dword [ebp - 0x2c], eax
jne 0x4787de
lea eax, [ebp - 0x14]
push eax
push 0
push 0x472400
push str.ALTER_TABLE_Groups_ADD_Content_TEXT
push dword [esi]
call fcn.004af800
add esp, 0x14
test eax, eax
jne 0x4785c2
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.REPLACE_INTO_Version_ID_Ver__VALUES__1_10800_
push dword [esi]
call fcn.004af800
add esp, 0x14
test eax, eax
jne 0x4785c2
mov dword [edi + 0xc], 0x2a30
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
push str.select__from_sqlite_master_where_name__Links_and_sql_like__Pidl_
push dword [esi]
call fcn.004b04d0
add esp, 0x18
test eax, eax
jne 0x4785c2
cmp dword [edi + 0xc], 0x2a30
jb 0x478813
cmp dword [ebp - 0x2c], eax
jne 0x47885b
lea eax, [ebp - 0x14]
push eax
push 0
push 0x472400
push str.ALTER_TABLE_Links_ADD_Pidl_BLOB_
push dword [esi]
call fcn.004af800
add esp, 0x14
test eax, eax
jne 0x4785c2
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.REPLACE_INTO_Version_ID_Ver__VALUES__1_10800_
push dword [esi]
call fcn.004af800
add esp, 0x14
test eax, eax
jne 0x4785c2
mov dword [edi + 0xc], 0x2a30
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
push str.select__from_sqlite_master_where_name__Groups_and_sql_like__FLAG_
push dword [esi]
call fcn.004b04d0
add esp, 0x18
test eax, eax
jne 0x4785c2
cmp dword [edi + 0xc], 0x2a34
jb 0x478890
cmp dword [ebp - 0x2c], eax
jne 0x4788d8
lea eax, [ebp - 0x14]
push eax
push 0
push 0x472400
push str.ALTER_TABLE_Groups_ADD_FLAG_INTEGER_Default_0_
push dword [esi]
call fcn.004af800
add esp, 0x14
test eax, eax
jne 0x4785c2
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.REPLACE_INTO_Version_ID_Ver__VALUES__1_10804_
push dword [esi]
call fcn.004af800
add esp, 0x14
test eax, eax
jne 0x4785c2
mov dword [edi + 0xc], 0x2a34
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
push str.select_ID_NAME_ParentGroup_ICON_LAYOUT_ICONSIZE_POS_TYPE_SORT_Content_FLAG_from_Groups_ORDER_BY_ParentGroup_POS
push dword [esi]
call fcn.004b04d0
add esp, 0x18
test eax, eax
jne 0x4785c2
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x2c], 1
jl 0x478abf
push 0xa8
call fcn.0053428c
add esp, 4
test eax, eax
je 0x47892a
mov ecx, eax
call fcn.00473ac0
jmp 0x47892c
xor eax, eax
push eax
lea ecx, [ebp - 0x50]
call fcn.00472560
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push dword [eax + ecx*4]
call sub.msvcrt.dll_atoi
add esp, 4
mov esi, dword [ebp - 0x50]
mov dword [esi], eax
cmp dword [edi], eax
jge 0x478955
mov dword [edi], eax
push 0xfde9
lea eax, [esi + 0x14]
push eax
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push dword [eax + ecx*4 + 4]
call fcn.004016c0
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push dword [eax + ecx*4 + 8]
call sub.msvcrt.dll_atoi
mov dword [esi + 0x10], eax
push 0xfde9
lea eax, [esi + 0x2c]
push eax
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push dword [eax + ecx*4 + 0xc]
call fcn.004016c0
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push dword [eax + ecx*4 + 0x10]
call sub.msvcrt.dll_atoi
mov dword [esi + 0x5c], eax
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push dword [eax + ecx*4 + 0x14]
call sub.msvcrt.dll_atoi
mov dword [esi + 0x60], eax
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push dword [eax + ecx*4 + 0x18]
call sub.msvcrt.dll_atoi
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push dword [eax + ecx*4 + 0x1c]
call sub.msvcrt.dll_atoi
mov dword [esi + 8], eax
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push dword [eax + ecx*4 + 0x20]
call sub.msvcrt.dll_atoi
mov dword [esi + 0xc], eax
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push dword [eax + ecx*4 + 0x28]
call sub.msvcrt.dll_atoi
mov dword [esi + 0x68], eax
push 0xfde9
lea eax, [esi + 0x44]
push eax
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push dword [eax + ecx*4 + 0x24]
call fcn.004016c0
add esp, 0x40
cmp dword [esi + 0x10], 0
jne 0x478a5a
lea eax, [ebp - 0x50]
push eax
lea ecx, [edi + 0x10]
call fcn.0047e200
jmp 0x478a90
xor esi, esi
cmp dword [edi + 0x20], esi
jbe 0x478a8d
lea eax, [edi + 0x10]
push esi
mov ecx, eax
call fcn.004744c0
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [ebp - 0x50]
cmp eax, dword [edx + 0x10]
jne 0x478a84
lea eax, [ebp - 0x50]
push eax
add ecx, 0x6c
call fcn.0047e200
inc esi
cmp esi, dword [edi + 0x20]
lea eax, [edi + 0x10]
jb 0x478a64
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x50]
push eax
push esi
lea ecx, [edi + 0x24]
call fcn.00474510
mov ecx, eax
call fcn.004725c0
lea ecx, [ebp - 0x50]
call fcn.00407100
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x2c]
jle 0x478910
lea esi, [edi + 8]
push dword [ebp - 0x20]
call fcn.004b0670
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push str.select_ID_NAME_ParentGroup_TYPE_POS_ICON_PATH_Parameter_WorkDir_IsAdmin_CustomColor_Remark_RunCount_HotKey_Pidl_from_Links_ORDER_BY_POS
push dword [esi]
call fcn.004b1680
add esp, 0x18
test eax, eax
jne 0x4785c2
push dword [ebp - 0x1c]
call fcn.004b2380
add esp, 4
cmp eax, 0x64
jne 0x478e5e
push 0x110
call fcn.0053428c
add esp, 4
test eax, eax
je 0x478b1b
mov ecx, eax
call fcn.00473bf0
jmp 0x478b1d
xor eax, eax
push eax
lea ecx, [ebp - 0x58]
call fcn.00472590
push 0
push dword [ebp - 0x1c]
call fcn.004b2730
add esp, 8
mov ecx, dword [ebp - 0x58]
mov dword [ecx], eax
cmp dword [edi + 4], eax
jge 0x478b40
mov dword [edi + 4], eax
lea esi, [ecx + 0x18]
push 0xfde9
push esi
push 1
push dword [ebp - 0x1c]
call fcn.004b28a0
add esp, 8
push eax
call fcn.004016c0
push esi
lea eax, [ebp - 0x94]
push eax
call fcn.00476ec0
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00401570
add esp, 0x1c
push eax
mov esi, dword [ebp - 0x58]
lea ecx, [esi + 0x30]
call fcn.0040f730
lea ecx, [ebp - 0xc8]
call fcn.00403070
lea ecx, [ebp - 0x94]
call fcn.00403070
push 2
push dword [ebp - 0x1c]
call fcn.004b2730
mov dword [esi + 4], eax
push 3
push dword [ebp - 0x1c]
call fcn.004b2730
mov dword [esi + 0x14], eax
push 4
push dword [ebp - 0x1c]
call fcn.004b2730
add esp, 0x18
mov dword [esi + 0x10], eax
lea eax, [esi + 0x6c]
mov dword [ebp - 0x4c], eax
push 0xfde9
push eax
push 5
push dword [ebp - 0x1c]
call fcn.004b28a0
add esp, 8
push eax
call fcn.004016c0
add esp, 0xc
cmp dword [esi + 0x7c], 2
jbe 0x478c21
mov eax, dword [ebp - 0x4c]
mov edx, eax
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x478bfc
mov edx, dword [eax]
cmp word [edx], 0x23
jne 0x478c21
mov edx, eax
cmp ecx, 8
jb 0x478c0b
mov edx, dword [eax]
cmp word [edx + 2], 0x2e
jne 0x478c21
cmp ecx, 8
jb 0x478c19
mov eax, dword [eax]
mov ecx, 0x2a
mov word [eax], cx
push 0xfde9
lea eax, [esi + 0x48]
push eax
push 6
push dword [ebp - 0x1c]
call fcn.004b28a0
add esp, 8
push eax
call fcn.004016c0
add esp, 0xc
push 0xfde9
lea eax, [esi + 0x84]
push eax
push 7
push dword [ebp - 0x1c]
call fcn.004b28a0
add esp, 8
push eax
call fcn.004016c0
add esp, 0xc
push 0xfde9
lea eax, [esi + 0x9c]
push eax
push 8
push dword [ebp - 0x1c]
call fcn.004b28a0
add esp, 8
push eax
call fcn.004016c0
push 9
push dword [ebp - 0x1c]
call fcn.004b2730
add esp, 0x14
test eax, eax
setg al
mov byte [esi + 0xc0], al
lea eax, [esi + 0xc4]
push 0xfde9
push eax
push 0xa
push dword [ebp - 0x1c]
call fcn.004b28a0
add esp, 8
push eax
call fcn.004016c0
add esp, 0xc
add esi, 0xdc
push 0xfde9
push esi
push 0xb
push dword [ebp - 0x1c]
call fcn.004b28a0
add esp, 8
push eax
call fcn.004016c0
push esi
lea eax, [ebp - 0x94]
push eax
call fcn.00476ec0
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00401570
add esp, 0x1c
push eax
mov esi, dword [ebp - 0x58]
lea ecx, [esi + 0xf4]
call fcn.0040f730
lea ecx, [ebp - 0xc8]
call fcn.00403070
lea ecx, [ebp - 0x94]
call fcn.00403070
push 0xc
push dword [ebp - 0x1c]
call fcn.004b2730
mov dword [esi + 0x10c], eax
push 0xd
push dword [ebp - 0x1c]
call fcn.004b2730
mov word [esi + 0xb8], ax
push 0xe
push dword [ebp - 0x1c]
call fcn.004b2a60
add esp, 0x18
mov dword [ebp - 0x30], eax
test eax, eax
jle 0x478d87
push 0xe
push dword [ebp - 0x1c]
call fcn.004b2630
add esp, 8
mov esi, eax
mov edi, dword [ebp - 0x58]
add edi, 0x60
push edi
push dword [ebp - 0x30]
mov ecx, edi
call fcn.0046c580
mov eax, dword [ebp - 0x30]
push eax
push esi
push eax
push dword [edi]
call fcn.0047e4d0
add esp, 0x10
mov edi, dword [ebp - 0x74]
mov esi, dword [ebp - 0x58]
mov dword [esi + 0xbc], 0
cmp word [esi + 0xb8], 0
je 0x478dcb
lea eax, [ebp - 0x58]
push eax
call fcn.0047acf0
mov ecx, eax
call fcn.00479950
test al, al
je 0x478dcb
movzx eax, word [esi + 0xb8]
movzx eax, al
cmp eax, 5
je 0x478dc3
cmp eax, 6
jne 0x478dcb
call fcn.0047aee0
mov byte [eax], 1
push dword [esi + 4]
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call fcn.00477420
cmp dword [ebp - 0x7c], 0
je 0x478e3a
lea eax, [ebp - 0x7c]
push eax
lea ecx, [esi + 8]
call fcn.004725c0
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x7c]
lea ecx, [ecx + 0x80]
call fcn.0047e200
lea eax, [ebp - 0x58]
push eax
push esi
lea ecx, [edi + 0x2c]
call fcn.00474510
mov ecx, eax
call fcn.004725c0
cmp dword [esi + 0xd4], 0
jbe 0x478e3a
lea eax, [esi + 0xc4]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x478e2a
mov ecx, dword [eax]
cmp word [ecx], 0x23
jne 0x478e3a
push eax
push eax
call fcn.00408570
add esp, 8
lea ecx, [ebp - 0x7c]
call fcn.00407100
lea ecx, [ebp - 0x58]
call fcn.00407100
push dword [ebp - 0x1c]
call fcn.004b2380
add esp, 4
cmp eax, 0x64
je 0x478b01
push dword [ebp - 0x1c]
call fcn.004b2c10
add esp, 4
push str.ffff8000
lea ecx, [ebp - 0xc8]
call fcn.00402fa0
push str.ffff8000
lea ecx, [ebp - 0x94]
call fcn.00402fa0
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00408570
add esp, 8
lea ecx, [ebp - 0x94]
call fcn.00403070
lea ecx, [ebp - 0xc8]
call fcn.00403070
lea ecx, [ebp - 0x48]
call fcn.00402770
lea ecx, [ebp - 0x70]
call fcn.00403070
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00560610
call fcn.00560610
mov dword [ebp - 0x98], 0
push 0x5ae648
lea eax, [ebp - 0x98]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0x9c], 0
push 0x5ae648
lea eax, [ebp - 0x9c]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0xa0], 0
push 0x5ae648
lea eax, [ebp - 0xa0]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0xa4], 0
push 0x5ae648
lea eax, [ebp - 0xa4]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0xa8], 0
push 0x5ae648
lea eax, [ebp - 0xa8]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0xac], 0
push 0x5ae648
lea eax, [ebp - 0xac]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0xb0], 0
push 0x5ae648
lea eax, [ebp - 0xb0]
push eax
call sub.msvcrt.dll__CxxThrowException
int3