Function at 0x40e620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45efaf
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push esi
push edi
mov eax, dword [0x47a0b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xa
push edx
push 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push esi
push 0
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
xor ebx, ebx
xor edi, edi
call fcn.004016d0
mov ecx, eax
test ecx, ecx
je 0x40e945
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x14]
mov esi, dword [ebp - 0x10]
push esi
call fcn.0040c190
test al, al
jne 0x40e6b5
push esi
lea ecx, [ebp - 0x14]
call fcn.0040c270
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov ecx, esi
push eax
push 0
mov dword [ebp - 0x10], 0xffffffff
mov edx, dword [esi - 0xc]
call fcn.0040e4d0
mov eax, dword [ebp - 0x10]
add esp, 8
test eax, eax
js 0x40e727
lea edi, [eax + 2]
push edi
call fcn.00442745
push edi
mov ebx, eax
push 0
push ebx
call fcn.004378c0
add esp, 0x10
test ebx, ebx
je 0x40e725
mov eax, dword [ebp - 0x10]
mov ecx, esi
mov edx, dword [esi - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.0040e4d0
add esp, 8
test eax, eax
jne 0x40e720
push ebx
call fcn.00441ca4
add esp, 4
mov edi, dword [ebp - 0x10]
jmp 0x40e727
xor edi, edi
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e742
lfence
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x40e933
mov dword [ebp - 0xc8], 0x4705f8
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push 0
push 0
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x10], 1
call fcn.0040bd80
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xc4]
call fcn.0040bc80
mov byte [ebp - 4], 3
cmp dword [ebp - 0x78], 0
jne 0x40e847
push 0x40
push 0x22
push dword [ebp + 8]
call fcn.0041fd41
add esp, 0xc
test eax, eax
je 0x40e847
push 1
push eax
lea ecx, [ebp - 0xc4]
call fcn.0040ba90
mov eax, dword [ebp - 0x90]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x14], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
call fcn.0040d0b0
add esp, 4
lea ecx, [ebp - 0xc4]
push eax
call fcn.0040b930
test esi, esi
je 0x40e870
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x40e870
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
jmp 0x40e870
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc8]
xor edx, edx
push 0
add ecx, dword [eax + 4]
cmp dword [ecx + 0x38], edx
sete dl
lea edx, [edx*4 + 2]
or edx, dword [ecx + 0xc]
push edx
call fcn.004025e0
mov eax, edi
mov dword [ebp - 4], 5
cdq
lea ecx, [ebp - 0xc8]
push edx
push eax
push ebx
call fcn.00409b50
lea ecx, [ebp - 0xc4]
call fcn.0040bb80
test eax, eax
jne 0x40e8c0
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc8]
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.004025e0
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xc4]
call fcn.00409650
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xcc], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 6
push eax
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.0041fb89
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401400
int3