Function at 0x402560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41491d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0040a9f0
mov ecx, dword [esp + 0x12c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x128], 0
call fcn.0040ac60
test al, al
je 0x402cf5
push str.Archive
lea ecx, [esp + 0x50]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x128], 1
call fcn.00403790
cmp eax, dword [esp + 0x1c]
lea ecx, [esp + 0x4c]
setne bl
mov byte [esp + 0x120], 0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
test bl, bl
je 0x402cd7
push str.Archive
lea ecx, [esp + 0x5c]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
push str.basename
lea ecx, [esp + 0x54]
mov byte [esp + 0x124], 2
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x5c]
lea ebx, [esp + 0x54]
mov byte [esp + 0x124], 3
call fcn.0040af70
mov ebp, dword [esp + 0x128]
push eax
lea ecx, [ebp + 0xc]
call dword [0x416174]
mov ecx, ebx
mov byte [esp + 0x120], 2
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x58]
mov byte [esp + 0x120], 0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
push str.Archive
lea ecx, [esp + 0x38]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
push str.lookup_index
lea ecx, [esp + 0x40]
mov byte [esp + 0x124], 4
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
push 0xa
push 0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
lea ebx, [esp + 0x48]
mov byte [esp + 0x12c], 5
call fcn.0040af70
mov edi, dword [sym.imp.QtCore4.dll_public:_int___thiscall_QString::toInt_bool___int_const]
mov ecx, eax
call edi
mov ecx, ebx
mov dword [ebp + 0x10], eax
mov byte [esp + 0x120], 4
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x34]
mov byte [esp + 0x120], 0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
push str.Archive
lea ecx, [esp + 0x58]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
push str.num_banks
lea ecx, [esp + 0x48]
mov byte [esp + 0x124], 6
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
push 0xa
push 0
lea ecx, [esp + 0x20]
push ecx
lea eax, [esp + 0x60]
lea ebx, [esp + 0x50]
mov byte [esp + 0x12c], 7
call fcn.0040af70
mov ecx, eax
call edi
mov ebx, eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x60], ebx
mov byte [esp + 0x120], 6
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x54]
mov byte [esp + 0x120], 0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
xor esi, esi
test ebx, ebx
jle 0x402ca7
jmp 0x402760
push str.Bank_
lea ecx, [esp + 0x3c]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
add esi, 1
push esi
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x12c], 8
mov dword [esp + 0x8c], esi
call fcn.00402d20
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 0xa
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00403790
cmp eax, dword [esp + 0x1c]
je 0x402c8b
push str.num_sounds
lea ecx, [esp + 0x44]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
push 0xa
push 0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
lea ebx, [esp + 0x4c]
mov byte [esp + 0x12c], 0xb
call fcn.0040af70
mov ecx, eax
call edi
mov ebx, eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x74], ebx
mov byte [esp + 0x120], 0xa
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
test ebx, ebx
jle 0x402c8b
push 0x24
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x120], 0xc
je 0x402836
mov esi, eax
call fcn.00402180
mov edi, eax
mov dword [esp + 0x28], edi
jmp 0x402842
mov dword [esp + 0x28], 0
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edi + 4]
mov byte [esp + 0x124], 0xa
call dword [0x416174]
xor esi, esi
test ebx, ebx
jle 0x402c46
push str.sound_
lea ecx, [esp + 0x4c]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
add esi, 1
push esi
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x12c], 0xd
mov dword [esp + 0x90], esi
call fcn.00402d20
lea ecx, [esp + 0x48]
mov byte [esp + 0x120], 0xf
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
push str..filename
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x64]
push edx
call fcn.004013d0
add esp, 0xc
mov edi, eax
mov byte [esp + 0x120], 0x10
mov eax, dword [esp + 0x14]
cmp dword [eax + 8], 0
jne 0x4028f5
mov eax, dword [esp + 0x18]
push edi
push eax
mov esi, eax
call fcn.00403790
cmp eax, dword [esi]
je 0x402975
mov ecx, dword [esp + 0x18]
call fcn.00403600
mov ebp, eax
jmp 0x402979
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00403790
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
je 0x402975
mov eax, dword [ecx + 0x34]
cmp eax, 1
je 0x40291e
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040b320
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00403800
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jne 0x40295c
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x90]
push edx
mov dword [esp + 0x74], 0
call fcn.0040b400
mov esi, dword [eax - 4]
push edi
push esi
call fcn.00403790
cmp eax, dword [esi]
je 0x402975
mov ecx, esi
call fcn.00403600
mov ebp, eax
jmp 0x402979
lea ebp, [esp + 0x24]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x120], 0xf
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
push str..sample_rate
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.004013d0
add esp, 0xc
mov edi, eax
mov byte [esp + 0x120], 0x11
mov edx, dword [esp + 0x14]
cmp dword [edx + 8], 0
jne 0x4029d9
mov eax, dword [esp + 0x18]
push edi
push eax
mov esi, eax
call fcn.00403790
cmp eax, dword [esi]
je 0x402a5a
mov ecx, dword [esp + 0x18]
call fcn.00403600
jmp 0x402a5e
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00403790
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
je 0x402a5a
mov edx, dword [ecx + 0x34]
cmp edx, 1
je 0x402a02
lea eax, [esp + 0x1c]
push eax
call fcn.0040b320
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00403800
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jne 0x402a43
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0xc0]
push edx
mov dword [esp + 0x84], 0
call fcn.0040b400
mov esi, dword [eax - 4]
push edi
push esi
call fcn.00403790
cmp eax, dword [esi]
je 0x402a5a
mov ecx, esi
call fcn.00403600
jmp 0x402a5e
lea eax, [esp + 0x24]
push 0xa
push 0
mov ecx, eax
call dword [sym.imp.QtCore4.dll_public:_int___thiscall_QString::toInt_bool___int_const]
lea ecx, [esp + 0x64]
mov ebx, eax
mov byte [esp + 0x120], 0xf
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
push str..unknown_16
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.004013d0
add esp, 0xc
mov edi, eax
mov byte [esp + 0x120], 0x12
mov edx, dword [esp + 0x14]
cmp dword [edx + 8], 0
jne 0x402acc
mov eax, dword [esp + 0x18]
push edi
push eax
mov esi, eax
call fcn.00403790
cmp eax, dword [esi]
je 0x402b4d
mov ecx, dword [esp + 0x18]
call fcn.00403600
jmp 0x402b51
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00403790
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
je 0x402b4d
mov edx, dword [ecx + 0x34]
cmp edx, 1
je 0x402af5
lea eax, [esp + 0x1c]
push eax
call fcn.0040b320
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xec]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00403800
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jne 0x402b36
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0xf0]
push edx
mov dword [esp + 0x88], 0
call fcn.0040b400
mov esi, dword [eax - 4]
push edi
push esi
call fcn.00403790
cmp eax, dword [esi]
je 0x402b4d
mov ecx, esi
call fcn.00403600
jmp 0x402b51
lea eax, [esp + 0x24]
push 0xa
push 0
mov ecx, eax
call dword [sym.imp.QtCore4.dll_public:_int___thiscall_QString::toInt_bool___int_const]
lea ecx, [esp + 0x6c]
mov edi, eax
mov byte [esp + 0x120], 0xf
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
push 0x24
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
test esi, esi
mov byte [esp + 0x120], 0x13
je 0x402bc5
lea ecx, [esi + 4]
mov dword [esi], vtable.IniMetafileItem.0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_void_]
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov eax, dword [sym.imp.QtCore4.dll_struct_QListData::Data_QListData::shared_null]
mov dword [esi + 0x20], eax
mov ecx, eax
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x402bc7
xor esi, esi
mov byte [esp + 0x120], 0xf
push ebp
lea ecx, [esi + 4]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], edi
call dword [0x416174]
mov eax, dword [esp + 0x28]
lea edi, [eax + 0x20]
mov dword [esi + 0x1c], eax
mov eax, dword [edi]
mov eax, dword [eax]
cmp eax, 1
je 0x402c0e
mov ecx, edi
call dword [sym.imp.QtCore4.dll_public:_struct_QListData::Data____thiscall_QListData::detach_void_]
test eax, eax
je 0x402c0e
mov ecx, dword [eax]
test ecx, ecx
jne 0x402c0e
push eax
call dword [sym.imp.QtCore4.dll_void___cdecl_qFree_void__]
add esp, 4
mov ecx, edi
call dword [sym.imp.QtCore4.dll_public:_void_____thiscall_QListData::append_void_]
lea ecx, [esp + 0x2c]
mov dword [eax], esi
mov byte [esp + 0x120], 0xa
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov esi, dword [esp + 0x84]
cmp esi, dword [esp + 0x74]
jl 0x402862
mov ebp, dword [esp + 0x128]
mov edi, dword [esp + 0x28]
mov eax, dword [ebp + 0x18]
lea esi, [eax + 0x20]
mov dword [edi + 0x1c], eax
mov eax, dword [esi]
mov edx, dword [eax]
cmp edx, 1
je 0x402c74
mov ecx, esi
call dword [sym.imp.QtCore4.dll_public:_struct_QListData::Data____thiscall_QListData::detach_void_]
test eax, eax
je 0x402c74
mov ecx, dword [eax]
test ecx, ecx
jne 0x402c74
push eax
call dword [sym.imp.QtCore4.dll_void___cdecl_qFree_void__]
add esp, 4
mov ecx, esi
call dword [sym.imp.QtCore4.dll_public:_void_____thiscall_QListData::append_void_]
mov esi, dword [esp + 0x80]
mov dword [eax], edi
mov edi, dword [sym.imp.QtCore4.dll_public:_int___thiscall_QString::toInt_bool___int_const]
lea ecx, [esp + 0x14]
mov byte [esp + 0x120], 0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
cmp esi, dword [esp + 0x60]
jl 0x402760
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x124], 0xffffffff
call fcn.0040aa80
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x114
ret 8
push str.Invalid_ini_fileformat.
lea ecx, [esp + 0x34]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
push 0x42b970
lea eax, [esp + 0x34]
push eax
call sub.MSVCR80.dll__CxxThrowException
push str.Failed_to_load_ini_file.
lea ecx, [esp + 0x74]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
push 0x42b970
lea ecx, [esp + 0x74]
push ecx
call sub.MSVCR80.dll__CxxThrowException
int3