Function at 0x481550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0544
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x4c70c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x128], 0x4b6288
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0xb8], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push 0
push 0
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x60], 2
call fcn.004086d0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x12c], eax
lea ecx, [ebp - 0x118]
call fcn.004271d0
mov byte [ebp - 4], 2
cmp dword [ebp - 0xcc], 0
jne 0x48169d
push 0x40
push 1
push str.classes.xml
call fcn.0043529e
add esp, 0xc
test eax, eax
je 0x48169d
push 1
push eax
lea ecx, [ebp - 0x118]
call fcn.004270e0
mov eax, dword [ebp - 0xe4]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x68], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 3
push eax
call fcn.00427340
add esp, 4
lea ecx, [ebp - 0x118]
push eax
call fcn.00426f80
test esi, esi
je 0x4816c6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x4816c6
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
jmp 0x4816c6
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x128]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00405650
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x11c], 0
jne 0x481701
lea eax, [ebp - 0x128]
mov ecx, ebx
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00461700
mov ecx, 3
cmp byte [eax + 0x18], 0
je 0x481706
mov bl, 1
jmp 0x481708
mov ecx, 2
xor bl, bl
test cl, 1
je 0x481753
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x481741
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x481737
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481a5a
push ecx
push edx
call fcn.00435dd2
add esp, 8
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
test bl, bl
je 0x48175e
mov bl, 1
jmp 0x4819c3
xor eax, eax
mov esi, 0xf
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], al
push 0xa
push 0xc8
mov byte [ebp - 4], 5
push dword [0x4ca858]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4818c0
push ebx
push dword [0x4ca858]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push dword [0x4ca858]
mov ebx, dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
call ebx
test edi, edi
je 0x4818c6
cmp eax, 4
jb 0x4818c6
sub eax, 4
xor ecx, ecx
add eax, edi
mov esi, dword [eax]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], cl
push eax
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.004144c0
xor ecx, ecx
cmp dword [ebp - 0x30], ecx
jbe 0x481836
jmp 0x481810
imul esi, esi, 0x343fd
lea edx, [ebp - 0x40]
add esi, 0x269ec3
cmp dword [ebp - 0x2c], 0x10
jb 0x481828
mov edx, dword [ebp - 0x40]
mov eax, esi
shr eax, 0x10
xor byte [edx + ecx], al
inc ecx
cmp ecx, dword [ebp - 0x30]
jb 0x481810
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00460b10
mov edx, eax
lea eax, [ebp - 0x28]
cmp eax, edx
je 0x48187e
mov ecx, dword [edx]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
lea ecx, [ebp - 0x58]
call fcn.00406700
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x48190c
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4818b4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481a5f
push ecx
push edx
call fcn.00435dd2
add esp, 8
jmp 0x48190c
mov ebx, dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0xa
push 0x64
push dword [0x4ca858]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4818e3
xor bl, bl
jmp 0x48198c
push edi
push dword [0x4ca858]
call ebx
push edi
push dword [0x4ca858]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push eax
lea ecx, [ebp - 0x28]
call fcn.00408a80
sub esp, 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x1d0]
push eax
call fcn.0042a810
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 7
push eax
call fcn.00461700
mov ecx, dword [ebp - 0x48]
mov bl, byte [eax + 0x18]
cmp ecx, 0x10
jb 0x48196c
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x481962
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481a64
push ecx
push edx
call fcn.00435dd2
add esp, 8
lea ecx, [ebp - 0x1d0]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
call fcn.00429790
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 4
cmp esi, 0x10
jb 0x4819c3
mov edx, dword [ebp - 0x28]
lea ecx, [esi + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4819b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481a64
push ecx
push edx
call fcn.00435dd2
add esp, 8
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x12c], eax
lea ecx, [ebp - 0x118]
call fcn.00426580
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x128]
mov edx, dword [eax + 4]
lea ecx, [edx - 0x18]
mov dword [ebp + edx - 0x12c], ecx
lea eax, [ebp - 0xb8]
mov dword [ebp - 4], 8
push eax
mov dword [ebp - 0xb8], vtable.std::ios_base.0
call fcn.00434394
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00435b39
mov esp, ebp
pop ebp
ret
call fcn.0043f67c
call fcn.0043f67c
call fcn.0043f67c
int3