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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5768e0
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.0046f4f0
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 0x477b53
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x94]
mov eax, ecx
cmp edx, 0x1000
jb 0x477b49
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4787b0
push edx
push ecx
call fcn.0053140c
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 0x477ccf
test esi, 0x10
jne 0x477ccf
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 0x477ca7
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 0x477ca7
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 0x477ca7
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 0x477c9e
xor ecx, ecx
mov edx, dword [ebp - 0x78]
test edx, edx
je 0x477c6e
cmp edx, 8
jb 0x477c6e
mov esi, edx
and esi, 0xfffffff8
movaps xmm2, xmmword [0x579150]
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 0x477c41
mov dword [ebp - 0x18], 0
cmp ecx, edx
jae 0x477c94
xor esi, esi
mov edi, dword [ebp - 0x30]
nop
movzx eax, byte [ecx + edi]
and esi, eax
inc ecx
cmp ecx, edx
jb 0x477c80
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 0x477cb2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
push 0x578b98
push 1
call fcn.0055d7f0
add esp, 4
push eax
call fcn.00471fe0
add esp, 0xc
jmp 0x477cd3
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.004ae0d0
add esp, 0x14
test eax, eax
je 0x477d9b
push dword [esi]
call fcn.004ae660
add esp, 4
push eax
push 0x578b9c
push 2
call fcn.0055d7f0
add esp, 4
push eax
call fcn.00471fe0
add esp, 0xc
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x477d6e
inc edx
mov ecx, dword [ebp - 0x50]
mov eax, ecx
cmp edx, 0x1000
jb 0x477d64
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4787b5
push edx
push ecx
call fcn.0053140c
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 0x477ee8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.BEGIN
push dword [esi]
call fcn.004aca30
add esp, 0x14
test eax, eax
jne 0x4787ba
lea eax, [ebp - 0x14]
push eax
push 0
push 0x471f10
push str.CREATE_TABLE_IF_NOT_EXISTS_Version_ID_INTEGER_PRIMARY_KEY__Ver_INTEGER_
push dword [esi]
call fcn.004aca30
add esp, 0x14
test eax, eax
jne 0x4787d5
push dword [0x5b2010]
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.004aca30
add esp, 0x2c
test eax, eax
jne 0x4787f0
mov eax, dword [0x5b2010]
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.004aca30
add esp, 0x14
test eax, eax
jne 0x47880b
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.004aca30
add esp, 0x14
test eax, eax
jne 0x478826
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.004aca30
add esp, 0x20
test eax, eax
jne 0x478841
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.COMMIT
push dword [esi]
call fcn.004aca30
add esp, 0x14
test eax, eax
jne 0x47885c
lea ecx, [ebp - 0x94]
call fcn.00403070
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0xc], 0
jne 0x478094
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.004ae8b0
add esp, 0x14
test eax, eax
jne 0x477f46
push dword [ebp - 0x18]
call fcn.004af5b0
add esp, 4
cmp eax, 0x64
jne 0x477f3b
push 0
push dword [ebp - 0x18]
call fcn.004af960
add esp, 8
mov dword [edi + 0xc], eax
push dword [ebp - 0x18]
call fcn.004afe40
add esp, 4
cmp dword [edi + 0xc], 0
jne 0x478094
lea eax, [ebp - 0x14]
push eax
push 0
push 0x471f10
push str.CREATE_TABLE_IF_NOT_EXISTS_Version_ID_INTEGER_PRIMARY_KEY__Ver_INTEGER_
push dword [esi]
call fcn.004aca30
add esp, 0x14
test eax, eax
je 0x478002
push dword [ebp - 0x14]
push str.SQL_error:__s_n
push 2
call fcn.0055d7f0
add esp, 4
push eax
call fcn.00471fe0
push dword [ebp - 0x14]
call fcn.004adc10
add esp, 0x10
jmp 0x477fdf
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.004aca30
add esp, 0x2c
test eax, eax
je 0x478082
push dword [ebp - 0x14]
push str.SQL_error:__s_n
push 2
call fcn.0055d7f0
add esp, 4
push eax
call fcn.00471fe0
push dword [ebp - 0x14]
call fcn.004adc10
add esp, 0x10
lea ecx, [ebp - 0x94]
call fcn.00403070
jmp 0x477fdf
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.004ad700
add esp, 0x18
test eax, eax
jne 0x477f72
cmp dword [edi + 0xc], 0x29d4
jb 0x4780c9
cmp dword [ebp - 0x2c], eax
jne 0x478111
lea eax, [ebp - 0x14]
push eax
push 0
push 0x471f10
push str.ALTER_TABLE_Groups_ADD_TYPE_INTEGER_Default_0_ALTER_TABLE_Groups_ADD_SORT_INTEGER_Default_0_
push dword [esi]
call fcn.004aca30
add esp, 0x14
test eax, eax
jne 0x477f72
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.004aca30
add esp, 0x14
test eax, eax
jne 0x477f72
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.004ad700
add esp, 0x18
test eax, eax
jne 0x477f72
cmp dword [edi + 0xc], 0x2a30
jb 0x478146
cmp dword [ebp - 0x2c], eax
jne 0x47818e
lea eax, [ebp - 0x14]
push eax
push 0
push 0x471f10
push str.ALTER_TABLE_Groups_ADD_Content_TEXT
push dword [esi]
call fcn.004aca30
add esp, 0x14
test eax, eax
jne 0x477f72
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.004aca30
add esp, 0x14
test eax, eax
jne 0x477f72
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.004ad700
add esp, 0x18
test eax, eax
jne 0x477f72
cmp dword [edi + 0xc], 0x2a30
jb 0x4781c3
cmp dword [ebp - 0x2c], eax
jne 0x47820b
lea eax, [ebp - 0x14]
push eax
push 0
push 0x471f10
push str.ALTER_TABLE_Links_ADD_Pidl_BLOB_
push dword [esi]
call fcn.004aca30
add esp, 0x14
test eax, eax
jne 0x477f72
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.004aca30
add esp, 0x14
test eax, eax
jne 0x477f72
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.004ad700
add esp, 0x18
test eax, eax
jne 0x477f72
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x2c], 1
jl 0x4783dc
push 0x90
call fcn.005313dc
add esp, 4
test eax, eax
je 0x47825d
mov ecx, eax
call fcn.004735b0
jmp 0x47825f
xor eax, eax
push eax
lea ecx, [ebp - 0x38]
call fcn.00472070
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 0x478288
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 0x478377
lea eax, [ebp - 0x38]
push eax
lea ecx, [edi + 0x10]
call fcn.0047d770
jmp 0x4783ad
xor esi, esi
cmp dword [edi + 0x20], esi
jbe 0x4783aa
lea eax, [edi + 0x10]
push esi
mov ecx, eax
call fcn.00473f20
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [ebp - 0x38]
cmp eax, dword [edx + 0x10]
jne 0x4783a1
lea eax, [ebp - 0x38]
push eax
add ecx, 0x68
call fcn.0047d770
inc esi
cmp esi, dword [edi + 0x20]
lea eax, [edi + 0x10]
jb 0x478381
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x38]
push eax
push esi
lea ecx, [edi + 0x24]
call fcn.00473f70
mov ecx, eax
call fcn.004720d0
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 0x478243
lea esi, [edi + 8]
push dword [ebp - 0x20]
call fcn.004ad8a0
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.004ae8b0
add esp, 0x18
test eax, eax
jne 0x477f72
push dword [ebp - 0x1c]
call fcn.004af5b0
add esp, 4
cmp eax, 0x64
jne 0x478736
nop
push 0x110
call fcn.005313dc
add esp, 4
test eax, eax
je 0x47843a
mov ecx, eax
call fcn.00473690
jmp 0x47843c
xor eax, eax
push eax
lea ecx, [ebp - 0x58]
call fcn.004720a0
push 0
push dword [ebp - 0x1c]
call fcn.004af960
add esp, 8
mov ecx, dword [ebp - 0x58]
mov dword [ecx], eax
cmp dword [edi + 4], eax
jge 0x47845f
mov dword [edi + 4], eax
lea esi, [ecx + 0x18]
push 0xfde9
push esi
push 1
push dword [ebp - 0x1c]
call fcn.004afad0
add esp, 8
push eax
call fcn.004016c0
push esi
lea eax, [ebp - 0x94]
push eax
call fcn.00476870
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.004af960
mov dword [esi + 4], eax
push 3
push dword [ebp - 0x1c]
call fcn.004af960
mov dword [esi + 0x14], eax
push 4
push dword [ebp - 0x1c]
call fcn.004af960
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.004afad0
add esp, 8
push eax
call fcn.004016c0
add esp, 0xc
cmp dword [esi + 0x7c], 2
jbe 0x478540
mov eax, dword [ebp - 0x34]
mov edx, eax
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x47851b
mov edx, dword [eax]
cmp word [edx], 0x23
jne 0x478540
mov edx, eax
cmp ecx, 8
jb 0x47852a
mov edx, dword [eax]
cmp word [edx + 2], 0x2e
jne 0x478540
cmp ecx, 8
jb 0x478538
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.004afad0
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.004afad0
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.004afad0
add esp, 8
push eax
call fcn.004016c0
push 9
push dword [ebp - 0x1c]
call fcn.004af960
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.004afad0
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.004afad0
add esp, 8
push eax
call fcn.004016c0
push esi
lea eax, [ebp - 0x94]
push eax
call fcn.00476870
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.004af960
mov dword [esi + 0x10c], eax
push 0xd
push dword [ebp - 0x1c]
call fcn.004af960
mov word [esi + 0xb8], ax
push 0xe
push dword [ebp - 0x1c]
call fcn.004afc90
add esp, 0x18
mov dword [ebp - 0x30], eax
test eax, eax
jle 0x4786a6
push 0xe
push dword [ebp - 0x1c]
call fcn.004af860
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.0046c080
mov eax, dword [ebp - 0x30]
push eax
push esi
push eax
push dword [edi]
call fcn.0047da40
add esp, 0x10
mov edi, dword [ebp - 0x74]
mov esi, dword [ebp - 0x58]
mov dword [esi + 0xbc], 0
cmp word [esi + 0xb8], 0
je 0x4786ca
lea eax, [ebp - 0x58]
push eax
call fcn.0047a580
mov ecx, eax
call fcn.00479220
push dword [esi + 4]
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call fcn.00476dd0
cmp dword [ebp - 0x7c], 0
je 0x478712
lea eax, [ebp - 0x7c]
push eax
lea ecx, [esi + 8]
call fcn.004720d0
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x7c]
lea ecx, [ecx + 0x7c]
call fcn.0047d770
cmp dword [esi + 0xd4], 0
jbe 0x478712
lea eax, [esi + 0xc4]
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.004af5b0
add esp, 4
cmp eax, 0x64
je 0x478420
push dword [ebp - 0x1c]
call fcn.004afe40
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.0055d660
call fcn.0055d660
mov dword [ebp - 0x98], 0
push 0x5aaee0
lea eax, [ebp - 0x98]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0x9c], 0
push 0x5aaee0
lea eax, [ebp - 0x9c]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0xa0], 0
push 0x5aaee0
lea eax, [ebp - 0xa0]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0xa4], 0
push 0x5aaee0
lea eax, [ebp - 0xa4]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0xa8], 0
push 0x5aaee0
lea eax, [ebp - 0xa8]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0xac], 0
push 0x5aaee0
lea eax, [ebp - 0xac]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0xb0], 0
push 0x5aaee0
lea eax, [ebp - 0xb0]
push eax
call sub.msvcrt.dll__CxxThrowException
int3