Function at 0x40d1a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x319c
call fcn.0040f7d0
push ebx
push esi
push edi
call fcn.00402b34
test eax, eax
jne 0x40d1c2
inc eax
jmp 0x40d432
call fcn.0040ec43
xor ebx, ebx
push str.SeBackupPrivilege
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
call fcn.0040d7ae
push str.SeRestorePrivilege
lea eax, [esp + 0x10]
call fcn.0040d7ae
call fcn.00405f42
test eax, eax
je 0x40d200
push str.SeTakeOwnershipPrivilege
lea eax, [esp + 0x10]
call fcn.0040d7ae
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
push 0x40eae1
push ebx
mov dword [0x414cb0], 0x11223344
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
lea eax, [esp + 0x18]
call fcn.004067c5
lea eax, [esp + 0x68]
mov dword [esp + 0x40], 0x20
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], ebx
call fcn.0040cbe3
push dword [ebp + 0x10]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x760], eax
call fcn.004069c2
mov esi, dword [esp + 0x758]
push str._savelangfile
call fcn.00406af5
test eax, eax
jl 0x40d290
mov dword [0x415370], 0x41450c
call fcn.004078ad
jmp 0x40d3fc
call fcn.0040770f
mov esi, dword [esp + 0x758]
push str._deleteregkey
call fcn.00406af5
test eax, eax
jge 0x40d3fc
mov eax, dword [esp + 0x758]
cmp dword [eax + 0x30], 1
jle 0x40d2cc
lea eax, [esp + 0x68]
call fcn.0040ce4a
test eax, eax
jne 0x40d3fc
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea edi, [esp + 0x68]
call fcn.0040cb1f
mov eax, edi
call fcn.0040cb9b
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x67
push eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push ebx
push ebx
mov dword [esp + 0x290], eax
push ebx
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x40d3f6
mov esi, dword [sym.imp.USER32.dll_IsDialogMessageW]
cmp dword [esp + 0x50], 0x100
jne 0x40d365
mov eax, dword [0x415aa4]
mov byte [esp + 0x10], 0x43
mov byte [esp + 0x11], 0x4c
mov byte [esp + 0x12], 0x52
mov byte [esp + 0x13], bl
movsx eax, byte [esp + eax + 0x10]
cmp dword [esp + 0x54], eax
jne 0x40d354
lea edi, [esp + 0x10]
lea ebx, [esp + 0x68]
call fcn.0040c764
xor ebx, ebx
jmp 0x40d361
xor eax, eax
mov byte [esp + 0x13], bl
mov dword [0x415aa4], ebx
inc eax
cmp eax, ebx
je 0x40d3e0
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x28c]
push dword [esp + 0x278]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x40d3e0
mov eax, dword [esp + 0x764]
mov edi, dword [0x414dcc]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x274]
call esi
test eax, eax
jne 0x40d3e0
cmp edi, ebx
je 0x40d3b5
lea eax, [esp + 0x4c]
push eax
push edi
call esi
test eax, eax
jne 0x40d3e0
cmp dword [esp + 0x14], ebx
je 0x40d3ca
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x18]
call esi
test eax, eax
jne 0x40d3e0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x40d316
call dword [sym.imp.ole32.dll_CoUninitialize]
lea edi, [esp + 0x68]
call fcn.0040cd3b
lea esi, [esp + 0x18]
call fcn.004067e7
lea esi, [esp + 0x38]
call fcn.00402ad0
lea esi, [esp + 0x18]
call fcn.004067e7
cmp dword [esp + 0xc], ebx
je 0x40d430
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10