Function at 0x40f6b0
Capabilities:
Extract resource via kernel32 functions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45389a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6d8
mov eax, dword [0x46b3ac]
push ebx
push esi
mov dword [esp + 0x1c], ecx
push edi
lea ecx, [esp + 0x78]
mov dword [esp + 0x6dc], eax
call fcn.00422490
mov ecx, dword [0x46c488]
push 0x457454
xor ebx, ebx
push 0x86
mov dword [esp + 0x6f4], ebx
call fcn.0041d660
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x40f804
mov ecx, dword [0x46c488]
push esi
call fcn.0041d660
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [0x46c488]
push esi
mov dword [esp + 0x14], eax
call fcn.0041d660
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edi, [eax + 1]
push edi
mov dword [esp + 0x1c], eax
call fcn.0044ac64
mov esi, eax
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push esi
call fcn.00432120
add esp, 0x10
push ebx
push ebx
push esi
lea ecx, [esp + 0x84]
call fcn.004254b0
push str.TheLanguage
lea ecx, [esp + 0x7c]
call fcn.004214c0
mov edx, eax
cmp edx, ebx
je 0x40f804
xor eax, eax
mov word [esp + 0x4d0], bx
mov ecx, 0x81
lea edi, [esp + 0x4d2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0xc0], bx
mov ecx, 0x81
lea edi, [esp + 0xc2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [esp + 0x2c8], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x2ca]
rep stosd dword es:[edi], eax
push str.LangConfig
mov ecx, edx
stosw word es:[edi], ax
call fcn.00421700
cmp eax, ebx
jne 0x40f83e
mov eax, dword [esp + 0xac]
cmp eax, 0x46c960
mov dword [esp + 0x6ec], 0xffffffff
mov dword [esp + 0x78], 0x4570c8
je 0x40f82e
push eax
call fcn.0044ac5f
add esp, 4
lea ecx, [esp + 0x78]
call fcn.00421010
xor eax, eax
jmp 0x40fafc
mov ecx, eax
call fcn.00421670
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x40fac4
jmp 0x40f857
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x20]
add edi, 8
push 0x10
mov dword [esp + 0x14], edi
call fcn.0044ac34
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
cmp esi, ebx
mov byte [esp + 0x6ec], 1
je 0x40f8ae
lea edi, [esi + 4]
mov ecx, edi
mov dword [esi], 0x4572ec
call fcn.00404740
mov dword [edi + 4], eax
mov byte [eax + 0x45], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov edi, dword [esp + 0x10]
jmp 0x40f8b0
xor esi, esi
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x6ec], bl
mov dword [esp + 0x18], esi
call fcn.00421670
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x40fa18
jmp 0x40f8d6
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x20]
mov ecx, dword [eax + 0x18]
add esi, 8
cmp ecx, ebx
jne 0x40f8e7
xor edi, edi
jmp 0x40f8f6
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov edi, dword [eax + 0x20]
mov byte [eax + 0x2c], 1
add edi, 8
mov ecx, dword [0x46c488]
call fcn.0040cab0
mov edx, dword [eax]
lea ecx, [esp + 0xc0]
push ecx
push esi
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [0x46c488]
call fcn.0040cab0
mov edx, dword [eax]
lea ecx, [esp + 0x2c8]
push ecx
push edi
mov ecx, eax
call dword [edx + 0xc]
lea edx, [esp + 0x2c8]
mov esi, 7
push edx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
call fcn.00431b26
add esp, 4
push eax
lea eax, [esp + 0x2cc]
push eax
lea ecx, [esp + 0x48]
call fcn.00404ec0
lea ecx, [esp + 0xc0]
push ecx
mov byte [esp + 0x6f0], 2
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.00431b26
add esp, 4
push eax
lea edx, [esp + 0xc4]
push edx
lea ecx, [esp + 0x2c]
call fcn.00404ec0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
lea edx, [esp + 0x40]
push edx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x6f4], 3
call dword [eax]
mov eax, dword [esp + 0x3c]
mov edi, 8
cmp eax, edi
jb 0x40f9cb
mov eax, dword [esp + 0x28]
push eax
call fcn.0044ac5f
add esp, 4
cmp dword [esp + 0x58], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
mov byte [esp + 0x6ec], bl
jb 0x40f9f2
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0044ac5f
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
call fcn.004217a0
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x40f8d2
mov edi, dword [esp + 0x10]
mov ecx, dword [0x46c488]
call fcn.0040cab0
mov edx, dword [eax]
lea ecx, [esp + 0x4d0]
push ecx
push edi
mov ecx, eax
call dword [edx + 0xc]
lea edx, [esp + 0x4d0]
mov esi, 7
push edx
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
call fcn.00431b26
add esp, 4
push eax
lea eax, [esp + 0x4d4]
push eax
lea ecx, [esp + 0x64]
call fcn.00404ec0
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 0x208]
mov edx, dword [ecx]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x60]
push eax
mov byte [esp + 0x6f4], 4
call dword [edx]
cmp dword [esp + 0x74], 8
mov byte [esp + 0x6ec], bl
jb 0x40faa2
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0044ac5f
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
call fcn.004217a0
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x40f853
mov eax, dword [esp + 0xac]
cmp eax, 0x46c960
mov dword [esp + 0x6ec], 0xffffffff
mov dword [esp + 0x78], 0x4570c8
je 0x40faee
push eax
call fcn.0044ac5f
add esp, 4
lea ecx, [esp + 0x78]
call fcn.00421010
mov eax, 1
mov ecx, dword [esp + 0x6e4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x6dc]
call fcn.00431288
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret