Function at 0x46abc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x542a3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x458
mov eax, dword [0x5ab980]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
xor ebx, ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x470], ebx
call fcn.00516fef
lea ecx, [esp + 0x18]
mov byte [esp + 0x470], 1
call fcn.00516a49
mov ecx, dword [0x5ab980]
mov dword [esp + 0x28], ecx
or ebp, 0xffffffff
push ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x474], 3
mov dword [esp + 0x1c], vtable.CFileException.0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
call fcn.00512a6d
mov edx, dword [0x5ab980]
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x478]
mov byte [esp + 0x470], 5
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jne 0x46acad
lea ecx, [esp + 0x14]
mov byte [esp + 0x470], 4
call fcn.005128e4
mov dword [esp + 0x18], vtable.CFileException.0
lea ecx, [esp + 0x28]
mov byte [esp + 0x470], 6
call fcn.005128e4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x470], bl
call fcn.005170e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x470], ebp
call fcn.005128e4
mov eax, ebp
jmp 0x46b0d1
mov ecx, dword [edi + 0x48]
lea ebp, [edi + 0x48]
cmp dword [ecx - 8], ebx
je 0x46ace3
push 0x3a
mov ecx, esi
call fcn.00512dab
test eax, eax
jge 0x46ace3
mov eax, dword [esi]
push 0x5966b8
push eax
call fcn.00422ad0
add esp, 8
test eax, eax
jne 0x46ace3
push ebp
lea ecx, [esp + 0x18]
call fcn.00512a1d
push 0x2e
mov ecx, esi
call fcn.00512dab
test eax, eax
jle 0x46ae01
lea edx, [esp + 0x14]
push esi
lea eax, [esp + 0x40]
push edx
push eax
call fcn.00512b13
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x474], 7
call fcn.00512a1d
lea ecx, [esp + 0x3c]
mov byte [esp + 0x470], 5
call fcn.005128e4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0x20
push edx
lea ecx, [esp + 0x38]
call fcn.005171a1
test eax, eax
jne 0x46adc4
mov eax, dword [esp + 0x20]
cmp eax, 2
je 0x46ad9e
cmp eax, 3
je 0x46ad9e
push ebx
lea eax, [esp + 0x6c]
push 0x400
push eax
lea ecx, [esp + 0x24]
call fcn.00518b8f
push ebx
lea ecx, [esp + 0x6c]
push str.File_Error
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x470], 4
call fcn.005128e4
mov dword [esp + 0x18], vtable.CFileException.0
mov byte [esp + 0x470], 8
jmp 0x46af22
lea ecx, [esp + 0x14]
mov byte [esp + 0x470], 4
call fcn.005128e4
mov dword [esp + 0x18], vtable.CFileException.0
mov byte [esp + 0x470], 0xa
jmp 0x46af22
lea edx, [esp + 0x2c]
mov ecx, edi
push edx
call fcn.004685d0
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.005173bc
lea ecx, [esp + 0x14]
mov byte [esp + 0x470], 4
call fcn.005128e4
mov dword [esp + 0x18], vtable.CFileException.0
mov byte [esp + 0x470], 9
jmp 0x46b0a2
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x18]
push str._s_s.TXT
push edx
call fcn.0050e6c7
mov ecx, dword [esp + 0x20]
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push 0x20
push ecx
lea ecx, [esp + 0x38]
call fcn.005171a1
test eax, eax
jne 0x46b06a
mov eax, dword [esp + 0x20]
cmp eax, 2
je 0x46ae92
cmp eax, 3
je 0x46ae92
push ebx
lea edx, [esp + 0x6c]
push 0x400
push edx
lea ecx, [esp + 0x24]
call fcn.00518b8f
push ebx
lea eax, [esp + 0x6c]
push str.File_Error
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x470], 4
call fcn.005128e4
mov dword [esp + 0x18], vtable.CFileException.0
mov byte [esp + 0x470], 0xb
jmp 0x46af22
mov ecx, dword [esi]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_s.RSL
push eax
call fcn.0050e6c7
mov edx, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
push 0x20
push edx
lea ecx, [esp + 0x38]
call fcn.005171a1
test eax, eax
jne 0x46b030
mov eax, dword [esp + 0x20]
cmp eax, 2
je 0x46af57
cmp eax, 3
je 0x46af57
push ebx
lea eax, [esp + 0x6c]
push 0x400
push eax
lea ecx, [esp + 0x24]
call fcn.00518b8f
push ebx
lea ecx, [esp + 0x6c]
push str.File_Error
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x470], 4
call fcn.005128e4
mov dword [esp + 0x18], vtable.CFileException.0
mov byte [esp + 0x470], 0xd
lea ecx, [esp + 0x28]
call fcn.005128e4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x470], bl
call fcn.005170e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x470], 0xffffffff
call fcn.005128e4
or eax, 0xffffffff
jmp 0x46b0d1
push 0x400
lea ecx, [esp + 0x44]
call fcn.0051c058
mov esi, dword [esi]
push 0x59e060
push esi
push ebx
mov byte [esp + 0x47c], 0xf
or ebp, 0xffffffff
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x46afca
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
mov dword [esp + 0x3c], eax
jbe 0x46afca
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x46afca
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x46afca
mov edx, dword [esp + 0x3c]
push ebx
push edx
push eax
lea ecx, [esp + 0x4c]
call fcn.0051c0e0
lea eax, [esp + 0x40]
mov ecx, edi
push eax
call fcn.00468450
mov ebp, eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x470], 5
call fcn.0051c11d
lea ecx, [esp + 0x14]
mov byte [esp + 0x470], 4
call fcn.005128e4
mov dword [esp + 0x18], vtable.CFileException.0
lea ecx, [esp + 0x28]
mov byte [esp + 0x470], 0x10
call fcn.005128e4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x470], bl
call fcn.005170e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x470], 0xffffffff
call fcn.005128e4
mov eax, ebp
jmp 0x46b0d1
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.00468450
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.005173bc
lea ecx, [esp + 0x14]
mov byte [esp + 0x470], 4
call fcn.005128e4
mov dword [esp + 0x18], vtable.CFileException.0
mov byte [esp + 0x470], 0xe
jmp 0x46b0a2
lea edx, [esp + 0x2c]
mov ecx, edi
push edx
call fcn.004685d0
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.005173bc
lea ecx, [esp + 0x14]
mov byte [esp + 0x470], 4
call fcn.005128e4
mov dword [esp + 0x18], vtable.CFileException.0
mov byte [esp + 0x470], 0xc
lea ecx, [esp + 0x28]
call fcn.005128e4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x470], bl
call fcn.005170e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x470], 0xffffffff
call fcn.005128e4
mov eax, esi
mov ecx, dword [esp + 0x468]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x464
ret 4