Function at 0x4036a0
Capabilities:
Check if file exists
Check mutex on windows
Create thread
Get common file path
Get file attributes
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45f9b7
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x477564]
xor eax, esp
mov dword [esp + 0x650], eax
push ebx
push esi
push edi
mov eax, dword [0x477564]
xor eax, esp
push eax
lea eax, [esp + 0x668]
mov dword fs:[0], eax
push 0x4031e0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x26
xor ebx, ebx
mov edi, 0xf
push str.d1318ca0_db4a_4847_9bfa_4643086c163e
lea ecx, [esp + 0x21c]
mov dword [esp + 0x234], edi
mov dword [esp + 0x230], ebx
mov byte [esp + 0x220], bl
call fcn.004054f0
mov dword [esp + 0x670], ebx
mov eax, dword [esp + 0x218]
mov esi, 0x10
cmp dword [esp + 0x22c], esi
jae 0x40373d
lea eax, [esp + 0x218]
push eax
push 1
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
cmp eax, ebx
mov dword [0x47cea4], eax
je 0x403764
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x22c], esi
jmp 0x4051a0
cmp dword [esp + 0x22c], esi
mov eax, dword [esp + 0x218]
jae 0x40377b
lea eax, [esp + 0x218]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x47cea4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4037be
mov ecx, dword [0x47cea4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x22c], esi
jb 0x4051b2
mov edx, dword [esp + 0x218]
push edx
jmp 0x4051aa
lea eax, [esp + 0x36c]
call fcn.004051e0
mov dword [esp + 0x29c], edi
mov dword [esp + 0x298], ebx
mov byte [esp + 0x288], bl
mov dword [esp + 0x2b8], edi
mov dword [esp + 0x2b4], ebx
mov byte [esp + 0x2a4], bl
lea eax, [esp + 0x284]
push eax
lea ecx, [esp + 0x2a4]
mov byte [esp + 0x674], 3
call fcn.0040f060
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x28c]
push ecx
lea ecx, [esp + 0x378]
call fcn.00405e10
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x2a8]
push edx
lea ecx, [esp + 0x394]
call fcn.00405e10
push 1
push 0x462f14
lea ecx, [esp + 0x3ac]
call fcn.004054f0
push ebx
push 0x462c9b
lea ecx, [esp + 0x3c8]
call fcn.004054f0
lea esi, [esp + 0x1c0]
call fcn.0040ef90
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x404]
mov byte [esp + 0x67c], 4
call fcn.00405e10
mov byte [esp + 0x670], 3
cmp dword [esp + 0x1d8], 0x10
jb 0x4038ac
mov eax, dword [esp + 0x1c4]
push eax
call fcn.0043c477
add esp, 4
push 1
push 0x462f14
lea ecx, [esp + 0x41c]
call fcn.004054f0
lea esi, [esp + 0x5c]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call fcn.00430860
push str.start...
call fcn.004014e0
add esp, 4
mov byte [esp + 0x12], bl
mov dword [esp + 0x210], edi
mov dword [esp + 0x20c], ebx
mov byte [esp + 0x1fc], bl
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
push ebx
push ebx
push ebx
push 0x403620
push ebx
push ebx
mov byte [esp + 0x688], 8
call fcn.0043c65b
add esp, 0x18
cmp eax, ebx
je 0x403b8a
push 0x104
lea ecx, [esp + 0x451]
push ebx
push ecx
mov byte [esp + 0x458], bl
call fcn.004423c0
add esp, 0xc
push 0x104
lea edx, [esp + 0x450]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x44c]
push 0x5c
push eax
call fcn.0043c250
mov byte [eax], bl
lea eax, [esp + 0x454]
add esp, 8
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403990
sub eax, edx
push eax
lea ecx, [esp + 0x450]
push ecx
mov ecx, 0x4788f8
call fcn.004054f0
xor esi, esi
call fcn.00408bb0
test al, al
jne 0x4039de
push str.0...
call fcn.004014e0
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 1
cmp esi, 0x3c
jl 0x4039b0
jmp 0x403b8a
push str.1...
call fcn.004014e0
add esp, 4
mov dword [esp + 0x1bc], edi
mov dword [esp + 0x1b8], ebx
mov byte [esp + 0x1a8], bl
push 9
push str.dkpin.cfg
lea ecx, [esp + 0x1ac]
mov byte [esp + 0x678], 9
call fcn.004054f0
mov dword [esp + 0x184], edi
mov dword [esp + 0x180], ebx
mov byte [esp + 0x170], bl
mov dword [esp + 0x1a0], edi
mov dword [esp + 0x19c], ebx
mov byte [esp + 0x18c], bl
lea edx, [esp + 0x1a4]
push edx
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x174]
mov byte [esp + 0x678], 0xa
call fcn.00412530
add esp, 8
mov byte [esp + 0x670], 0xb
cmp dword [esp + 0xbc], ebx
jne 0x403c8f
push 5
push str.LED01
lea ecx, [esp + 0x200]
mov byte [esp + 0x1a], 1
call fcn.004054f0
push 0x13
push str.error:dkpin.cfg_cfg
lea ecx, [esp + 0x438]
call fcn.004054f0
mov esi, 0x10
cmp dword [esp + 0xd8], esi
jb 0x403aca
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.0043c477
add esp, 4
cmp dword [esp + 0x1a0], esi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
jb 0x403af8
mov edx, dword [esp + 0x18c]
push edx
call fcn.0043c477
add esp, 4
cmp dword [esp + 0x184], esi
mov dword [esp + 0x1a0], edi
mov dword [esp + 0x19c], ebx
mov byte [esp + 0x18c], bl
jb 0x403b26
mov eax, dword [esp + 0x170]
push eax
call fcn.0043c477
add esp, 4
mov byte [esp + 0x670], 8
cmp dword [esp + 0x1bc], esi
mov dword [esp + 0x184], edi
mov dword [esp + 0x180], ebx
mov byte [esp + 0x170], bl
jb 0x403b5c
mov ecx, dword [esp + 0x1a8]
push ecx
call fcn.0043c477
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x21c]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00405e10
call fcn.004302c0
add esp, 0x1c
lea ecx, [esp + 0x36c]
push ecx
lea esi, [esp + 0x118]
call fcn.004128e0
mov edi, 0x10
add esp, 4
cmp dword [esp + 0x130], edi
jb 0x403bbf
mov edx, dword [esp + 0x11c]
push edx
call fcn.0043c477
add esp, 4
cmp byte [esp + 0x12], bl
jne 0x4050af
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x4050af
mov ecx, dword [esp + 0x54]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4050af
call fcn.004308b0
push str.r...
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x403c3d
mov ecx, dword [esp + 0x6c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x403c3d
lea ecx, [esp + 0x64]
call fcn.00401ce0
lea edx, [esp + 0x64]
push edx
call fcn.00403100
add esp, 4
mov dword [esp + 0x20], ebx
xor edi, edi
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x405006
mov ecx, dword [esp + 0x54]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x405006
mov dword [esp + 0x14], ebx
lea esi, [esp + 0x4c]
call fcn.004056c0
cmp dword [eax + 0x18], 0x10
jb 0x404e53
mov eax, dword [eax + 4]
jmp 0x404e56
push str.2...
call fcn.004014e0
mov esi, 0xf
add esp, 4
mov dword [esp + 0x2d4], esi
mov dword [esp + 0x2d0], ebx
mov byte [esp + 0x2c0], bl
mov dword [esp + 0x2f0], esi
mov dword [esp + 0x2ec], ebx
mov byte [esp + 0x2dc], bl
mov dword [esp + 0x30c], esi
mov dword [esp + 0x308], ebx
mov byte [esp + 0x2f8], bl
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1ac]
push edx
lea ecx, [esp + 0x2c8]
mov byte [esp + 0x67c], 0xc
call fcn.00405e10
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x174]
push eax
lea ecx, [esp + 0x2e4]
call fcn.00405e10
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x190]
push ecx
lea ecx, [esp + 0x300]
call fcn.00405e10
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
lea edx, [esp + 0xdc]
push edx
lea eax, [esp + 0x2c0]
push eax
lea edi, [esp + 0x11c]
mov byte [esp + 0x678], 0xd
call fcn.00412250
add esp, 8
mov byte [esp + 0x670], 0xe
mov ecx, dword [eax]
push 0xffffffffffffffff
push ebx
add eax, 4
mov dword [esp + 0xc4], ecx
push eax
lea ecx, [esp + 0xcc]
call fcn.00405e10
mov byte [esp + 0x670], 0xd
cmp dword [esp + 0x130], 0x10
jb 0x403daf
mov edx, dword [esp + 0x11c]
push edx
call fcn.0043c477
add esp, 4
cmp dword [esp + 0xbc], ebx
jne 0x403ec7
push esi
push str.error:dkpin.cfg
lea ecx, [esp + 0x438]
call fcn.004054f0
cmp dword [esp + 0xf4], 0x10
jb 0x403de8
mov eax, dword [esp + 0xe0]
push eax
call fcn.0043c477
add esp, 4
mov edi, 0xf
lea esi, [esp + 0x2bc]
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
call fcn.004053d0
mov esi, 0x10
cmp dword [esp + 0xd8], esi
jb 0x403e2c
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.0043c477
add esp, 4
cmp dword [esp + 0x1a0], esi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
jb 0x403e5a
mov edx, dword [esp + 0x18c]
push edx
call fcn.0043c477
add esp, 4
cmp dword [esp + 0x184], esi
mov dword [esp + 0x1a0], edi
mov dword [esp + 0x19c], ebx
mov byte [esp + 0x18c], bl
jb 0x403e88
mov eax, dword [esp + 0x170]
push eax
call fcn.0043c477
add esp, 4
mov byte [esp + 0x670], 8
cmp dword [esp + 0x1bc], esi
mov dword [esp + 0x184], edi
mov dword [esp + 0x180], ebx
mov byte [esp + 0x170], bl
jb 0x403b8a
mov ecx, dword [esp + 0x1a8]
push ecx
call fcn.0043c477
add esp, 4
jmp 0x403b8a
push str.3...
call fcn.004014e0
add esp, 4
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
lea edx, [esp + 0xdc]
push edx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x678], 0xf
call fcn.0040d070
test al, al
jne 0x404018
push 0x13
push str.error:package_parse
lea ecx, [esp + 0x438]
call fcn.004054f0
lea ecx, [esp + 0x3c]
push ecx
call fcn.00406000
cmp dword [esp + 0xf4], 0x10
jb 0x403f39
mov edx, dword [esp + 0xe0]
push edx
call fcn.0043c477
add esp, 4
mov edi, 0xf
lea esi, [esp + 0x2bc]
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
call fcn.004053d0
mov esi, 0x10
cmp dword [esp + 0xd8], esi
jb 0x403f7d
mov eax, dword [esp + 0xc4]
push eax
call fcn.0043c477
add esp, 4
cmp dword [esp + 0x1a0], esi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
jb 0x403fab
mov ecx, dword [esp + 0x18c]
push ecx
call fcn.0043c477
add esp, 4
cmp dword [esp + 0x184], esi
mov dword [esp + 0x1a0], edi
mov dword [esp + 0x19c], ebx
mov byte [esp + 0x18c], bl
jb 0x403fd9
mov edx, dword [esp + 0x170]
push edx
call fcn.0043c477
add esp, 4
mov byte [esp + 0x670], 8
cmp dword [esp + 0x1bc], esi
mov dword [esp + 0x184], edi
mov dword [esp + 0x180], ebx
mov byte [esp + 0x170], bl
jb 0x403b8a
mov eax, dword [esp + 0x1a8]
push eax
call fcn.0043c477
add esp, 4
jmp 0x403b8a
push 0x104
lea ecx, [esp + 0x559]
push ebx
push ecx
mov byte [esp + 0x560], bl
call fcn.004423c0
add esp, 0xc
push ebx
mov edi, 0x10
push edi
lea edx, [esp + 0x55c]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x554]
mov dword [esp + 0x168], esi
mov dword [esp + 0x164], ebx
mov byte [esp + 0x154], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x404070
sub eax, edx
push eax
lea eax, [esp + 0x558]
push eax
lea ecx, [esp + 0x158]
call fcn.004054f0
mov ecx, 0x462c9b
lea eax, [esp + 0x150]
mov byte [esp + 0x670], 0x10
call fcn.00405600
test eax, eax
jne 0x4041a7
push 0xd
push str.error:deskdir
lea ecx, [esp + 0x438]
call fcn.004054f0
cmp dword [esp + 0x168], edi
jb 0x4040dd
mov ecx, dword [esp + 0x154]
push ecx
call fcn.0043c477
add esp, 4
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x16c], esi
mov dword [esp + 0x168], ebx
mov byte [esp + 0x158], bl
call fcn.00406000
cmp dword [esp + 0xf4], edi
jb 0x404115
mov eax, dword [esp + 0xe0]
push eax
call fcn.0043c477
add esp, 4
lea esi, [esp + 0x2bc]
mov dword [esp + 0xf4], 0xf
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
call fcn.004053d0
mov edi, 0x10
cmp dword [esp + 0xd8], edi
jb 0x404158
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.0043c477
add esp, 4
lea esi, [esp + 0x16c]
mov dword [esp + 0xd8], 0xf
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
call fcn.00405380
mov byte [esp + 0x670], 8
cmp dword [esp + 0x1bc], edi
jb 0x403b8a
mov edx, dword [esp + 0x1a8]
push edx
call fcn.0043c477
add esp, 4
jmp 0x403b8a
call fcn.0040a520
push 1
push 0x462fa0
lea ecx, [esp + 0x41c]
mov dword [esp + 0x28], ebx
call fcn.004054f0
xor edi, edi
mov dword [esp + 0x14], edi
lea esp, [esp]
cmp dword [esp + 0x40], ebx
je 0x404c5b
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x40]
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x404c5b
mov dword [esp + 0x110], esi
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], bl
mov eax, edi
imul eax, eax, 0x8c
mov byte [esp + 0x670], 0x11
mov ecx, dword [esp + 0x40]
push 0xffffffffffffffff
mov dword [esp + 0x20], eax
add eax, ecx
push ebx
push eax
lea ecx, [esp + 0x104]
call fcn.00405e10
mov dword [esp + 0x264], esi
mov dword [esp + 0x260], ebx
mov byte [esp + 0x250], bl
mov dword [esp + 0x280], esi
mov dword [esp + 0x27c], ebx
mov byte [esp + 0x26c], bl
lea edx, [esp + 0xf8]
push edx
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x254]
mov byte [esp + 0x678], 0x12
call fcn.00412530
add esp, 8
cmp dword [esp + 0x114], ebx
jne 0x404374
mov edi, 0x10
cmp dword [esp + 0x130], edi
jb 0x4042b8
mov ecx, dword [esp + 0x11c]
push ecx
call fcn.0043c477
add esp, 4
cmp dword [esp + 0x280], edi
mov dword [esp + 0x130], esi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], bl
jb 0x4042e6
mov edx, dword [esp + 0x26c]
push edx
call fcn.0043c477
add esp, 4
cmp dword [esp + 0x264], edi
mov dword [esp + 0x280], esi
mov dword [esp + 0x27c], ebx
mov byte [esp + 0x26c], bl
jb 0x404314
mov eax, dword [esp + 0x250]
push eax
call fcn.0043c477
add esp, 4
mov byte [esp + 0x670], 0x10
cmp dword [esp + 0x110], edi
mov dword [esp + 0x264], esi
mov dword [esp + 0x260], ebx
mov byte [esp + 0x250], bl
jb 0x40434a
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.0043c477
add esp, 4
push str.4.1...
call fcn.004014e0
add esp, 4
cmp byte [esp + 0x12], bl
jne 0x404c56
add dword [esp + 0x14], 1
mov edi, dword [esp + 0x14]
mov esi, 0xf
jmp 0x4041d0
mov dword [esp + 0x32c], esi
mov dword [esp + 0x328], ebx
mov byte [esp + 0x318], bl
mov dword [esp + 0x348], esi
mov dword [esp + 0x344], ebx
mov byte [esp + 0x334], bl
mov dword [esp + 0x364], esi
mov dword [esp + 0x360], ebx
mov byte [esp + 0x350], bl
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x100]
push edx
lea ecx, [esp + 0x320]
mov byte [esp + 0x67c], 0x14
call fcn.00405e10
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x254]
push eax
lea ecx, [esp + 0x33c]
call fcn.00405e10
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x270]
push ecx
lea ecx, [esp + 0x358]
call fcn.00405e10
mov dword [esp + 0x14c], esi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x318]
push eax
lea edi, [esp + 0x1c8]
mov byte [esp + 0x678], 0x15
call fcn.00412250
add esp, 8
mov byte [esp + 0x670], 0x16
mov ecx, dword [eax]
push 0xffffffffffffffff
push ebx
add eax, 4
mov dword [esp + 0x11c], ecx
push eax
lea ecx, [esp + 0x124]
call fcn.00405e10
cmp dword [esp + 0x1dc], 0x10
jb 0x40447a
mov edx, dword [esp + 0x1c8]
push edx
call fcn.0043c477
add esp, 4
cmp dword [esp + 0x114], ebx
jne 0x40452b
cmp dword [esp + 0x14c], 0x10
jb 0x4044a1
mov eax, dword [esp + 0x138]
push eax
call fcn.0043c477
add esp, 4
lea esi, [esp + 0x314]
mov dword [esp + 0x14c], 0xf
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
call fcn.004053d0
mov edi, 0x10
cmp dword [esp + 0x130], edi
jb 0x4044e4
mov ecx, dword [esp + 0x11c]
push ecx
call fcn.0043c477
add esp, 4
lea esi, [esp + 0x24c]
mov dword [esp + 0x130], 0xf
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], bl
call fcn.00405380
mov byte [esp + 0x670], 0x10
cmp dword [esp + 0x110], edi
jb 0x40434a
mov edx, dword [esp + 0xfc]
push edx
jmp 0x404342
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x670], 0x17
cmp dword [esp + 0x14c], 0x10
mov eax, dword [esp + 0x138]
jae 0x404557
lea eax, [esp + 0x138]
mov edx, dword [esp + 0x148]
push eax
lea ecx, [esp + 0x2c]
call fcn.0040ea50
add esp, 4
test al, al
jne 0x4045c0
lea esi, [esp + 0x28]
call fcn.00405c70
mov edi, 0x10
cmp dword [esp + 0x14c], edi
jb 0x404596
mov eax, dword [esp + 0x138]
push eax
call fcn.0043c477
add esp, 4
lea esi, [esp + 0x314]
mov dword [esp + 0x14c], 0xf
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
call fcn.004053d0
jmp 0x4044cb
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x13], 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], ebx
cmp ecx, ebx
je 0x404af2
mov esi, dword [esp + 0x30]
sub esi, ecx
mov eax, 0x88888889
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jae 0x404ad0
mov edi, dword [esp + 0x18]
cmp edi, eax
jb 0x40460d
call fcn.0043c842
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
test byte [eax + ecx + 0x1c], 0x10
je 0x40476d
cmp ecx, ebx
je 0x40463d
mov esi, dword [esp + 0x30]
sub esi, ecx
mov eax, 0x88888889
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x404646
call fcn.0043c842
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
cmp dword [eax + ecx + 0x18], 8
jb 0x404657
mov ecx, dword [eax + ecx + 4]
jmp 0x40465b
lea ecx, [eax + ecx + 4]
push ecx
lea edi, [esp + 0xa4]
call fcn.0041d030
add esp, 4
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x150]
push ecx
mov edi, 0x462fa4
lea esi, [esp + 0x234]
mov byte [esp + 0x674], 0x18
call fcn.00407420
add esp, 4
mov edx, dword [esp + 0x24]
push edx
push eax
lea edi, [esp + 0x1c8]
mov byte [esp + 0x678], 0x19
call fcn.004074d0
add esp, 8
cmp dword [esp + 0x248], 0x10
jb 0x4046ca
mov eax, dword [esp + 0x234]
push eax
call fcn.0043c477
add esp, 4
mov esi, 0xf
mov dword [esp + 0x248], esi
mov dword [esp + 0x244], ebx
mov byte [esp + 0x234], bl
mov edi, 0x10
mov byte [esp + 0x670], 0x1c
cmp dword [esp + 0xb8], edi
jb 0x40470a
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.0043c477
add esp, 4
mov dword [esp + 0xb8], esi
lea esi, [esp + 0x1c0]
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
call fcn.0040b6c0
test al, al
jne 0x40474b
push 5
push str.LED01
lea ecx, [esp + 0x200]
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1a], 1
call fcn.004054f0
mov byte [esp + 0x670], 0x17
cmp dword [esp + 0x1d8], edi
jb 0x404ab7
mov edx, dword [esp + 0x1c4]
push edx
jmp 0x404aaf
cmp ecx, ebx
je 0x40478e
mov esi, dword [esp + 0x30]
sub esi, ecx
mov eax, 0x88888889
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x404797
call fcn.0043c842
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
test byte [eax + ecx + 0x1c], 0x20
je 0x404abb
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x28]
call fcn.00405ce0
cmp dword [eax + 0x18], 8
jb 0x4047be
mov eax, dword [eax + 4]
jmp 0x4047c1
add eax, 4
push eax
lea edi, [esp + 0x1c4]
call fcn.0041d030
add esp, 4
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x150]
push ecx
mov edi, 0x462fa4
lea esi, [esp + 0x88]
mov byte [esp + 0x674], 0x1d
call fcn.00407420
add esp, 4
mov edx, dword [esp + 0x24]
push edx
push eax
lea edi, [esp + 0x238]
mov byte [esp + 0x678], 0x1e
call fcn.004074d0
add esp, 8
cmp dword [esp + 0x9c], 0x10
jb 0x404830
mov eax, dword [esp + 0x88]
push eax
call fcn.0043c477
add esp, 4
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
mov byte [esp + 0x670], 0x21
cmp dword [esp + 0x1d8], 0x10
jb 0x40486b
mov ecx, dword [esp + 0x1c4]
push ecx
call fcn.0043c477
add esp, 4
push 0xffffffffffffffff
mov eax, 0xf
push ebx
lea edx, [esp + 0x238]
push edx
lea ecx, [esp + 0xac]
mov dword [esp + 0x1e4], eax
mov dword [esp + 0x1e0], ebx
mov byte [esp + 0x1d0], bl
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
call fcn.00405e10
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x28]
mov byte [esp + 0x670], 0x22
call fcn.00405ce0
add eax, 0x20
push eax
lea esi, [esp + 0x234]
call fcn.0040b720
add esp, 4
test al, al
jne 0x404903
push 5
push str.LED01
lea ecx, [esp + 0x200]
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1a], 1
call fcn.004054f0
mov edi, 0x10
jmp 0x404a64
lea eax, [esp + 0x230]
push eax
lea esi, [esp + 0x50]
call fcn.00405700
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x28]
call fcn.00405ce0
mov ecx, dword [eax + 0x34]
add eax, 0x20
mov dword [esp + 0x24], ecx
call fcn.00405ce0
add eax, 0x20
cmp dword [eax + 0x18], 0x10
jb 0x40493e
mov eax, dword [eax + 4]
jmp 0x404941
add eax, 4
mov ecx, dword [esp + 0x24]
push eax
lea esi, [esp + 0x1c4]
call fcn.0040e8c0
add esp, 4
push eax
lea esi, [esp + 0x78]
mov byte [esp + 0x674], 0x23
call fcn.00405700
mov edi, 0x10
cmp dword [esp + 0x1d8], edi
jb 0x404985
mov edx, dword [esp + 0x1c4]
push edx
call fcn.0043c477
add esp, 4
cmp dword [esp + 0xb8], edi
mov eax, dword [esp + 0xa4]
jae 0x40499c
lea eax, [esp + 0xa4]
push 0x5c
push eax
call fcn.0043c250
add esp, 8
cmp dword [esp + 0xb8], edi
mov esi, eax
mov eax, dword [esp + 0xa4]
jae 0x4049c0
lea eax, [esp + 0xa4]
push 0x2e
push eax
call fcn.0043c250
add esp, 8
cmp esi, ebx
je 0x404a64
cmp eax, ebx
je 0x404a64
cmp eax, esi
jbe 0x404a64
mov ecx, 0xf
mov dword [esp + 0x1d8], ecx
mov dword [esp + 0x1d4], ebx
mov byte [esp + 0x1c4], bl
mov dword [esp + 0x1f4], ecx
mov dword [esp + 0x1f0], ebx
mov byte [esp + 0x1e0], bl
sub eax, esi
sub eax, 1
push eax
add esi, 1
push esi
lea ecx, [esp + 0x1c8]
mov byte [esp + 0x678], 0x24
call fcn.004054f0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x238]
push eax
lea ecx, [esp + 0x1e8]
call fcn.00405e10
lea ecx, [esp + 0x1c0]
push ecx
lea esi, [esp + 0x68]
call fcn.00405ad0
lea esi, [esp + 0x1c0]
call fcn.00405380
cmp dword [esp + 0xb8], edi
jb 0x404a7d
mov edx, dword [esp + 0xa4]
push edx
call fcn.0043c477
add esp, 4
mov byte [esp + 0x670], 0x17
cmp dword [esp + 0x248], edi
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
jb 0x404ab7
mov eax, dword [esp + 0x234]
push eax
call fcn.0043c477
add esp, 4
mov ecx, dword [esp + 0x2c]
cmp byte [esp + 0x13], bl
je 0x404ad0
add dword [esp + 0x18], 1
add dword [esp + 0x38], 0x3c
jmp 0x4045d1
cmp ecx, ebx
je 0x404af2
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
push edx
push eax
mov eax, ecx
call fcn.00407d70
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0043c477
add esp, 0xc
mov edi, 0x10
cmp dword [esp + 0x14c], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
jb 0x404b1c
mov edx, dword [esp + 0x138]
push edx
call fcn.0043c477
add esp, 4
lea esi, [esp + 0x314]
mov dword [esp + 0x14c], 0xf
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
call fcn.004053d0
cmp dword [esp + 0x130], edi
jb 0x404b5a
mov eax, dword [esp + 0x11c]
push eax
call fcn.0043c477
add esp, 4
lea esi, [esp + 0x24c]
mov dword [esp + 0x130], 0xf
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], bl
call fcn.00405380
mov byte [esp + 0x670], 0x10
cmp dword [esp + 0x110], edi
jb 0x404ba0
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.0043c477
add esp, 4
cmp byte [esp + 0x13], bl
je 0x40434a
push str.4.0...
call fcn.004014e0
mov esi, dword [esp + 0x44]
add esp, 4
cmp esi, ebx
je 0x404bde
mov ecx, dword [esp + 0x44]
sub ecx, esi
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x404be7
call fcn.0043c842
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
lea eax, [esi + edx + 0x38]
push eax
mov ecx, 0x462fb0
lea edi, [esp + 0x1c4]
call fcn.00407580
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea esi, [esp + 0x43c]
mov byte [esp + 0x67c], 0x25
call fcn.00406350
mov byte [esp + 0x670], 0x10
cmp dword [esp + 0x1d8], 0x10
jb 0x404c3e
mov ecx, dword [esp + 0x1c4]
push ecx
call fcn.0043c477
add esp, 4
add dword [esp + 0x20], 1
add dword [esp + 0x14], 1
mov edi, dword [esp + 0x14]
mov esi, 0xf
jmp 0x4041d0
mov esi, 0xf
lea edx, [esp + 0x4c]
push edx
call fcn.00409aa0
add esp, 4
cmp byte [esp + 0x12], bl
je 0x404dae
push 1
push 0x462f14
lea ecx, [esp + 0x41c]
call fcn.004054f0
lea eax, [esp + 0x1f8]
push eax
mov ecx, str.fatalerror:
lea edi, [esp + 0x1c4]
call fcn.00407580
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x43c]
mov byte [esp + 0x67c], 0x26
call fcn.00405e10
cmp dword [esp + 0x1d8], 0x10
jb 0x404cd3
mov ecx, dword [esp + 0x1c4]
push ecx
call fcn.0043c477
add esp, 4
mov edi, 0x10
cmp dword [esp + 0x168], edi
jb 0x404cf1
mov edx, dword [esp + 0x154]
push edx
call fcn.0043c477
add esp, 4
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x16c], esi
mov dword [esp + 0x168], ebx
mov byte [esp + 0x158], bl
call fcn.00406000
cmp dword [esp + 0xf4], edi
jb 0x404d29
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.0043c477
add esp, 4
lea esi, [esp + 0x2bc]
mov dword [esp + 0xf4], 0xf
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
call fcn.004053d0
cmp dword [esp + 0xd8], edi
jb 0x404d67
mov edx, dword [esp + 0xc4]
push edx
call fcn.0043c477
add esp, 4
lea esi, [esp + 0x16c]
mov dword [esp + 0xd8], 0xf
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
call fcn.00405380
mov byte [esp + 0x670], 8
cmp dword [esp + 0x1bc], edi
jb 0x403b5c
mov eax, dword [esp + 0x1a8]
push eax
jmp 0x403b54
cmp dword [esp + 0x20], ebx
jle 0x404dc6
push ebx
push ebx
push 0x1000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push str.5...
call fcn.004014e0
mov edi, 0x10
add esp, 4
cmp dword [esp + 0x168], edi
jb 0x404df1
mov ecx, dword [esp + 0x154]
push ecx
call fcn.0043c477
add esp, 4
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x16c], esi
mov dword [esp + 0x168], ebx
mov byte [esp + 0x158], bl
call fcn.00406000
cmp dword [esp + 0xf4], edi
jb 0x404e29
mov eax, dword [esp + 0xe0]
push eax
call fcn.0043c477
add esp, 4
lea esi, [esp + 0x2bc]
mov dword [esp + 0xf4], 0xf
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
call fcn.004053d0
jmp 0x40413f
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404e66
test al, 2
je 0x404e9d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, 0xa
mov dword [esp + 0x14], eax
jl 0x403c74
push 5
push str.LED01
lea ecx, [esp + 0x200]
call fcn.004054f0
jmp 0x40507c
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x404eaf
cmp eax, 0xa
jne 0x404ff9
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
mov byte [esp + 0x670], 0x27
mov dword [esp + 0x14], ebx
lea eax, [esp + 0xa0]
push eax
lea esi, [esp + 0x50]
call fcn.004056c0
cmp dword [eax + 0x18], 0x10
jb 0x404ef0
mov eax, dword [eax + 4]
jmp 0x404ef3
add eax, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.00405450
call fcn.0040ee10
add esp, 0x20
cmp dword [esp + 0xb4], ebx
ja 0x404f2e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, 0xa
mov dword [esp + 0x14], eax
jl 0x404ed4
cmp dword [esp + 0xb8], 0x10
mov eax, dword [esp + 0xa4]
jae 0x404f46
lea eax, [esp + 0xa4]
mov ecx, dword [esp + 0xb4]
push eax
lea esi, [esp + 0xfc]
call fcn.0040e8c0
add esp, 4
lea esi, [esp + 0x74]
mov byte [esp + 0x670], 0x28
call fcn.004056c0
cmp dword [eax + 0x18], 0x10
jb 0x404f79
mov eax, dword [eax + 4]
jmp 0x404f7c
add eax, 4
mov ecx, dword [esp + 0xfc]
mov esi, 0x10
cmp dword [esp + 0x110], esi
jae 0x404f98
lea ecx, [esp + 0xfc]
push eax
push ecx
call fcn.00454cd6
add esp, 8
test eax, eax
jne 0x405016
cmp dword [esp + 0x110], esi
jb 0x404fbf
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.0043c477
add esp, 4
mov byte [esp + 0x670], 8
cmp dword [esp + 0xb8], esi
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], bl
jb 0x404ff9
mov edx, dword [esp + 0xa4]
push edx
call fcn.0043c477
add esp, 4
add dword [esp + 0x20], 1
add edi, 1
jmp 0x403c43
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403c41
push 5
push str.LED02
lea ecx, [esp + 0x200]
call fcn.004054f0
cmp dword [esp + 0x110], esi
jb 0x405042
mov eax, dword [esp + 0xfc]
push eax
call fcn.0043c477
add esp, 4
mov byte [esp + 0x670], 8
cmp dword [esp + 0xb8], esi
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], bl
jb 0x40507c
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.0043c477
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x21c]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00405e10
call fcn.004302c0
add esp, 0x1c
mov edi, 0x10
push str.end...
call fcn.004014e0
mov eax, dword [esp + 0x60]
add esp, 4
cmp eax, ebx
je 0x4050cb
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [esp + 0x60]
cmp esi, ebx
je 0x4050e3
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x64]
call fcn.004024e0
lea esi, [esp + 0x74]
call fcn.00406110
lea esi, [esp + 0x4c]
call fcn.00406110
cmp dword [esp + 0x210], edi
jb 0x405117
mov eax, dword [esp + 0x1fc]
push eax
call fcn.0043c477
add esp, 4
cmp dword [esp + 0x2b8], edi
mov esi, 0xf
mov dword [esp + 0x210], esi
mov dword [esp + 0x20c], ebx
mov byte [esp + 0x1fc], bl
jb 0x40514a
mov ecx, dword [esp + 0x2a4]
push ecx
call fcn.0043c477
add esp, 4
cmp dword [esp + 0x29c], edi
mov dword [esp + 0x2b8], esi
mov dword [esp + 0x2b4], ebx
mov byte [esp + 0x2a4], bl
jb 0x405178
mov edx, dword [esp + 0x288]
push edx
call fcn.0043c477
add esp, 4
mov dword [esp + 0x29c], esi
lea esi, [esp + 0x36c]
mov dword [esp + 0x298], ebx
mov byte [esp + 0x288], bl
call fcn.00405260
cmp dword [esp + 0x22c], edi
jb 0x4051b2
mov eax, dword [esp + 0x218]
push eax
call fcn.0043c477
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x668]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x650]
xor ecx, esp
call fcn.0043c709
mov esp, ebp
pop ebp
ret