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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578380
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.0046f730
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 0x477d93
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x94]
mov eax, ecx
cmp edx, 0x1000
jb 0x477d89
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478a20
push edx
push ecx
call fcn.00532e3c
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 0x477f0f
test esi, 0x10
jne 0x477f0f
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 0x477ee7
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 0x477ee7
push 0
push 0
push 0
push 0x4000002
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x477ee7
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 0x477ede
xor ecx, ecx
mov edx, dword [ebp - 0x78]
test edx, edx
je 0x477eae
cmp edx, 8
jb 0x477eae
mov esi, edx
and esi, 0xfffffff8
movaps xmm2, xmmword [0x57b150]
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 0x477e81
mov dword [ebp - 0x18], 0
cmp ecx, edx
jae 0x477ed4
xor esi, esi
mov edi, dword [ebp - 0x30]
nop
movzx eax, byte [ecx + edi]
and esi, eax
inc ecx
cmp ecx, edx
jb 0x477ec0
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 - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x477ef2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
push 0x57ab98
push 1
call fcn.0055f2e0
add esp, 4
push eax
call fcn.00472220
add esp, 0xc
jmp 0x477f13
mov byte [ebp - 0x25], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
push 0xfde9
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00401830
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0x10
cmovae eax, dword [ebp - 0x50]
lea esi, [edi + 8]
push esi
push eax
call fcn.004afa10
add esp, 0x14
test eax, eax
je 0x477fdb
push dword [esi]
call fcn.004affa0
add esp, 4
push eax
push 0x57ab9c
push 2
call fcn.0055f2e0
add esp, 4
push eax
call fcn.00472220
add esp, 0xc
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x477fae
inc edx
mov ecx, dword [ebp - 0x50]
mov eax, ecx
cmp edx, 0x1000
jb 0x477fa4
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478a25
push edx
push ecx
call fcn.00532e3c
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 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 0x478128
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.BEGIN
push dword [esi]
call fcn.004ae370
add esp, 0x14
test eax, eax
jne 0x478a2a
lea eax, [ebp - 0x14]
push eax
push 0
push 0x472150
push str.CREATE_TABLE_IF_NOT_EXISTS_Version_ID_INTEGER_PRIMARY_KEY__Ver_INTEGER_
push dword [esi]
call fcn.004ae370
add esp, 0x14
test eax, eax
jne 0x478a45
push dword [0x5b4010]
push str.REPLACE_INTO_Version_ID_Ver__VALUES__1__d__
lea eax, [ebp - 0x94]
push eax
call fcn.004014d0
push 0xfde9
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00401830
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0x10
cmovae eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push eax
push dword [esi]
call fcn.004ae370
add esp, 0x2c
test eax, eax
jne 0x478a60
mov eax, dword [0x5b4010]
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__
push dword [esi]
call fcn.004ae370
add esp, 0x14
test eax, eax
jne 0x478a7b
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__
push dword [esi]
call fcn.004ae370
add esp, 0x14
test eax, eax
jne 0x478a96
push 0xfde9
lea eax, [ebp - 0x50]
push eax
push str.INSERT_INTO_Groups_ID_NAME__VALUES__1_
call fcn.004017b0
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0x10
cmovae eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push eax
push dword [esi]
call fcn.004ae370
add esp, 0x20
test eax, eax
jne 0x478ab1
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.COMMIT
push dword [esi]
call fcn.004ae370
add esp, 0x14
test eax, eax
jne 0x478acc
lea ecx, [ebp - 0x94]
call fcn.00403070
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0xc], 0
jne 0x4782d4
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.004b01f0
add esp, 0x14
test eax, eax
jne 0x478186
push dword [ebp - 0x18]
call fcn.004b0ef0
add esp, 4
cmp eax, 0x64
jne 0x47817b
push 0
push dword [ebp - 0x18]
call fcn.004b12a0
add esp, 8
mov dword [edi + 0xc], eax
push dword [ebp - 0x18]
call fcn.004b1780
add esp, 4
cmp dword [edi + 0xc], 0
jne 0x4782d4
lea eax, [ebp - 0x14]
push eax
push 0
push 0x472150
push str.CREATE_TABLE_IF_NOT_EXISTS_Version_ID_INTEGER_PRIMARY_KEY__Ver_INTEGER_
push dword [esi]
call fcn.004ae370
add esp, 0x14
test eax, eax
je 0x478242
push dword [ebp - 0x14]
push str.SQL_error:__s_n
push 2
call fcn.0055f2e0
add esp, 4
push eax
call fcn.00472220
push dword [ebp - 0x14]
call fcn.004af550
add esp, 0x10
jmp 0x47821f
lea ecx, [ebp - 0x50]
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 - 0x50]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00401830
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0x10
cmovae eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push eax
push dword [esi]
call fcn.004ae370
add esp, 0x2c
test eax, eax
je 0x4782c2
push dword [ebp - 0x14]
push str.SQL_error:__s_n
push 2
call fcn.0055f2e0
add esp, 4
push eax
call fcn.00472220
push dword [ebp - 0x14]
call fcn.004af550
add esp, 0x10
lea ecx, [ebp - 0x94]
call fcn.00403070
jmp 0x47821f
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.004af040
add esp, 0x18
test eax, eax
jne 0x4781b2
cmp dword [edi + 0xc], 0x29d4
jb 0x478309
cmp dword [ebp - 0x2c], eax
jne 0x478351
lea eax, [ebp - 0x14]
push eax
push 0
push 0x472150
push str.ALTER_TABLE_Groups_ADD_TYPE_INTEGER_Default_0_ALTER_TABLE_Groups_ADD_SORT_INTEGER_Default_0_
push dword [esi]
call fcn.004ae370
add esp, 0x14
test eax, eax
jne 0x4781b2
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.004ae370
add esp, 0x14
test eax, eax
jne 0x4781b2
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.004af040
add esp, 0x18
test eax, eax
jne 0x4781b2
cmp dword [edi + 0xc], 0x2a30
jb 0x478386
cmp dword [ebp - 0x2c], eax
jne 0x4783ce
lea eax, [ebp - 0x14]
push eax
push 0
push 0x472150
push str.ALTER_TABLE_Groups_ADD_Content_TEXT
push dword [esi]
call fcn.004ae370
add esp, 0x14
test eax, eax
jne 0x4781b2
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.004ae370
add esp, 0x14
test eax, eax
jne 0x4781b2
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.004af040
add esp, 0x18
test eax, eax
jne 0x4781b2
cmp dword [edi + 0xc], 0x2a30
jb 0x478403
cmp dword [ebp - 0x2c], eax
jne 0x47844b
lea eax, [ebp - 0x14]
push eax
push 0
push 0x472150
push str.ALTER_TABLE_Links_ADD_Pidl_BLOB_
push dword [esi]
call fcn.004ae370
add esp, 0x14
test eax, eax
jne 0x4781b2
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.004ae370
add esp, 0x14
test eax, eax
jne 0x4781b2
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_ID_NAME_ParentGroup_ICON_LAYOUT_ICONSIZE_POS_TYPE_SORT_Content_from_Groups_ORDER_BY_ParentGroup_POS
push dword [esi]
call fcn.004af040
add esp, 0x18
test eax, eax
jne 0x4781b2
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x2c], 1
jl 0x47861c
push 0x90
call fcn.00532e0c
add esp, 4
test eax, eax
je 0x47849d
mov ecx, eax
call fcn.004737f0
jmp 0x47849f
xor eax, eax
push eax
lea ecx, [ebp - 0x38]
call fcn.004722b0
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 - 0x38]
mov dword [esi], eax
cmp dword [edi], eax
jge 0x4784c8
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
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, 0x3c
cmp dword [esi + 0x10], 0
jne 0x4785b7
lea eax, [ebp - 0x38]
push eax
lea ecx, [edi + 0x10]
call fcn.0047db70
jmp 0x4785ed
xor esi, esi
cmp dword [edi + 0x20], esi
jbe 0x4785ea
lea eax, [edi + 0x10]
push esi
mov ecx, eax
call fcn.00474160
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [ebp - 0x38]
cmp eax, dword [edx + 0x10]
jne 0x4785e1
lea eax, [ebp - 0x38]
push eax
add ecx, 0x68
call fcn.0047db70
inc esi
cmp esi, dword [edi + 0x20]
lea eax, [edi + 0x10]
jb 0x4785c1
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x38]
push eax
push esi
lea ecx, [edi + 0x24]
call fcn.004741b0
mov ecx, eax
call fcn.00472310
lea ecx, [ebp - 0x38]
call fcn.00407100
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x2c]
jle 0x478483
lea esi, [edi + 8]
push dword [ebp - 0x20]
call fcn.004af1e0
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.004b01f0
add esp, 0x18
test eax, eax
jne 0x4781b2
push dword [ebp - 0x1c]
call fcn.004b0ef0
add esp, 4
cmp eax, 0x64
jne 0x4789a6
nop
push 0x110
call fcn.00532e0c
add esp, 4
test eax, eax
je 0x47867a
mov ecx, eax
call fcn.004738d0
jmp 0x47867c
xor eax, eax
push eax
lea ecx, [ebp - 0x58]
call fcn.004722e0
push 0
push dword [ebp - 0x1c]
call fcn.004b12a0
add esp, 8
mov ecx, dword [ebp - 0x58]
mov dword [ecx], eax
cmp dword [edi + 4], eax
jge 0x47869f
mov dword [edi + 4], eax
lea esi, [ecx + 0x18]
push 0xfde9
push esi
push 1
push dword [ebp - 0x1c]
call fcn.004b1410
add esp, 8
push eax
call fcn.004016c0
push esi
lea eax, [ebp - 0x94]
push eax
call fcn.00476ab0
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.004b12a0
mov dword [esi + 4], eax
push 3
push dword [ebp - 0x1c]
call fcn.004b12a0
mov dword [esi + 0x14], eax
push 4
push dword [ebp - 0x1c]
call fcn.004b12a0
add esp, 0x18
mov dword [esi + 0x10], eax
lea eax, [esi + 0x6c]
mov dword [ebp - 0x34], eax
push 0xfde9
push eax
push 5
push dword [ebp - 0x1c]
call fcn.004b1410
add esp, 8
push eax
call fcn.004016c0
add esp, 0xc
cmp dword [esi + 0x7c], 2
jbe 0x478780
mov eax, dword [ebp - 0x34]
mov edx, eax
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x47875b
mov edx, dword [eax]
cmp word [edx], 0x23
jne 0x478780
mov edx, eax
cmp ecx, 8
jb 0x47876a
mov edx, dword [eax]
cmp word [edx + 2], 0x2e
jne 0x478780
cmp ecx, 8
jb 0x478778
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.004b1410
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.004b1410
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.004b1410
add esp, 8
push eax
call fcn.004016c0
push 9
push dword [ebp - 0x1c]
call fcn.004b12a0
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.004b1410
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.004b1410
add esp, 8
push eax
call fcn.004016c0
push esi
lea eax, [ebp - 0x94]
push eax
call fcn.00476ab0
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.004b12a0
mov dword [esi + 0x10c], eax
push 0xd
push dword [ebp - 0x1c]
call fcn.004b12a0
mov word [esi + 0xb8], ax
push 0xe
push dword [ebp - 0x1c]
call fcn.004b15d0
add esp, 0x18
mov dword [ebp - 0x30], eax
test eax, eax
jle 0x4788e6
push 0xe
push dword [ebp - 0x1c]
call fcn.004b11a0
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.0046c2d0
mov eax, dword [ebp - 0x30]
push eax
push esi
push eax
push dword [edi]
call fcn.0047de40
add esp, 0x10
mov edi, dword [ebp - 0x74]
mov esi, dword [ebp - 0x58]
mov dword [esi + 0xbc], 0
cmp word [esi + 0xb8], 0
je 0x47892a
lea eax, [ebp - 0x58]
push eax
call fcn.0047a7f0
mov ecx, eax
call fcn.00479490
test al, al
je 0x47892a
movzx eax, word [esi + 0xb8]
movzx eax, al
cmp eax, 5
je 0x478922
cmp eax, 6
jne 0x47892a
call fcn.0047a9c0
mov byte [eax], 1
push dword [esi + 4]
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call fcn.00477010
cmp dword [ebp - 0x7c], 0
je 0x478982
lea eax, [ebp - 0x7c]
push eax
lea ecx, [esi + 8]
call fcn.00472310
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x7c]
lea ecx, [ecx + 0x7c]
call fcn.0047db70
cmp dword [esi + 0xd4], 0
jbe 0x478982
lea eax, [esi + 0xc4]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x478972
mov ecx, dword [eax]
cmp word [ecx], 0x23
jne 0x478982
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.004b0ef0
add esp, 4
cmp eax, 0x64
je 0x478660
push dword [ebp - 0x1c]
call fcn.004b1780
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 - 0x50]
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.0055f150
call fcn.0055f150
mov dword [ebp - 0x98], 0
push 0x5ad398
lea eax, [ebp - 0x98]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0x9c], 0
push 0x5ad398
lea eax, [ebp - 0x9c]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0xa0], 0
push 0x5ad398
lea eax, [ebp - 0xa0]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0xa4], 0
push 0x5ad398
lea eax, [ebp - 0xa4]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0xa8], 0
push 0x5ad398
lea eax, [ebp - 0xa8]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0xac], 0
push 0x5ad398
lea eax, [ebp - 0xac]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0xb0], 0
push 0x5ad398
lea eax, [ebp - 0xb0]
push eax
call sub.msvcrt.dll__CxxThrowException
int3