Function at 0x540e38
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x540e40
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x5411b6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5411c4
call sub.kernel32.dll_LoadLibraryW
test eax, eax
jne 0x540ea9
lea edx, [ebp - 0x18]
mov eax, 0x7e
call fcn.0041811c
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
mov ecx, 0x5411e0
call fcn.0040708c
push 0x10
call fcn.0053b31c
push eax
mov eax, dword [ebp - 8]
call fcn.00406c44
push eax
mov eax, ebx
call fcn.004cdfc0
push eax
call sub.user32.dll_MessageBoxW
jmp 0x541185
push eax
call sub.kernel32.dll_FreeLibrary_1
lea eax, [ebp - 8]
mov edx, 0x541204
call fcn.00406c0c
push 0x41
call fcn.0053b31c
push eax
mov eax, dword [ebp - 8]
call fcn.00406c44
push eax
mov eax, ebx
call fcn.004cdfc0
push eax
call sub.user32.dll_MessageBoxW
cmp eax, 2
je 0x541185
xor edx, edx
mov eax, dword [ebx + 0x41c]
call fcn.00516430
mov edx, 7
mov eax, dword [ebx + 0x41c]
call fcn.00516430
mov eax, dword [ebx + 0x3d8]
mov eax, dword [eax + 0x29c]
call fcn.00494038
dec eax
test eax, eax
jb 0x5410d1
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebx + 0x3d8]
mov eax, dword [eax + 0x29c]
mov edx, dword [ebp - 0xc]
call fcn.00494080
call fcn.00493700
test al, al
je 0x5410c5
mov eax, dword [ebx + 0x3d8]
mov eax, dword [eax + 0x29c]
mov edx, dword [ebp - 0xc]
call fcn.00494080
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00408398
add eax, 2
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x5179f8]
call fcn.00408558
add esp, 4
mov eax, dword [ebp - 4]
call fcn.00408398
add eax, eax
add eax, eax
mov edx, dword [ebp - 4]
lea eax, [edx + eax*8]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, dword [esi + 0x20]
call fcn.004132c8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
call fcn.00406bb8
lea ecx, [ebp - 0x24]
xor edx, edx
mov eax, dword [esi + 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004132c8
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
add eax, 4
call fcn.00406bb8
lea ecx, [ebp - 0x2c]
mov edx, 1
mov eax, dword [esi + 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.004132c8
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
add eax, 8
call fcn.00406bb8
lea ecx, [ebp - 0x34]
mov edx, 2
mov eax, dword [esi + 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.004132c8
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
add eax, 0xc
call fcn.00406bb8
lea ecx, [ebp - 0x3c]
mov edx, 3
mov eax, dword [esi + 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.004132c8
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x14]
add eax, 0x10
call fcn.00406bb8
lea ecx, [ebp - 0x44]
mov edx, 4
mov eax, dword [esi + 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.004132c8
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x14]
add eax, 0x14
call fcn.00406bb8
lea ecx, [ebp - 0x4c]
mov edx, 5
mov eax, dword [esi + 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.004132c8
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x14]
add eax, 0x18
call fcn.00406bb8
lea ecx, [ebp - 0x54]
mov edx, 6
mov eax, dword [esi + 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
call fcn.004132c8
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x14]
add eax, 0x1c
call fcn.00406bb8
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x540f25
xor ecx, ecx
mov edx, 0x541270
mov eax, ebx
call fcn.00542734
mov edx, 0x54129c
mov eax, ebx
call fcn.005432f8
mov eax, dword [0x553bf8]
mov eax, dword [eax]
mov eax, dword [eax + 0x398]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x74]
lea eax, [ebp - 0x58]
call fcn.0053caf8
lea eax, [ebp - 0x58]
mov edx, 0x5412c4
call fcn.00406fcc
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x5c], esi
mov eax, dword [ebp - 0x5c]
call fcn.00406c44
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov dl, 1
mov eax, dword [0x5182d4]
call fcn.0051b8cc
mov esi, eax
mov dword [ebx + 0x424], esi
lea eax, [esi + 0x48]
mov edx, dword [ebp - 4]
mov ecx, dword [0x5179f8]
call fcn.004086b4
push ebx
push 0x5433d0
mov eax, esi
call fcn.0051c064
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x58], 0x543494
mov dword [esi + 0x54], ebx
mov dword [esi + 0x50], 0x5433ac
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], 0x5434a4
mov eax, esi
call fcn.004410b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5411bd
lea eax, [ebp - 0x58]
mov edx, 0x11
call fcn.00406bb0
lea eax, [ebp - 8]
call fcn.00406ba8
lea eax, [ebp - 4]
mov edx, dword [0x5179f8]
call fcn.00408678
ret