Function at 0x4077a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a40d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c8
mov eax, dword [0x5e3fe4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x2d8], 0x5c3498
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
push ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2d4]
push eax
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x228], 1
mov dword [ebp - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x274], 0x60
call fcn.004091a0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x2d8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2d8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x2dc], eax
lea ecx, [ebp - 0x2d4]
call fcn.00409060
push esi
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 3
push eax
push ecx
mov byte [ebp - 0x221], 0
call fcn.004076c0
movzx eax, word [ebx + 8]
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x407a37
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x407a37
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov dword [ebp - 0x228], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ecx
mov esi, eax
lea ecx, [ebp - 0x2d4]
push 0x22
lea eax, [ebp - 0x220]
push eax
call fcn.00408fa0
test eax, eax
lea ecx, [ebp - 0x2d8]
mov eax, dword [ebp - 0x2d8]
mov eax, dword [eax + 4]
je 0x407931
add ecx, eax
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x407945
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push 0
push eax
call fcn.004037a0
mov eax, dword [ebp - 0x2d8]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x2cc], 0
je 0x407996
movups xmm0, xmmword [str.File_is_not_ready_for_write.]
movups xmmword [edi + 0x208], xmm0
movq xmm0, qword [0x5c3640]
movq qword [edi + 0x218], xmm0
mov eax, dword [0x5c3648]
mov dword [edi + 0x220], eax
mov al, byte [0x5c364c]
mov byte [edi + 0x224], al
jmp 0x4079f2
push 0
push esi
push dword [ebp - 0x228]
lea ecx, [ebp - 0x2d8]
call fcn.00408980
mov eax, dword [ebp - 0x2d8]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0x2cc]
shr eax, 2
test al, 1
je 0x4079eb
movq xmm0, qword [str.bad_write.]
movq qword [edi + 0x208], xmm0
mov ax, word [0x5c3658]
mov word [edi + 0x210], ax
mov al, byte [0x5c365a]
mov byte [edi + 0x212], al
jmp 0x4079f2
mov byte [ebp - 0x221], 1
cmp dword [ebp - 0x288], 0
je 0x407a3e
lea ecx, [ebp - 0x2d4]
call fcn.00408eb0
test eax, eax
jne 0x407a3e
mov eax, dword [ebp - 0x2d8]
lea ecx, [ebp - 0x2d8]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004037a0
jmp 0x407a3e
mov byte [ebp - 0x221], 0
mov eax, dword [ebp - 0x2d8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2d8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x2dc], eax
lea ecx, [ebp - 0x2d4]
call fcn.004086c0
mov eax, dword [ebp - 0x2d8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2d8]
mov edx, dword [eax + 4]
lea ecx, [edx - 8]
mov dword [ebp + edx - 0x2dc], ecx
lea eax, [ebp - 0x270]
mov dword [ebp - 4], 4
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.005500f1
mov al, byte [ebp - 0x221]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0054e183
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc