Function at 0x409a40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492b93
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x4b14c0]
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 ecx, dword [0x4b3860]
mov eax, bind
sub eax, ecx
cmp eax, 1
jb 0x409cbe
cmp dword [0x4b3864], 7
mov eax, 0x4b3850
push 1
cmova eax, dword [0x4b3850]
push 0x4ab388
push ecx
push eax
push ecx
push dword [ebp - 0xdc]
lea ecx, [ebp - 0xf4]
call fcn.00407730
push 0x4b3880
lea edx, [ebp - 0xf4]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00406d20
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xe0]
cmp ecx, 7
jbe 0x409b13
mov edx, dword [ebp - 0xf4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409b09
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409cc3
push ecx
push edx
call fcn.00468192
add esp, 8
push 0xa
xor eax, eax
mov dword [ebp - 0xe4], 0
push 0x65
push eax
mov dword [ebp - 0xe0], 7
mov word [ebp - 0xf4], ax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x409c68
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409c68
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x409c68
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x409c68
push 0xb0
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.00469c90
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xd8]
call fcn.00404f20
mov byte [ebp - 4], 3
cmp dword [ebp - 0x88], 0
jne 0x409bad
xor bl, bl
jmp 0x409bf6
push 0
push esi
push edi
lea ecx, [ebp - 0xd8]
call fcn.004050b0
lea ecx, [ebp - 0xd4]
call fcn.00405f40
test eax, eax
jne 0x409bf4
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xd8]
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.00402220
mov bl, 1
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xdc], eax
lea ecx, [ebp - 0xd4]
call fcn.00404bb0
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xdc], eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - 0x70], vtable.std::ios_base.0
call fcn.00466019
add esp, 4
jmp 0x409c6a
xor bl, bl
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x409ca0
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409c96
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409cc8
push ecx
push edx
call fcn.00468192
add esp, 8
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.0046814f
mov esp, ebp
pop ebp
ret
call fcn.00401480
call fcn.0046f563
call fcn.0046f563
int3