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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45433a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6d8
mov eax, dword [0x46c3ac]
push ebx
push esi
mov dword [esp + 0x1c], ecx
push edi
lea ecx, [esp + 0x78]
mov dword [esp + 0x6dc], eax
call fcn.00422fa0
mov ecx, dword [0x46d488]
push 0x4574dc
xor ebx, ebx
push 0x86
mov dword [esp + 0x6f4], ebx
call fcn.0041dc50
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x40f5a4
mov ecx, dword [0x46d488]
push esi
call fcn.0041dc50
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [0x46d488]
push esi
mov dword [esp + 0x14], eax
call fcn.0041dc50
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edi, [eax + 1]
push edi
mov dword [esp + 0x1c], eax
call fcn.0044b77a
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.00432c30
add esp, 0x10
push ebx
push ebx
push esi
lea ecx, [esp + 0x84]
call fcn.00425fc0
push str.TheLanguage
lea ecx, [esp + 0x7c]
call fcn.00421fd0
mov edx, eax
cmp edx, ebx
je 0x40f5a4
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.004221e0
cmp eax, ebx
jne 0x40f5de
mov eax, dword [esp + 0xac]
cmp eax, 0x46d960
mov dword [esp + 0x6ec], 0xffffffff
mov dword [esp + 0x78], 0x457140
je 0x40f5ce
push eax
call fcn.0044b775
add esp, 4
lea ecx, [esp + 0x78]
call fcn.00421b20
xor eax, eax
jmp 0x40f89c
mov ecx, eax
call fcn.00422150
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x40f864
jmp 0x40f5f7
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x20]
add edi, 8
push 0x10
mov dword [esp + 0x14], edi
call fcn.0044b74a
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
cmp esi, ebx
mov byte [esp + 0x6ec], 1
je 0x40f64e
lea edi, [esi + 4]
mov ecx, edi
mov dword [esi], 0x457364
call fcn.00404810
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 0x40f650
xor esi, esi
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x6ec], bl
mov dword [esp + 0x18], esi
call fcn.00422150
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x40f7b8
jmp 0x40f676
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x20]
mov ecx, dword [eax + 0x18]
add esi, 8
cmp ecx, ebx
jne 0x40f687
xor edi, edi
jmp 0x40f696
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov edi, dword [eax + 0x20]
mov byte [eax + 0x2c], 1
add edi, 8
mov ecx, dword [0x46d488]
call fcn.0040c710
mov edx, dword [eax]
lea ecx, [esp + 0xc0]
push ecx
push esi
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [0x46d488]
call fcn.0040c710
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.00432636
add esp, 4
push eax
lea eax, [esp + 0x2cc]
push eax
lea ecx, [esp + 0x48]
call fcn.00404f80
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.00432636
add esp, 4
push eax
lea edx, [esp + 0xc4]
push edx
lea ecx, [esp + 0x2c]
call fcn.00404f80
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 0x40f76b
mov eax, dword [esp + 0x28]
push eax
call fcn.0044b775
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 0x40f792
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0044b775
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.00422280
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x40f672
mov edi, dword [esp + 0x10]
mov ecx, dword [0x46d488]
call fcn.0040c710
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.00432636
add esp, 4
push eax
lea eax, [esp + 0x4d4]
push eax
lea ecx, [esp + 0x64]
call fcn.00404f80
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 0x40f842
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0044b775
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.00422280
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x40f5f3
mov eax, dword [esp + 0xac]
cmp eax, 0x46d960
mov dword [esp + 0x6ec], 0xffffffff
mov dword [esp + 0x78], 0x457140
je 0x40f88e
push eax
call fcn.0044b775
add esp, 4
lea ecx, [esp + 0x78]
call fcn.00421b20
mov eax, 1
mov ecx, dword [esp + 0x6e4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x6dc]
call fcn.00431d98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret