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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577570
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.0046d460
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 0x475c53
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x94]
mov eax, ecx
cmp edx, 0x1000
jb 0x475c49
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476988
push edx
push ecx
call fcn.00531d2c
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 0x475dcf
test esi, 0x10
jne 0x475dcf
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 0x475da7
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 0x475da7
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 0x475da7
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 0x475d9e
xor ecx, ecx
mov edx, dword [ebp - 0x78]
test edx, edx
je 0x475d6e
cmp edx, 8
jb 0x475d6e
mov esi, edx
and esi, 0xfffffff8
movaps xmm2, xmmword [0x57a150]
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 0x475d41
mov dword [ebp - 0x18], 0
cmp ecx, edx
jae 0x475d94
xor esi, esi
mov edi, dword [ebp - 0x30]
nop
movzx eax, byte [ecx + edi]
and esi, eax
inc ecx
cmp ecx, edx
jb 0x475d80
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 0x475db2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
push 0x579b98
push 1
call fcn.0055e200
add esp, 4
push eax
call fcn.0046ff50
add esp, 0xc
jmp 0x475dd3
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.004ae930
add esp, 0x14
test eax, eax
je 0x475e9b
push dword [esi]
call fcn.004aeec0
add esp, 4
push eax
push 0x579b9c
push 2
call fcn.0055e200
add esp, 4
push eax
call fcn.0046ff50
add esp, 0xc
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x475e6e
inc edx
mov ecx, dword [ebp - 0x48]
mov eax, ecx
cmp edx, 0x1000
jb 0x475e64
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47698d
push edx
push ecx
call fcn.00531d2c
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 0x475fe8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.BEGIN
push dword [esi]
call fcn.004ad290
add esp, 0x14
test eax, eax
jne 0x476992
lea eax, [ebp - 0x14]
push eax
push 0
push 0x46fe80
push str.CREATE_TABLE_IF_NOT_EXISTS_Version_ID_INTEGER_PRIMARY_KEY__Ver_INTEGER_
push dword [esi]
call fcn.004ad290
add esp, 0x14
test eax, eax
jne 0x4769ad
push dword [0x5b3010]
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.004ad290
add esp, 0x2c
test eax, eax
jne 0x4769c8
mov eax, dword [0x5b3010]
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.004ad290
add esp, 0x14
test eax, eax
jne 0x4769e3
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.004ad290
add esp, 0x14
test eax, eax
jne 0x4769fe
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.004ad290
add esp, 0x20
test eax, eax
jne 0x476a19
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.COMMIT
push dword [esi]
call fcn.004ad290
add esp, 0x14
test eax, eax
jne 0x476a34
lea ecx, [ebp - 0x94]
call fcn.00403070
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0xc], 0
jne 0x476194
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.004af110
add esp, 0x14
test eax, eax
jne 0x476046
push dword [ebp - 0x18]
call fcn.004afe10
add esp, 4
cmp eax, 0x64
jne 0x47603b
push 0
push dword [ebp - 0x18]
call fcn.004b01c0
add esp, 8
mov dword [edi + 0xc], eax
push dword [ebp - 0x18]
call fcn.004b06a0
add esp, 4
cmp dword [edi + 0xc], 0
jne 0x476194
lea eax, [ebp - 0x14]
push eax
push 0
push 0x46fe80
push str.CREATE_TABLE_IF_NOT_EXISTS_Version_ID_INTEGER_PRIMARY_KEY__Ver_INTEGER_
push dword [esi]
call fcn.004ad290
add esp, 0x14
test eax, eax
je 0x476102
push dword [ebp - 0x14]
push str.SQL_error:__s_n
push 2
call fcn.0055e200
add esp, 4
push eax
call fcn.0046ff50
push dword [ebp - 0x14]
call fcn.004ae470
add esp, 0x10
jmp 0x4760df
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.004ad290
add esp, 0x2c
test eax, eax
je 0x476182
push dword [ebp - 0x14]
push str.SQL_error:__s_n
push 2
call fcn.0055e200
add esp, 4
push eax
call fcn.0046ff50
push dword [ebp - 0x14]
call fcn.004ae470
add esp, 0x10
lea ecx, [ebp - 0x94]
call fcn.00403070
jmp 0x4760df
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.004adf60
add esp, 0x18
test eax, eax
jne 0x476072
cmp dword [edi + 0xc], 0x29d4
jb 0x4761c9
cmp dword [ebp - 0x2c], eax
jne 0x476211
lea eax, [ebp - 0x14]
push eax
push 0
push 0x46fe80
push str.ALTER_TABLE_Groups_ADD_TYPE_INTEGER_Default_0_ALTER_TABLE_Groups_ADD_SORT_INTEGER_Default_0_
push dword [esi]
call fcn.004ad290
add esp, 0x14
test eax, eax
jne 0x476072
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.004ad290
add esp, 0x14
test eax, eax
jne 0x476072
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.004adf60
add esp, 0x18
test eax, eax
jne 0x476072
cmp dword [edi + 0xc], 0x2a30
jb 0x476246
cmp dword [ebp - 0x2c], eax
jne 0x47628e
lea eax, [ebp - 0x14]
push eax
push 0
push 0x46fe80
push str.ALTER_TABLE_Groups_ADD_Content_TEXT
push dword [esi]
call fcn.004ad290
add esp, 0x14
test eax, eax
jne 0x476072
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.004ad290
add esp, 0x14
test eax, eax
jne 0x476072
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.004adf60
add esp, 0x18
test eax, eax
jne 0x476072
cmp dword [edi + 0xc], 0x2a30
jb 0x4762c3
cmp dword [ebp - 0x2c], eax
jne 0x47630b
lea eax, [ebp - 0x14]
push eax
push 0
push 0x46fe80
push str.ALTER_TABLE_Links_ADD_Pidl_BLOB_
push dword [esi]
call fcn.004ad290
add esp, 0x14
test eax, eax
jne 0x476072
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.004ad290
add esp, 0x14
test eax, eax
jne 0x476072
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.004adf60
add esp, 0x18
test eax, eax
jne 0x476072
cmp dword [edi + 0xc], 0x2a34
jb 0x476340
cmp dword [ebp - 0x2c], eax
jne 0x476388
lea eax, [ebp - 0x14]
push eax
push 0
push 0x46fe80
push str.ALTER_TABLE_Groups_ADD_FLAG_INTEGER_Default_0_
push dword [esi]
call fcn.004ad290
add esp, 0x14
test eax, eax
jne 0x476072
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.004ad290
add esp, 0x14
test eax, eax
jne 0x476072
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.004adf60
add esp, 0x18
test eax, eax
jne 0x476072
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x2c], 1
jl 0x47656f
push 0xa8
call fcn.00531cfc
add esp, 4
test eax, eax
je 0x4763da
mov ecx, eax
call fcn.00471540
jmp 0x4763dc
xor eax, eax
push eax
lea ecx, [ebp - 0x50]
call fcn.0046ffe0
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 0x476405
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 0x47650a
lea eax, [ebp - 0x50]
push eax
lea ecx, [edi + 0x10]
call fcn.0047bcb0
jmp 0x476540
xor esi, esi
cmp dword [edi + 0x20], esi
jbe 0x47653d
lea eax, [edi + 0x10]
push esi
mov ecx, eax
call fcn.00471f70
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [ebp - 0x50]
cmp eax, dword [edx + 0x10]
jne 0x476534
lea eax, [ebp - 0x50]
push eax
add ecx, 0x6c
call fcn.0047bcb0
inc esi
cmp esi, dword [edi + 0x20]
lea eax, [edi + 0x10]
jb 0x476514
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x50]
push eax
push esi
lea ecx, [edi + 0x24]
call fcn.00471fc0
mov ecx, eax
call fcn.00470040
lea ecx, [ebp - 0x50]
call fcn.00471910
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x2c]
jle 0x4763c0
lea esi, [edi + 8]
push dword [ebp - 0x20]
call fcn.004ae100
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.004af110
add esp, 0x18
test eax, eax
jne 0x476072
push dword [ebp - 0x1c]
call fcn.004afe10
add esp, 4
cmp eax, 0x64
jne 0x47690e
push 0x110
call fcn.00531cfc
add esp, 4
test eax, eax
je 0x4765cb
mov ecx, eax
call fcn.00471670
jmp 0x4765cd
xor eax, eax
push eax
lea ecx, [ebp - 0x58]
call fcn.00470010
push 0
push dword [ebp - 0x1c]
call fcn.004b01c0
add esp, 8
mov ecx, dword [ebp - 0x58]
mov dword [ecx], eax
cmp dword [edi + 4], eax
jge 0x4765f0
mov dword [edi + 4], eax
lea esi, [ecx + 0x18]
push 0xfde9
push esi
push 1
push dword [ebp - 0x1c]
call fcn.004b0330
add esp, 8
push eax
call fcn.004016c0
push esi
lea eax, [ebp - 0x94]
push eax
call fcn.00474970
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.0040fa80
lea ecx, [ebp - 0xc8]
call fcn.00403070
lea ecx, [ebp - 0x94]
call fcn.00403070
push 2
push dword [ebp - 0x1c]
call fcn.004b01c0
mov dword [esi + 4], eax
push 3
push dword [ebp - 0x1c]
call fcn.004b01c0
mov dword [esi + 0x14], eax
push 4
push dword [ebp - 0x1c]
call fcn.004b01c0
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.004b0330
add esp, 8
push eax
call fcn.004016c0
add esp, 0xc
cmp dword [esi + 0x7c], 2
jbe 0x4766d1
mov eax, dword [ebp - 0x4c]
mov edx, eax
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x4766ac
mov edx, dword [eax]
cmp word [edx], 0x23
jne 0x4766d1
mov edx, eax
cmp ecx, 8
jb 0x4766bb
mov edx, dword [eax]
cmp word [edx + 2], 0x2e
jne 0x4766d1
cmp ecx, 8
jb 0x4766c9
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.004b0330
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.004b0330
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.004b0330
add esp, 8
push eax
call fcn.004016c0
push 9
push dword [ebp - 0x1c]
call fcn.004b01c0
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.004b0330
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.004b0330
add esp, 8
push eax
call fcn.004016c0
push esi
lea eax, [ebp - 0x94]
push eax
call fcn.00474970
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.0040fa80
lea ecx, [ebp - 0xc8]
call fcn.00403070
lea ecx, [ebp - 0x94]
call fcn.00403070
push 0xc
push dword [ebp - 0x1c]
call fcn.004b01c0
mov dword [esi + 0x10c], eax
push 0xd
push dword [ebp - 0x1c]
call fcn.004b01c0
mov word [esi + 0xb8], ax
push 0xe
push dword [ebp - 0x1c]
call fcn.004b04f0
add esp, 0x18
mov dword [ebp - 0x30], eax
test eax, eax
jle 0x476837
push 0xe
push dword [ebp - 0x1c]
call fcn.004b00c0
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.0046a000
mov eax, dword [ebp - 0x30]
push eax
push esi
push eax
push dword [edi]
call fcn.0047bf80
add esp, 0x10
mov edi, dword [ebp - 0x74]
mov esi, dword [ebp - 0x58]
mov dword [esi + 0xbc], 0
cmp word [esi + 0xb8], 0
je 0x47687b
lea eax, [ebp - 0x58]
push eax
call fcn.004787a0
mov ecx, eax
call fcn.00477400
test al, al
je 0x47687b
movzx eax, word [esi + 0xb8]
movzx eax, al
cmp eax, 5
je 0x476873
cmp eax, 6
jne 0x47687b
call fcn.00478990
mov byte [eax], 1
push dword [esi + 4]
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call fcn.00474ed0
cmp dword [ebp - 0x7c], 0
je 0x4768ea
lea eax, [ebp - 0x7c]
push eax
lea ecx, [esi + 8]
call fcn.00470040
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x7c]
lea ecx, [ecx + 0x80]
call fcn.0047bcb0
lea eax, [ebp - 0x58]
push eax
push esi
lea ecx, [edi + 0x2c]
call fcn.00471fc0
mov ecx, eax
call fcn.00470040
cmp dword [esi + 0xd4], 0
jbe 0x4768ea
lea eax, [esi + 0xc4]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4768da
mov ecx, dword [eax]
cmp word [ecx], 0x23
jne 0x4768ea
push eax
push eax
call fcn.00408620
add esp, 8
lea ecx, [ebp - 0x7c]
call fcn.00471910
lea ecx, [ebp - 0x58]
call fcn.00471910
push dword [ebp - 0x1c]
call fcn.004afe10
add esp, 4
cmp eax, 0x64
je 0x4765b1
push dword [ebp - 0x1c]
call fcn.004b06a0
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.00408620
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.0055e070
call fcn.0055e070
mov dword [ebp - 0x98], 0
push 0x5accc4
lea eax, [ebp - 0x98]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0x9c], 0
push 0x5accc4
lea eax, [ebp - 0x9c]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0xa0], 0
push 0x5accc4
lea eax, [ebp - 0xa0]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0xa4], 0
push 0x5accc4
lea eax, [ebp - 0xa4]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0xa8], 0
push 0x5accc4
lea eax, [ebp - 0xa8]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0xac], 0
push 0x5accc4
lea eax, [ebp - 0xac]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0xb0], 0
push 0x5accc4
lea eax, [ebp - 0xb0]
push eax
call sub.msvcrt.dll__CxxThrowException
int3