Function at 0x405220
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x412ceb
mov eax, dword fs:[0]
push eax
mov eax, 0x34a8
call fcn.00407b10
mov eax, dword [0x4141b0]
xor eax, esp
mov dword [esp + 0x34a4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4141b0]
xor eax, esp
push eax
lea eax, [esp + 0x34bc]
mov dword fs:[0], eax
mov eax, dword [section..data]
push eax
lea ecx, [esp + 0x44]
call fcn.00404000
push 0x104
lea ecx, [esp + 0x6fc]
xor ebp, ebp
push ecx
mov dword [esp + 0x34cc], ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x6f8]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x405294
mov edx, dword [0x401bd4]
mov ecx, dword [0x401bd8]
mov dword [eax], edx
mov edx, dword [0x401bdc]
mov dword [eax + 4], ecx
mov ecx, dword [0x401be0]
mov dword [eax + 8], edx
mov edx, dword [0x401be4]
mov dword [eax + 0xc], ecx
mov cx, word [0x401be8]
mov dword [eax + 0x10], edx
lea edx, [esp + 0x98]
mov word [eax + 0x14], cx
push edx
lea eax, [esp + 0x6fc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, ebp
mov dword [esp + 0x2c], eax
jne 0x405307
push 0x401bb4
call fcn.004073c8
add esp, 4
jmp 0x405ffc
mov ecx, dword [esp + 0x6f8]
push ecx
lea ecx, [esp + 0x44]
call fcn.00404230
test al, al
jne 0x40533e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, word [esp + 0x6f8]
push eax
push edx
push 0x401b70
call fcn.00407693
add esp, 0xc
jmp 0x405ffc
push 0x41000
call fcn.00406e31
mov ebx, eax
mov dword [esp + 0x3c], eax
mov word [eax], bp
mov word [eax + 2], bp
lea eax, [esp + 0x6fc]
add esp, 4
mov dword [esp + 0x20], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405366
sub eax, edx
sar eax, 1
mov esi, eax
push esi
lea eax, [esp + 0x6fc]
push eax
lea ecx, [esp + 0x2f0]
push ecx
mov dword [esp + 0x3c], esi
call fcn.00407656
add esp, 0xc
jmp 0x4053a0
test byte [esp + 0x98], 0x10
jne 0x405dda
cmp dword [esp + 0xb8], 0x1000
jb 0x405dda
lea eax, [esp + 0xc4]
mov word [esp + esi*2 + 0x2e6], bp
mov esi, eax
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4053d0
lea edi, [esp + 0x2e8]
sub eax, esi
add edi, 0xfffffffe
jmp 0x4053f0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x4053f0
mov ecx, eax
shr ecx, 2
push ebp
rep movsd dword es:[edi], dword [esi]
push 0x80
push 3
push ebp
push 7
mov ecx, eax
push 0x120089
lea edx, [esp + 0x300]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x1c], edi
je 0x405dfe
mov eax, dword [esp + 0xb8]
push eax
call fcn.00406e31
mov esi, dword [esp + 0x70]
add esp, 4
cmp esi, 0x1000
mov byte [esp + 0x24b8], 0
mov byte [esp + 0x14b8], 1
mov dword [esp + 0x18], ebp
jb 0x40546c
mov esi, 0x1000
push ebp
lea ecx, [esp + 0x1c]
push ecx
push esi
lea edx, [esp + 0x24c4]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4054a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xc8]
push eax
push 0x401b28
call fcn.00407693
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
push esi
push ebp
lea edx, [esp + 0x14c4]
push edx
push edi
lea ecx, [esp + 0x54]
call fcn.00404660
test al, al
jne 0x4054db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xc8]
push eax
push 0x401ad8
call fcn.00407693
add esp, 0xc
cmp byte [esp + 0x24b8], 0x4d
jne 0x405dc6
cmp byte [esp + 0x24b9], 0x5a
jne 0x405dc6
cmp byte [esp + 0x14b8], 0x4d
jne 0x405dc6
cmp byte [esp + 0x14b9], 0x5a
jne 0x405dc6
cmp esi, 4
mov eax, esi
lea ecx, [esp + 0x14b8]
lea edx, [esp + 0x24b8]
jb 0x40553c
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x405540
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x405528
cmp eax, ebp
je 0x40559d
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x40558f
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x40559d
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x40558f
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x40559d
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x40558f
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x40559d
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x40559d
cmp esi, ebp
mov eax, 1
jg 0x40559f
or eax, 0xffffffff
jmp 0x40559f
xor eax, eax
cmp eax, ebp
je 0x405811
lea edx, [esp + 0xc4]
push edx
push 0x401ab0
mov byte [0x4151a5], 1
call fcn.00407693
lea eax, [esp + 0x2f0]
push eax
lea ecx, [esp + 0x112c]
push 0x401a38
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
cmp byte [0x4151a4], 0
jne 0x405606
push 0x34
push 0x401a14
lea edx, [esp + 0x1128]
push edx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x405dc6
mov eax, dword [esp + 0xb8]
push eax
mov ebx, eax
call fcn.00406e31
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x405e66
xor eax, eax
jmp 0x405630
movzx ecx, word [esp + eax + 0x2e8]
mov word [esp + eax + 0x900], cx
add eax, 2
cmp cx, bp
jne 0x405630
lea eax, [esp + 0x900]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405652
sub eax, edx
sar eax, 1
mov ebp, eax
lea eax, [esp + 0x900]
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x405670
mov ecx, dword [0x401a08]
mov edx, dword [0x401a0c]
push 0
push 0x80
push 2
push 0
mov dword [eax], ecx
mov cx, word [0x401a10]
push 0
mov dword [eax + 4], edx
push 0x12019f
lea edx, [esp + 0x918]
push edx
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4056f5
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push ebx
push 0
push edi
push ecx
lea ecx, [esp + 0x54]
call fcn.00404660
test al, al
je 0x4056ee
mov eax, dword [esp + 0x18]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x900]
mov word [esp + ebp*2 + 0x900], 0
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x405710
mov ecx, dword [0x4019fc]
mov edx, dword [0x401a00]
mov esi, dword [esp + 0x1c]
push 0
push 0
mov dword [eax], ecx
mov cx, word [0x401a04]
push 0
mov dword [eax + 4], edx
push esi
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x1c]
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405e45
push 0
push 0x80
push 2
push 0
push 0
push 0x12019f
lea eax, [esp + 0x918]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40579f
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push ebx
push 0
push edi
push eax
lea ecx, [esp + 0x54]
call fcn.00404850
test al, al
je 0x4057ec
cmp dword [esp + 0x18], ebx
jne 0x4057ec
lea ecx, [esp + 0x2e8]
push ecx
push 0x4019b0
call fcn.00407693
add esp, 8
push edi
mov byte [0x4151a6], 1
call fcn.00406d54
add esp, 4
xor ebp, ebp
jmp 0x405dc6
lea edx, [esp + 0x2e8]
push edx
push 0x401974
call fcn.00407693
add esp, 8
push edi
call fcn.00406d54
add esp, 4
xor ebp, ebp
jmp 0x405dc6
push ebp
push ebp
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x10000
call fcn.00406e31
mov ecx, eax
mov eax, dword [esp + 0xbc]
add esp, 4
cmp eax, 0x10000
mov dword [esp + 0x28], ecx
jb 0x405841
mov eax, 0x10000
cmp ecx, ebp
je 0x405dc6
push ebp
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405db9
mov eax, dword [esp + 0x18]
add eax, 0xfffffe00
xor edi, edi
cmp eax, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], eax
jle 0x405db9
mov edx, dword [esp + 0x28]
add edi, edx
mov eax, 0x38
mov ecx, str.__ACPIPNP03032da1a3ff0
mov edx, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4058a9
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x405891
cmp eax, ebp
je 0x405906
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x4058f8
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405906
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x4058f8
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405906
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x4058f8
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405906
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x405906
cmp esi, ebp
mov eax, 1
jg 0x405908
or eax, 0xffffffff
jmp 0x405908
xor eax, eax
cmp eax, ebp
jne 0x405911
add dword [esp + 0x14], 1
mov eax, 0x48
mov ecx, str.__ACPIPNP03032da1a3ff0U__08x
mov edx, edi
lea ecx, [ecx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x405938
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x405920
cmp eax, ebp
je 0x405995
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x405987
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405995
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x405987
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405995
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x405987
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405995
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x405995
cmp esi, ebp
mov eax, 1
jg 0x405997
or eax, 0xffffffff
jmp 0x405997
xor eax, eax
cmp eax, ebp
jne 0x4059a0
add dword [esp + 0x14], 1
mov eax, 0x4e
mov ecx, str.__ACPIPNP03032da1a3ff0L12345678
mov edx, edi
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4059c8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4059b0
cmp eax, ebp
je 0x405a25
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x405a17
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405a25
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x405a17
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405a25
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x405a17
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405a25
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x405a25
cmp esi, ebp
mov eax, 1
jg 0x405a27
or eax, 0xffffffff
jmp 0x405a27
xor eax, eax
cmp eax, ebp
jne 0x405a30
add dword [esp + 0x14], 1
mov eax, 0x3a
mov ecx, str._systemroot_NtUninstallKB_u_
mov edx, edi
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x405a58
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x405a40
cmp eax, ebp
je 0x405ab5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x405aa7
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405ab5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x405aa7
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405ab5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x405aa7
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405ab5
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x405ab5
cmp esi, ebp
mov eax, 1
jg 0x405ab7
or eax, 0xffffffff
jmp 0x405ab7
xor eax, eax
cmp eax, ebp
jne 0x405ac0
add dword [esp + 0x14], 1
mov eax, 0x4c
mov ecx, str.1B372133_BFFA_4dba_9CCF_5474BED6A9F6
mov edx, edi
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x405ae8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x405ad0
cmp eax, ebp
je 0x405b45
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x405b37
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405b45
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x405b37
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405b45
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x405b37
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405b45
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x405b45
cmp esi, ebp
mov eax, 1
jg 0x405b47
or eax, 0xffffffff
jmp 0x405b47
xor eax, eax
cmp eax, ebp
jne 0x405b50
add dword [esp + 0x14], 1
mov eax, 0x1a
mov ecx, str.driver_I64u
mov edx, edi
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x405b78
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x405b60
cmp eax, ebp
je 0x405bd5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x405bc7
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405bd5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x405bc7
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405bd5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x405bc7
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405bd5
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x405bd5
cmp esi, ebp
mov eax, 1
jg 0x405bd7
or eax, 0xffffffff
jmp 0x405bd7
xor eax, eax
cmp eax, ebp
jne 0x405be0
add dword [esp + 0x14], 1
mov eax, 0x26
mov ecx, str.GLOBAL__MpsDevice
mov edx, edi
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x405c08
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x405bf0
cmp eax, ebp
je 0x405c65
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x405c57
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405c65
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x405c57
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405c65
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x405c57
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x405c65
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x405c65
cmp esi, ebp
mov eax, 1
jg 0x405c67
or eax, 0xffffffff
jmp 0x405c67
xor eax, eax
cmp eax, ebp
jne 0x405c70
add dword [esp + 0x14], 1
mov edi, dword [esp + 0x24]
add edi, 1
cmp edi, dword [esp + 0x34]
mov dword [esp + 0x24], edi
jl 0x40587f
cmp dword [esp + 0x14], 5
jl 0x405db9
lea ecx, [esp + 0x2e8]
push ecx
lea edx, [esp + 0xb0c]
push 0x4018f8
push edx
mov byte [0x4151a5], 1
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0xb14]
push eax
push 0x4018ec
call fcn.00407693
add esp, 0x14
cmp byte [0x4151a4], 0
jne 0x405cef
push 0x34
push 0x4018cc
lea ecx, [esp + 0xb10]
push ecx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x405db9
xor eax, eax
jmp 0x405d00
movzx ecx, word [esp + eax + 0x2e8]
mov word [esp + eax + 0x4f0], cx
add eax, 2
cmp cx, bp
jne 0x405d00
lea eax, [esp + 0x4f0]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x405d22
mov edx, dword [0x401a08]
mov ecx, dword [0x401a0c]
mov dword [eax], edx
mov dx, word [0x401a10]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0x4f0]
push eax
call fcn.00406cb0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 4
lea ecx, [esp + 0x4f0]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x2e8]
push eax
mov dword [esp + 0x20], 0xffffffff
call fcn.00406cb0
lea ecx, [esp + 0x4f4]
push ecx
lea edx, [esp + 0x2f0]
push edx
call fcn.00406860
add esp, 0xc
test al, al
je 0x405daf
mov byte [0x4151a6], 1
jmp 0x405db9
lea eax, [esp + 0x2e8]
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00406d54
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x405dd6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x98]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x405e79
mov esi, dword [esp + 0x30]
jmp 0x4053a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x405dda
lea eax, [esp + 0x2e8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405e13
sub eax, edx
sar eax, 1
lea esi, [eax + eax]
push esi
lea edx, [esp + 0x2ec]
push edx
push ebx
call fcn.00406f80
mov word [esi + ebx], bp
lea ebx, [esi + ebx + 2]
add esp, 0xc
mov dword [esp + 0x20], ebx
jmp 0x405dda
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0xc8]
push edx
push 0x401b28
call fcn.00407693
add esp, 0xc
jmp 0x405ffc
push ebx
push 0x4018a4
call fcn.004073c8
add esp, 8
jmp 0x405ffc
cmp byte [0x4151a5], 0
je 0x405fe9
cmp byte [0x4151a6], 0
je 0x405fdb
mov esi, dword [esp + 0x38]
cmp word [esi], bp
je 0x405f8e
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [esp]
push esi
call fcn.00406cb0
add esp, 4
test al, al
je 0x405f6a
lea edx, [esp + 0x4f0]
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bp
jne 0x405ed0
lea eax, [esp + 0x4f0]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x405ef0
mov ecx, dword [0x401a08]
mov edx, dword [0x401a0c]
mov dword [eax], ecx
mov cx, word [0x401a10]
mov dword [eax + 4], edx
lea edx, [esp + 0x4f0]
push edx
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
lea eax, [esp + 0xb0c]
push 0x401828
push eax
call ebx
add esp, 0xc
cmp byte [0x4151a4], 0
jne 0x405f59
push 0x34
push 0x401a14
lea ecx, [esp + 0xb10]
push ecx
push ebp
call edi
cmp eax, 6
jne 0x405f6a
lea edx, [esp + 0x4f0]
push edx
push esi
call fcn.00406860
add esp, 8
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405f70
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], bp
lea esi, [esi + eax*2 + 2]
jne 0x405eb0
cmp byte [0x4151a4], 0
jne 0x405fd2
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x40
push 0x401820
push 0x4017f4
push ebp
call esi
cmp byte [0x4151a4], 0
jne 0x405fd2
cmp byte [0x4151a7], 0
jne 0x405fd2
push 0x44
push 0x4017e0
push 0x401778
push ebp
call esi
cmp eax, 6
jne 0x405ffc
mov byte [0x4151a7], 1
jmp 0x405ffc
push 0x30
push 0x40176c
push 0x40175c
jmp 0x405ff5
push 0x40
push 0x40176c
push 0x401728
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x40]
mov dword [esp + 0x34c4], 0xffffffff
call fcn.004049e0
xor eax, eax
mov ecx, dword [esp + 0x34bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34a4]
xor ecx, esp
call fcn.00406f68
add esp, 0x34b4
ret