Function at 0x4036d0
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 0x45fbd2
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x478354]
xor eax, esp
mov dword [esp + 0x650], eax
push ebx
push esi
push edi
mov eax, dword [0x478354]
xor eax, esp
push eax
lea eax, [esp + 0x668]
mov dword fs:[0], eax
push 0x4031b0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x29
xor edi, edi
push str.d1318ca0_db4a_4847_9bfa_4643086c163e_aa
lea ecx, [esp + 0x21c]
mov dword [esp + 0x234], 0xf
mov dword [esp + 0x230], edi
mov byte [esp + 0x220], 0
call fcn.004056b0
mov dword [esp + 0x670], edi
mov eax, dword [esp + 0x218]
mov esi, 0x10
cmp dword [esp + 0x22c], esi
jae 0x40376d
lea eax, [esp + 0x218]
push eax
push 1
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
cmp eax, edi
mov dword [0x47de84], eax
je 0x403794
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x22c], esi
jmp 0x405366
cmp dword [esp + 0x22c], esi
mov eax, dword [esp + 0x218]
jae 0x4037ab
lea eax, [esp + 0x218]
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x47de84], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4037ee
mov ecx, dword [0x47de84]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x22c], esi
jb 0x405378
mov edx, dword [esp + 0x218]
push edx
jmp 0x405370
push edi
push edi
push 3
push edi
push 3
push 0xc0000000
push str.._KI_Process_Protect__
mov byte [esp + 0x68c], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x20], esi
mov ebx, 4
je 0x403aaa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x1c]
push eax
push edi
push edi
push ebx
lea ecx, [esp + 0x3c]
push ecx
push 0x222004
push esi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0x463f50
call fcn.004014e0
add esp, 4
cmp esi, edi
je 0x403861
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x403260
push edi
push edi
call fcn.0043bc73
add esp, 0x18
lea eax, [esp + 0x36c]
call fcn.004053a0
mov eax, 0xf
mov dword [esp + 0x264], eax
mov dword [esp + 0x260], edi
mov byte [esp + 0x250], 0
mov dword [esp + 0x280], eax
mov dword [esp + 0x27c], edi
mov byte [esp + 0x26c], 0
lea edx, [esp + 0x24c]
push edx
lea ecx, [esp + 0x26c]
mov byte [esp + 0x674], bl
call fcn.0040f230
add esp, 4
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x254]
push eax
lea ecx, [esp + 0x378]
call fcn.00405fd0
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x270]
push ecx
lea ecx, [esp + 0x394]
call fcn.00405fd0
push 1
push 0x463f58
lea ecx, [esp + 0x3ac]
call fcn.004056b0
push edi
push 0x463cd3
lea ecx, [esp + 0x3c8]
call fcn.004056b0
lea esi, [esp + 0x1c0]
call fcn.0040f160
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x404]
mov byte [esp + 0x67c], 5
call fcn.00405fd0
mov byte [esp + 0x670], bl
cmp dword [esp + 0x1d8], 0x10
jb 0x40396c
mov edx, dword [esp + 0x1c4]
push edx
call fcn.0043bef7
add esp, 4
push 1
push 0x463f58
lea ecx, [esp + 0x41c]
call fcn.004056b0
lea esi, [esp + 0x5c]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
call fcn.00430970
push str.start...
call fcn.004014e0
add esp, 4
mov byte [esp + 0x16], 0
mov dword [esp + 0x210], 0xf
mov dword [esp + 0x20c], edi
mov byte [esp + 0x1fc], 0
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
push edi
push edi
push edi
push 0x403650
push edi
push edi
mov byte [esp + 0x688], 9
call fcn.0043bc73
add esp, 0x18
cmp eax, edi
je 0x403c79
push 0x104
xor ebx, ebx
lea eax, [esp + 0x451]
push ebx
push eax
mov byte [esp + 0x458], 0
call fcn.0043e300
add esp, 0xc
push 0x104
lea ecx, [esp + 0x450]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x44c]
push 0x5c
push edx
call fcn.0043be60
mov byte [eax], bl
lea eax, [esp + 0x454]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403a57
sub eax, edx
push eax
lea eax, [esp + 0x450]
push eax
mov ecx, 0x4798e0
call fcn.004056b0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea ecx, [ecx]
call fcn.00408e80
test al, al
jne 0x403abc
push str.0...
call fcn.004014e0
add esp, 4
push 0x3e8
call edi
add esi, 1
cmp esi, 0x3c
jl 0x403a80
jmp 0x403c79
push 0x463f54
call fcn.004014e0
add esp, 4
jmp 0x40385a
push str.1...
call fcn.004014e0
mov esi, 0xf
add esp, 4
mov dword [esp + 0x1bc], esi
mov dword [esp + 0x1b8], ebx
mov byte [esp + 0x1a8], bl
push 9
push str.dkpin.cfg
lea ecx, [esp + 0x1ac]
mov byte [esp + 0x678], 0xa
call fcn.004056b0
mov dword [esp + 0x184], esi
mov dword [esp + 0x180], ebx
mov byte [esp + 0x170], 0
mov dword [esp + 0x1a0], esi
mov dword [esp + 0x19c], ebx
mov byte [esp + 0x18c], 0
lea ecx, [esp + 0x1a4]
push ecx
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0x174]
mov byte [esp + 0x678], 0xb
call fcn.004126d0
add esp, 8
mov byte [esp + 0x670], 0xc
cmp dword [esp + 0xbc], ebx
jne 0x403daf
push 5
push str.LED01
lea ecx, [esp + 0x200]
mov byte [esp + 0x1e], 1
call fcn.004056b0
push 0x13
push str.error:dkpin.cfg_cfg
lea ecx, [esp + 0x438]
call fcn.004056b0
mov edi, 0x10
cmp dword [esp + 0xd8], edi
jb 0x403baf
mov eax, dword [esp + 0xc4]
push eax
call fcn.0043bef7
add esp, 4
cmp dword [esp + 0x1a0], edi
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], 0
jb 0x403bde
mov ecx, dword [esp + 0x18c]
push ecx
call fcn.0043bef7
add esp, 4
cmp dword [esp + 0x184], edi
mov dword [esp + 0x1a0], esi
mov dword [esp + 0x19c], ebx
mov byte [esp + 0x18c], 0
jb 0x403c0d
mov edx, dword [esp + 0x170]
push edx
call fcn.0043bef7
add esp, 4
mov byte [esp + 0x670], 9
cmp dword [esp + 0x1bc], edi
mov dword [esp + 0x184], esi
mov dword [esp + 0x180], ebx
mov byte [esp + 0x170], 0
jb 0x403c44
mov eax, dword [esp + 0x1a8]
push eax
call fcn.0043bef7
add esp, 4
mov ebx, 0xf
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x21c]
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], 0
push eax
mov byte [ecx + 4], 0
call fcn.00405fd0
call fcn.004303a0
add esp, 0x1c
lea ecx, [esp + 0x36c]
push ecx
lea esi, [esp + 0x118]
call fcn.00412a80
mov edi, 0x10
add esp, 4
cmp dword [esp + 0x130], edi
jb 0x403cae
mov edx, dword [esp + 0x11c]
push edx
call fcn.0043bef7
add esp, 4
cmp byte [esp + 0x16], 0
jne 0x405270
mov eax, dword [esp + 0x40]
test eax, eax
je 0x405270
mov ecx, dword [esp + 0x44]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x405270
call fcn.004309c0
push str.r...
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x68]
test eax, eax
je 0x403d2d
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 0x403d2d
lea ecx, [esp + 0x64]
call fcn.00401ce0
lea edx, [esp + 0x64]
push edx
call fcn.004030d0
add esp, 4
mov dword [esp + 0x18], 0
xor ebx, ebx
mov dword [esp + 0x1c], ebx
jmp 0x403d40
mov esi, dword [esp + 0x40]
test esi, esi
je 0x4051a7
mov ecx, dword [esp + 0x44]
mov edi, ecx
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x4051a7
xor edi, edi
test esi, esi
je 0x403d8e
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x403d97
call fcn.0043be4b
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
cmp dword [eax + esi + 0x18], 0x10
jb 0x404fd0
mov esi, dword [eax + esi + 4]
jmp 0x404fd4
push str.2...
call fcn.004014e0
xor ebx, ebx
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 ecx, [esp + 0x1ac]
push ecx
lea ecx, [esp + 0x2c8]
mov byte [esp + 0x67c], 0xd
call fcn.00405fd0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x174]
push edx
lea ecx, [esp + 0x2e4]
call fcn.00405fd0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x190]
push eax
lea ecx, [esp + 0x300]
call fcn.00405fd0
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
lea ecx, [esp + 0xdc]
push ecx
lea edx, [esp + 0x2c0]
push edx
lea edi, [esp + 0x11c]
mov byte [esp + 0x678], 0xe
call fcn.004123f0
add esp, 8
mov byte [esp + 0x670], 0xf
mov ecx, dword [eax]
push 0xffffffffffffffff
push ebx
add eax, 4
mov dword [esp + 0xc4], ecx
push eax
lea ecx, [esp + 0xcc]
call fcn.00405fd0
mov edi, 0x10
mov byte [esp + 0x670], 0xe
cmp dword [esp + 0x130], edi
jb 0x403ed5
mov edx, dword [esp + 0x11c]
push edx
call fcn.0043bef7
add esp, 4
cmp dword [esp + 0xbc], ebx
jne 0x403ff0
push esi
push str.error:dkpin.cfg
lea ecx, [esp + 0x438]
call fcn.004056b0
cmp dword [esp + 0xf4], edi
jb 0x403f0d
mov eax, dword [esp + 0xe0]
push eax
call fcn.0043bef7
add esp, 4
mov edi, 0xf
lea esi, [esp + 0x2bc]
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], 0
call fcn.00405540
mov esi, 0x10
cmp dword [esp + 0xd8], esi
jb 0x403f52
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.0043bef7
add esp, 4
cmp dword [esp + 0x1a0], esi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], 0
jb 0x403f81
mov edx, dword [esp + 0x18c]
push edx
call fcn.0043bef7
add esp, 4
cmp dword [esp + 0x184], esi
mov dword [esp + 0x1a0], edi
mov dword [esp + 0x19c], ebx
mov byte [esp + 0x18c], 0
jb 0x403fb0
mov eax, dword [esp + 0x170]
push eax
call fcn.0043bef7
add esp, 4
mov byte [esp + 0x670], 9
cmp dword [esp + 0x1bc], esi
mov dword [esp + 0x184], edi
mov dword [esp + 0x180], ebx
mov byte [esp + 0x170], 0
jb 0x403c79
mov ecx, dword [esp + 0x1a8]
push ecx
call fcn.0043bef7
add esp, 4
jmp 0x403c79
push str.3...
call fcn.004014e0
add esp, 4
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
lea edx, [esp + 0xdc]
push edx
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x678], 0x10
call fcn.0040d210
test al, al
jne 0x404144
push 0x13
push str.error:package_parse
lea ecx, [esp + 0x438]
call fcn.004056b0
lea ecx, [esp + 0x4c]
push ecx
call fcn.004061c0
cmp dword [esp + 0xf4], edi
jb 0x404061
mov edx, dword [esp + 0xe0]
push edx
call fcn.0043bef7
add esp, 4
mov edi, 0xf
lea esi, [esp + 0x2bc]
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], 0
call fcn.00405540
mov esi, 0x10
cmp dword [esp + 0xd8], esi
jb 0x4040a6
mov eax, dword [esp + 0xc4]
push eax
call fcn.0043bef7
add esp, 4
cmp dword [esp + 0x1a0], esi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], 0
jb 0x4040d5
mov ecx, dword [esp + 0x18c]
push ecx
call fcn.0043bef7
add esp, 4
cmp dword [esp + 0x184], esi
mov dword [esp + 0x1a0], edi
mov dword [esp + 0x19c], ebx
mov byte [esp + 0x18c], 0
jb 0x404104
mov edx, dword [esp + 0x170]
push edx
call fcn.0043bef7
add esp, 4
mov byte [esp + 0x670], 9
cmp dword [esp + 0x1bc], esi
mov dword [esp + 0x184], edi
mov dword [esp + 0x180], ebx
mov byte [esp + 0x170], 0
jb 0x403c79
mov eax, dword [esp + 0x1a8]
push eax
call fcn.0043bef7
add esp, 4
jmp 0x403c79
push 0x104
lea ecx, [esp + 0x559]
push ebx
push ecx
mov byte [esp + 0x560], 0
call fcn.0043e300
add esp, 0xc
push ebx
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], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404193
sub eax, edx
push eax
lea eax, [esp + 0x558]
push eax
lea ecx, [esp + 0x158]
call fcn.004056b0
mov ecx, 0x463cd3
lea eax, [esp + 0x150]
mov byte [esp + 0x670], 0x11
call fcn.004057c0
test eax, eax
jne 0x4042c7
push 0xd
push str.error:deskdir
lea ecx, [esp + 0x438]
call fcn.004056b0
cmp dword [esp + 0x168], edi
jb 0x404200
mov ecx, dword [esp + 0x154]
push ecx
call fcn.0043bef7
add esp, 4
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x16c], esi
mov dword [esp + 0x168], ebx
mov byte [esp + 0x158], 0
call fcn.004061c0
cmp dword [esp + 0xf4], edi
jb 0x404239
mov eax, dword [esp + 0xe0]
push eax
call fcn.0043bef7
add esp, 4
mov edi, 0xf
lea esi, [esp + 0x2bc]
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], 0
call fcn.00405540
cmp dword [esp + 0xd8], 0x10
jb 0x40427a
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.0043bef7
add esp, 4
lea esi, [esp + 0x16c]
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], 0
call fcn.004055c0
mov byte [esp + 0x670], 9
cmp dword [esp + 0x1bc], 0x10
jb 0x403c79
mov edx, dword [esp + 0x1a8]
push edx
call fcn.0043bef7
add esp, 4
jmp 0x403c79
call fcn.0040a7c0
push 1
push 0x463fe4
lea ecx, [esp + 0x41c]
mov dword [esp + 0x20], ebx
call fcn.004056b0
xor esi, esi
mov dword [esp + 0x1c], esi
lea esp, [esp]
mov edi, dword [esp + 0x50]
cmp edi, ebx
je 0x404d77
mov ecx, dword [esp + 0x54]
sub ecx, edi
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x404d77
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], 0
mov eax, esi
imul eax, eax, 0x8c
push 0xffffffffffffffff
mov byte [esp + 0x674], 0x12
mov dword [esp + 0x24], eax
add eax, edi
push ebx
push eax
lea ecx, [esp + 0x104]
call fcn.00405fd0
mov eax, 0xf
mov dword [esp + 0x29c], eax
mov dword [esp + 0x298], ebx
mov byte [esp + 0x288], 0
mov dword [esp + 0x2b8], eax
mov dword [esp + 0x2b4], ebx
mov byte [esp + 0x2a4], 0
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x118]
push ecx
lea ecx, [esp + 0x28c]
mov byte [esp + 0x678], 0x13
call fcn.004126d0
add esp, 8
cmp dword [esp + 0x114], ebx
jne 0x40444f
mov edi, 0x10
cmp dword [esp + 0x130], edi
jb 0x4043e0
mov edx, dword [esp + 0x11c]
push edx
call fcn.0043bef7
add esp, 4
lea esi, [esp + 0x284]
mov dword [esp + 0x130], 0xf
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], 0
call fcn.004055c0
mov byte [esp + 0x670], 0x11
cmp dword [esp + 0x110], edi
jb 0x404427
mov eax, dword [esp + 0xfc]
push eax
call fcn.0043bef7
add esp, 4
push str.4.1...
call fcn.004014e0
add esp, 4
cmp byte [esp + 0x16], 0
jne 0x404d77
add dword [esp + 0x1c], 1
mov esi, dword [esp + 0x1c]
xor ebx, ebx
jmp 0x4042f0
mov esi, 0xf
mov dword [esp + 0x32c], esi
mov dword [esp + 0x328], ebx
mov byte [esp + 0x318], 0
mov dword [esp + 0x348], esi
mov dword [esp + 0x344], ebx
mov byte [esp + 0x334], 0
mov dword [esp + 0x364], esi
mov dword [esp + 0x360], ebx
mov byte [esp + 0x350], 0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x100]
push ecx
lea ecx, [esp + 0x320]
mov byte [esp + 0x67c], 0x15
call fcn.00405fd0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x28c]
push edx
lea ecx, [esp + 0x33c]
call fcn.00405fd0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x2a8]
push eax
lea ecx, [esp + 0x358]
call fcn.00405fd0
mov dword [esp + 0x14c], esi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], 0
lea ecx, [esp + 0x134]
push ecx
lea edx, [esp + 0x318]
push edx
lea edi, [esp + 0x1c8]
mov byte [esp + 0x678], 0x16
call fcn.004123f0
add esp, 8
mov byte [esp + 0x670], 0x17
mov ecx, dword [eax]
push 0xffffffffffffffff
push ebx
add eax, 4
mov dword [esp + 0x11c], ecx
push eax
lea ecx, [esp + 0x124]
call fcn.00405fd0
mov esi, 0x10
cmp dword [esp + 0x1dc], esi
jb 0x404562
mov edx, dword [esp + 0x1c8]
push edx
call fcn.0043bef7
add esp, 4
cmp dword [esp + 0x114], ebx
jne 0x40460e
cmp dword [esp + 0x14c], esi
jb 0x404588
mov eax, dword [esp + 0x138]
push eax
call fcn.0043bef7
add esp, 4
mov edi, 0xf
lea esi, [esp + 0x314]
mov dword [esp + 0x14c], edi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], 0
call fcn.00405540
cmp dword [esp + 0x130], 0x10
jb 0x4045c9
mov ecx, dword [esp + 0x11c]
push ecx
call fcn.0043bef7
add esp, 4
lea esi, [esp + 0x284]
mov dword [esp + 0x130], edi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], 0
call fcn.004055c0
mov byte [esp + 0x670], 0x11
cmp dword [esp + 0x110], 0x10
jb 0x404427
mov edx, dword [esp + 0xfc]
push edx
jmp 0x40441f
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x670], 0x18
cmp dword [esp + 0x14c], esi
mov eax, dword [esp + 0x138]
jae 0x404639
lea eax, [esp + 0x138]
mov edx, dword [esp + 0x148]
push eax
lea ecx, [esp + 0x30]
call fcn.0040ec20
add esp, 4
test al, al
jne 0x4046f5
lea esi, [esp + 0x2c]
call fcn.00405e30
mov edi, 0x10
cmp dword [esp + 0x14c], edi
jb 0x40467c
mov eax, dword [esp + 0x138]
push eax
call fcn.0043bef7
add esp, 4
lea esi, [esp + 0x314]
mov dword [esp + 0x14c], 0xf
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], 0
call fcn.00405540
cmp dword [esp + 0x130], edi
jb 0x4046bb
mov ecx, dword [esp + 0x11c]
push ecx
call fcn.0043bef7
add esp, 4
lea esi, [esp + 0x284]
mov dword [esp + 0x130], 0xf
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], 0
call fcn.004055c0
mov byte [esp + 0x670], 0x11
cmp dword [esp + 0x110], edi
jmp 0x4045fb
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x17], 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
cmp ecx, ebx
je 0x404c16
mov esi, dword [esp + 0x34]
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 + 0x24], eax
jae 0x404bf4
mov edi, dword [esp + 0x24]
cmp edi, eax
jb 0x404742
call fcn.0043be4b
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
test byte [ebx + ecx + 0x1c], 0x10
je 0x40489c
test ecx, ecx
je 0x404772
mov esi, dword [esp + 0x34]
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 0x40477b
call fcn.0043be4b
mov ecx, dword [esp + 0x30]
cmp dword [ebx + ecx + 0x18], 8
jb 0x404788
mov ecx, dword [ebx + ecx + 4]
jmp 0x40478c
lea ecx, [ebx + ecx + 4]
push ecx
lea edi, [esp + 0xa4]
call fcn.0041d170
add esp, 4
mov ebx, eax
lea eax, [esp + 0x150]
push eax
mov edi, 0x463fe8
lea esi, [esp + 0x234]
mov byte [esp + 0x674], 0x19
call fcn.00407660
add esp, 4
push ebx
push eax
lea edi, [esp + 0x1c8]
mov byte [esp + 0x678], 0x1a
call fcn.00407710
add esp, 8
cmp dword [esp + 0x248], 0x10
jb 0x4047f5
mov ecx, dword [esp + 0x234]
push ecx
call fcn.0043bef7
add esp, 4
mov edi, 0xf
xor esi, esi
mov dword [esp + 0x248], edi
mov dword [esp + 0x244], esi
mov byte [esp + 0x234], 0
mov ebx, 0x10
mov byte [esp + 0x670], 0x1d
cmp dword [esp + 0xb8], ebx
jb 0x404838
mov edx, dword [esp + 0xa4]
push edx
call fcn.0043bef7
add esp, 4
mov dword [esp + 0xb4], esi
lea esi, [esp + 0x1c0]
mov dword [esp + 0xb8], edi
mov byte [esp + 0xa4], 0
call fcn.0040b960
test al, al
jne 0x40487a
push 5
push str.LED01
lea ecx, [esp + 0x200]
mov byte [esp + 0x1f], al
mov byte [esp + 0x1e], 1
call fcn.004056b0
mov byte [esp + 0x670], 0x18
cmp dword [esp + 0x1d8], ebx
jb 0x404bd8
mov eax, dword [esp + 0x1c4]
push eax
jmp 0x404bd0
test ecx, ecx
je 0x4048bd
mov esi, dword [esp + 0x34]
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 0x4048c6
call fcn.0043be4b
mov ecx, dword [esp + 0x30]
test byte [ebx + ecx + 0x1c], 0x20
je 0x404bdc
mov edi, dword [esp + 0x24]
lea esi, [esp + 0x2c]
call fcn.00405ea0
cmp dword [eax + 0x18], 8
jb 0x4048e9
mov eax, dword [eax + 4]
jmp 0x4048ec
add eax, 4
push eax
lea edi, [esp + 0x1c4]
call fcn.0041d170
add esp, 4
mov ebx, eax
lea ecx, [esp + 0x150]
push ecx
mov edi, 0x463fe8
lea esi, [esp + 0x88]
mov byte [esp + 0x674], 0x1e
call fcn.00407660
add esp, 4
push ebx
push eax
lea edi, [esp + 0x238]
mov byte [esp + 0x678], 0x1f
call fcn.00407710
add esp, 8
cmp dword [esp + 0x9c], 0x10
jb 0x404955
mov edx, dword [esp + 0x88]
push edx
call fcn.0043bef7
add esp, 4
mov edi, 0xf
xor esi, esi
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], esi
mov byte [esp + 0x88], 0
mov byte [esp + 0x670], 0x22
cmp dword [esp + 0x1d8], 0x10
jb 0x404994
mov eax, dword [esp + 0x1c4]
push eax
call fcn.0043bef7
add esp, 4
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x238]
push ecx
lea ecx, [esp + 0xac]
mov dword [esp + 0x1e4], edi
mov dword [esp + 0x1e0], esi
mov byte [esp + 0x1d0], 0
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], esi
mov byte [esp + 0xb0], 0
call fcn.00405fd0
mov edi, dword [esp + 0x24]
lea esi, [esp + 0x2c]
mov byte [esp + 0x670], 0x23
call fcn.00405ea0
add eax, 0x20
push eax
lea esi, [esp + 0x234]
call fcn.0040b9c0
add esp, 4
test al, al
jne 0x404a29
push 7
push str.LED01_1
lea ecx, [esp + 0x200]
mov byte [esp + 0x1f], al
mov byte [esp + 0x1e], 1
call fcn.004056b0
xor edi, edi
lea ebx, [edi + 0x10]
jmp 0x404b84
lea edx, [esp + 0x230]
push edx
lea esi, [esp + 0x40]
call fcn.004058c0
lea esi, [esp + 0x2c]
call fcn.00405ea0
mov ebx, dword [eax + 0x34]
add eax, 0x20
call fcn.00405ea0
add eax, 0x20
cmp dword [eax + 0x18], 0x10
jb 0x404a5c
mov eax, dword [eax + 4]
jmp 0x404a5f
add eax, 4
push eax
mov ecx, ebx
lea esi, [esp + 0x1c4]
call fcn.0040ea90
add esp, 4
push eax
lea esi, [esp + 0x78]
mov byte [esp + 0x674], 0x24
call fcn.004058c0
mov ebx, 0x10
cmp dword [esp + 0x1d8], ebx
jb 0x404aa1
mov eax, dword [esp + 0x1c4]
push eax
call fcn.0043bef7
add esp, 4
cmp dword [esp + 0xb8], ebx
mov eax, dword [esp + 0xa4]
jae 0x404ab8
lea eax, [esp + 0xa4]
push 0x5c
push eax
call fcn.0043be60
add esp, 8
cmp dword [esp + 0xb8], ebx
mov esi, eax
mov eax, dword [esp + 0xa4]
jae 0x404adc
lea eax, [esp + 0xa4]
push 0x2e
push eax
call fcn.0043be60
xor edi, edi
add esp, 8
cmp esi, edi
je 0x404b84
cmp eax, edi
je 0x404b84
cmp eax, esi
jbe 0x404b84
mov ecx, 0xf
mov dword [esp + 0x1d8], ecx
mov dword [esp + 0x1d4], edi
mov byte [esp + 0x1c4], 0
mov dword [esp + 0x1f4], ecx
mov dword [esp + 0x1f0], edi
mov byte [esp + 0x1e0], 0
sub eax, esi
sub eax, 1
push eax
add esi, 1
push esi
lea ecx, [esp + 0x1c8]
mov byte [esp + 0x678], 0x25
call fcn.004056b0
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x238]
push ecx
lea ecx, [esp + 0x1e8]
call fcn.00405fd0
lea edx, [esp + 0x1c0]
push edx
lea esi, [esp + 0x68]
call fcn.00405c90
lea esi, [esp + 0x1c0]
call fcn.004055c0
cmp dword [esp + 0xb8], ebx
jb 0x404b9d
mov eax, dword [esp + 0xa4]
push eax
call fcn.0043bef7
add esp, 4
mov byte [esp + 0x670], 0x18
cmp dword [esp + 0x248], ebx
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], edi
mov byte [esp + 0xa4], 0
jb 0x404bd8
mov ecx, dword [esp + 0x234]
push ecx
call fcn.0043bef7
add esp, 4
mov ecx, dword [esp + 0x30]
cmp byte [esp + 0x17], 0
je 0x404bf4
add dword [esp + 0x24], 1
add dword [esp + 0x28], 0x3c
xor ebx, ebx
jmp 0x404706
test ecx, ecx
je 0x404c16
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
push edx
push eax
mov eax, ecx
call fcn.00408010
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0043bef7
add esp, 0xc
xor ebx, ebx
cmp dword [esp + 0x14c], 0x10
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
jb 0x404c3e
mov edx, dword [esp + 0x138]
push edx
call fcn.0043bef7
add esp, 4
mov edi, 0xf
lea esi, [esp + 0x314]
mov dword [esp + 0x14c], edi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], 0
call fcn.00405540
cmp dword [esp + 0x130], 0x10
jb 0x404c7f
mov eax, dword [esp + 0x11c]
push eax
call fcn.0043bef7
add esp, 4
lea esi, [esp + 0x284]
mov dword [esp + 0x130], edi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], 0
call fcn.004055c0
mov byte [esp + 0x670], 0x11
cmp dword [esp + 0x110], 0x10
jb 0x404cc3
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.0043bef7
add esp, 4
cmp byte [esp + 0x17], 0
je 0x404427
push str.4.0...
call fcn.004014e0
mov esi, dword [esp + 0x54]
add esp, 4
cmp esi, ebx
je 0x404d02
mov ecx, dword [esp + 0x54]
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 + 0x1c], eax
jb 0x404d0b
call fcn.0043be4b
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x20]
lea eax, [esi + edx + 0x38]
push eax
mov ecx, 0x463ffc
lea edi, [esp + 0x1c4]
call fcn.004077c0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea esi, [esp + 0x43c]
mov byte [esp + 0x67c], 0x26
call fcn.00406510
mov byte [esp + 0x670], 0x11
cmp dword [esp + 0x1d8], 0x10
jb 0x404d62
mov ecx, dword [esp + 0x1c4]
push ecx
call fcn.0043bef7
add esp, 4
add dword [esp + 0x1c], 1
add dword [esp + 0x18], 1
mov esi, dword [esp + 0x1c]
xor ebx, ebx
jmp 0x4042f0
lea edx, [esp + 0x3c]
push edx
call fcn.00409d70
add esp, 4
cmp byte [esp + 0x16], 0
je 0x404ed8
push 1
push 0x463f58
lea ecx, [esp + 0x41c]
call fcn.004056b0
lea eax, [esp + 0x1f8]
push eax
mov ecx, str.fatalerror:
lea edi, [esp + 0x1c4]
call fcn.004077c0
add esp, 4
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
lea ecx, [esp + 0x43c]
mov byte [esp + 0x67c], 0x27
call fcn.00405fd0
mov edi, 0x10
cmp dword [esp + 0x1d8], edi
jb 0x404df6
mov ecx, dword [esp + 0x1c4]
push ecx
call fcn.0043bef7
add esp, 4
cmp dword [esp + 0x168], edi
jb 0x404e0f
mov edx, dword [esp + 0x154]
push edx
call fcn.0043bef7
add esp, 4
lea eax, [esp + 0x4c]
mov ebx, 0xf
push eax
mov dword [esp + 0x16c], ebx
mov dword [esp + 0x168], esi
mov byte [esp + 0x158], 0
call fcn.004061c0
cmp dword [esp + 0xf4], edi
jb 0x404e4d
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.0043bef7
add esp, 4
mov dword [esp + 0xf0], esi
lea esi, [esp + 0x2bc]
mov dword [esp + 0xf4], ebx
mov byte [esp + 0xe0], 0
call fcn.00405540
cmp dword [esp + 0xd8], edi
jb 0x404e88
mov edx, dword [esp + 0xc4]
push edx
call fcn.0043bef7
add esp, 4
lea esi, [esp + 0x16c]
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xd4], 0
mov byte [esp + 0xc4], 0
call fcn.004055c0
mov byte [esp + 0x670], 9
cmp dword [esp + 0x1bc], edi
jb 0x403c49
mov eax, dword [esp + 0x1a8]
push eax
call fcn.0043bef7
add esp, 4
jmp 0x403c49
xor esi, esi
cmp dword [esp + 0x18], esi
jle 0x404ef2
push esi
push esi
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 0x404f1d
mov ecx, dword [esp + 0x154]
push ecx
call fcn.0043bef7
add esp, 4
lea edx, [esp + 0x4c]
mov ebx, 0xf
push edx
mov dword [esp + 0x16c], ebx
mov dword [esp + 0x168], esi
mov byte [esp + 0x158], 0
call fcn.004061c0
cmp dword [esp + 0xf4], edi
jb 0x404f5b
mov eax, dword [esp + 0xe0]
push eax
call fcn.0043bef7
add esp, 4
mov dword [esp + 0xf0], esi
lea esi, [esp + 0x2bc]
mov dword [esp + 0xf4], ebx
mov byte [esp + 0xe0], 0
call fcn.00405540
cmp dword [esp + 0xd8], edi
jb 0x404f96
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.0043bef7
add esp, 4
lea esi, [esp + 0x16c]
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xd4], 0
mov byte [esp + 0xc4], 0
call fcn.004055c0
mov byte [esp + 0x670], 9
cmp dword [esp + 0x1bc], edi
jmp 0x4042ac
lea esi, [eax + esi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404fe4
test al, 2
je 0x405008
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 1
cmp edi, 0xa
jge 0x4051b7
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
jmp 0x403d71
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x40501a
cmp eax, 0xa
jne 0x405195
xor edi, edi
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], edi
mov byte [esp + 0xa4], 0
mov byte [esp + 0x670], 0x28
mov edi, edi
mov esi, dword [esp + 0x40]
test esi, esi
lea eax, [esp + 0xa0]
push eax
je 0x40506d
mov ecx, dword [esp + 0x48]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x405076
call fcn.0043be4b
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x20]
cmp dword [eax + esi + 0x18], 0x10
jb 0x405087
mov esi, dword [eax + esi + 4]
jmp 0x40508b
lea esi, [eax + esi + 4]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push esi
call fcn.00405610
call fcn.0040efe0
add esp, 0x20
cmp dword [esp + 0xb4], 0
ja 0x4050bf
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 1
cmp edi, 0xa
jl 0x405040
cmp dword [esp + 0xb8], 0x10
mov eax, dword [esp + 0xa4]
jae 0x4050d7
lea eax, [esp + 0xa4]
mov ecx, dword [esp + 0xb4]
push eax
lea esi, [esp + 0xfc]
call fcn.0040ea90
add esp, 4
mov edi, ebx
lea esi, [esp + 0x74]
mov byte [esp + 0x670], 0x29
call fcn.00405880
cmp dword [eax + 0x18], 0x10
jb 0x40510c
mov eax, dword [eax + 4]
jmp 0x40510f
add eax, 4
mov ecx, dword [esp + 0xfc]
mov esi, 0x10
cmp dword [esp + 0x110], esi
jae 0x40512b
lea ecx, [esp + 0xfc]
push eax
push ecx
call fcn.0045328b
add esp, 8
test eax, eax
jne 0x4051cc
cmp dword [esp + 0x110], esi
jb 0x405156
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.0043bef7
add esp, 4
mov byte [esp + 0x670], 9
cmp dword [esp + 0xb8], esi
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], 0
mov byte [esp + 0xfc], 0
jb 0x405195
mov edx, dword [esp + 0xa4]
push edx
call fcn.0043bef7
add esp, 4
add dword [esp + 0x18], 1
add ebx, 1
add dword [esp + 0x1c], 0x1c
jmp 0x403d40
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403d35
push 5
push str.LED01
lea ecx, [esp + 0x200]
call fcn.004056b0
jmp 0x405237
push 5
push str.LED02
lea ecx, [esp + 0x200]
call fcn.004056b0
cmp dword [esp + 0x110], esi
jb 0x4051f8
mov eax, dword [esp + 0xfc]
push eax
call fcn.0043bef7
add esp, 4
mov byte [esp + 0x670], 9
cmp dword [esp + 0xb8], esi
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], 0
mov byte [esp + 0xfc], 0
jb 0x405237
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.0043bef7
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x21c]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push edx
mov byte [ecx + 4], 0
call fcn.00405fd0
call fcn.004303a0
add esp, 0x1c
mov edi, 0x10
push str.end...
call fcn.004014e0
mov eax, dword [esp + 0x60]
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x40528e
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [esp + 0x60]
cmp esi, ebx
je 0x4052a6
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.004024b0
lea esi, [esp + 0x74]
call fcn.004062d0
lea esi, [esp + 0x3c]
call fcn.004062d0
cmp dword [esp + 0x210], edi
jb 0x4052da
mov eax, dword [esp + 0x1fc]
push eax
call fcn.0043bef7
add esp, 4
cmp dword [esp + 0x280], edi
mov esi, 0xf
mov dword [esp + 0x210], esi
mov dword [esp + 0x20c], ebx
mov byte [esp + 0x1fc], 0
jb 0x40530e
mov ecx, dword [esp + 0x26c]
push ecx
call fcn.0043bef7
add esp, 4
cmp dword [esp + 0x264], edi
mov dword [esp + 0x280], esi
mov dword [esp + 0x27c], ebx
mov byte [esp + 0x26c], 0
jb 0x40533d
mov edx, dword [esp + 0x250]
push edx
call fcn.0043bef7
add esp, 4
mov dword [esp + 0x264], esi
lea esi, [esp + 0x36c]
mov dword [esp + 0x260], ebx
mov byte [esp + 0x250], 0
call fcn.00405420
cmp dword [esp + 0x22c], edi
jb 0x405378
mov eax, dword [esp + 0x218]
push eax
call fcn.0043bef7
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.0043b82a
mov esp, ebp
pop ebp
ret