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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45362a
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.00422220
mov ecx, dword [0x46c488]
push 0x457454
xor ebx, ebx
push 0x86
mov dword [esp + 0x6f4], ebx
call fcn.0041d1f0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x40f554
mov ecx, dword [0x46c488]
push esi
call fcn.0041d1f0
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.0041d1f0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edi, [eax + 1]
push edi
mov dword [esp + 0x1c], eax
call fcn.0044a9f4
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.00431eb0
add esp, 0x10
push ebx
push ebx
push esi
lea ecx, [esp + 0x84]
call fcn.00425240
push str.TheLanguage
lea ecx, [esp + 0x7c]
call fcn.00421250
mov edx, eax
cmp edx, ebx
je 0x40f554
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.00421490
cmp eax, ebx
jne 0x40f58e
mov eax, dword [esp + 0xac]
cmp eax, 0x46c960
mov dword [esp + 0x6ec], 0xffffffff
mov dword [esp + 0x78], 0x4570c8
je 0x40f57e
push eax
call fcn.0044a9ef
add esp, 4
lea ecx, [esp + 0x78]
call fcn.00420da0
xor eax, eax
jmp 0x40f84c
mov ecx, eax
call fcn.00421400
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x40f814
jmp 0x40f5a7
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x20]
add edi, 8
push 0x10
mov dword [esp + 0x14], edi
call fcn.0044a9c4
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
cmp esi, ebx
mov byte [esp + 0x6ec], 1
je 0x40f5fe
lea edi, [esi + 4]
mov ecx, edi
mov dword [esi], 0x4572ec
call fcn.004047c0
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 0x40f600
xor esi, esi
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x6ec], bl
mov dword [esp + 0x18], esi
call fcn.00421400
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x40f768
jmp 0x40f626
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x20]
mov ecx, dword [eax + 0x18]
add esi, 8
cmp ecx, ebx
jne 0x40f637
xor edi, edi
jmp 0x40f646
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.0040ca40
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.0040ca40
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.004318b6
add esp, 4
push eax
lea eax, [esp + 0x2cc]
push eax
lea ecx, [esp + 0x48]
call fcn.00404f40
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.004318b6
add esp, 4
push eax
lea edx, [esp + 0xc4]
push edx
lea ecx, [esp + 0x2c]
call fcn.00404f40
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 0x40f71b
mov eax, dword [esp + 0x28]
push eax
call fcn.0044a9ef
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 0x40f742
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0044a9ef
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.00421530
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x40f622
mov edi, dword [esp + 0x10]
mov ecx, dword [0x46c488]
call fcn.0040ca40
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.004318b6
add esp, 4
push eax
lea eax, [esp + 0x4d4]
push eax
lea ecx, [esp + 0x64]
call fcn.00404f40
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 0x40f7f2
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0044a9ef
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.00421530
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x40f5a3
mov eax, dword [esp + 0xac]
cmp eax, 0x46c960
mov dword [esp + 0x6ec], 0xffffffff
mov dword [esp + 0x78], 0x4570c8
je 0x40f83e
push eax
call fcn.0044a9ef
add esp, 4
lea ecx, [esp + 0x78]
call fcn.00420da0
mov eax, 1
mov ecx, dword [esp + 0x6e4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x6dc]
call fcn.00431018
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret