Function at 0x401e40
Capabilities:
Delete file
Enumerate gui resources
Get common file path
Read file on windows

Disassembly:
sub esp, 0x78c
mov eax, dword [0x414090]
xor eax, esp
mov dword [esp + 0x788], eax
test byte [esi + 0xfc], 1
mov eax, dword [esp + 0x790]
push ebx
push ebp
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
je 0x40208a
xor ebp, ebp
cmp dword [esi + 0x148], ebp
jne 0x401ea2
push esi
push 0x4017a0
mov dword [esi + 0x148], ebp
call dword [sym.imp.USER32.dll_EnumWindows]
xor eax, eax
cmp dword [esi + 0x148], ebp
sete al
cmp eax, ebp
jne 0x40208c
lea edx, [esp + 0x588]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x278]
push eax
push ebp
push 0x411c98
lea ecx, [esp + 0x594]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ebp
push ebp
push 0x104
lea edx, [esp + 0x48c]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x28c]
push eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x480]
lea eax, [esp + 0x278]
mov dword [esp + 0x14], 2
mov dword [esp + 0x1c], ecx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x401f10
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], ebp
cmp dword [esp + 0x10], ebp
jg 0x401f55
mov ecx, dword [esi + 0x148]
lea eax, [esp + 0x14]
push eax
push ebp
push 0x4a
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x10], 0x28
jmp 0x401f5a
sub dword [esp + 0x10], 1
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x4017a0
mov dword [esi + 0x148], ebp
call dword [sym.imp.USER32.dll_EnumWindows]
xor edx, edx
cmp dword [esi + 0x148], ebp
sete dl
mov edi, edx
cmp edi, ebp
jne 0x4020a6
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x27c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x401f30
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x48]
cmp eax, ebp
jne 0x401fbd
cmp dword [esp + 0x44], ebp
je 0x401f30
push eax
call fcn.0040412e
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add esp, 4
push ebp
push 0x80
push 3
push ebp
mov ebx, eax
mov eax, dword [esp + 0x58]
push ebp
mov dword [edx], ebx
push 0x80000000
lea edx, [esp + 0x290]
push edx
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401f30
mov edx, dword [esp + 0x48]
push ebp
lea ecx, [esp + 0x24]
push ecx
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x148]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x14]
push eax
push ebp
push 0x4a
push ecx
mov dword [esp + 0x24], 3
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x40207c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x4017a0
mov dword [esi + 0x148], ebp
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esi + 0x148], ebp
jne 0x40207c
mov eax, dword [esi + 0x148]
lea edx, [esp + 0x14]
push edx
push ebp
push 0x4a
push eax
call edi
test eax, eax
jne 0x402045
lea ecx, [esp + 0x278]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov ecx, dword [esp + 0x794]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404729
add esp, 0x78c
ret 4
lea eax, [esp + 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
jmp 0x40208c