Function at 0x40d460
Capabilities:
Check mutex on windows
Copy file
Delete file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4297b0
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x4371bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0xf0], eax
xor edi, edi
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x104], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xd4], 7
mov dword [ebp - 0xd8], ecx
mov word [ebp - 0xe8], cx
xor ebx, ebx
mov byte [ebp - 4], 1
cmp dword [ebp + 8], ebx
jle 0x40d600
nop
mov edx, dword [eax + ebx*4]
test edx, edx
je 0x40d5f6
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x40d508
xor ecx, ecx
jmp 0x40d525
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d510
sub ecx, esi
mov esi, dword [ebp - 0x10c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040e3b0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
cmp eax, edi
jae 0x40d593
cmp esi, eax
ja 0x40d593
mov ecx, eax
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, dword [ebp - 0x110]
jne 0x40d579
push ecx
lea ecx, [ebp - 0x10c]
call fcn.0040e6c0
mov eax, dword [ebp - 0x104]
mov edi, dword [ebp - 0x108]
mov dword [ebp - 0x110], eax
lea eax, [esi + esi*2]
mov esi, dword [ebp - 0x10c]
lea eax, [esi + eax*8]
test edi, edi
je 0x40d5ce
push eax
mov ecx, edi
call fcn.0040e4b0
jmp 0x40d5ce
cmp edi, dword [ebp - 0x110]
jne 0x40d5b9
push ecx
lea ecx, [ebp - 0x10c]
call fcn.0040e6c0
mov eax, dword [ebp - 0x104]
mov edi, dword [ebp - 0x108]
mov dword [ebp - 0x110], eax
test edi, edi
je 0x40d5c8
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040e4b0
mov esi, dword [ebp - 0x10c]
add edi, 0x18
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x108], edi
cmp eax, 8
jb 0x40d5f0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040eb50
mov eax, dword [ebp - 0xf0]
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x40d4e0
mov ecx, edi
mov eax, 0x2aaaaaab
sub ecx, esi
xor ebx, ebx
imul ecx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
mov dword [ebp - 0xf0], esi
je 0x40d68d
mov esi, dword [ebp - 0x10c]
mov edi, dword [ebp - 0xf0]
nop dword [eax + eax]
mov ecx, esi
call fcn.0040f3a0
mov ecx, eax
call fcn.0040f320
push ecx
mov edx, esi
lea ecx, [ebp - 0x58]
call fcn.0040f250
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 3
call fcn.0040edb0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x40d679
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0040eb50
inc ebx
add esi, 0x18
cmp ebx, edi
jb 0x40d630
mov edi, dword [ebp - 0x108]
mov esi, dword [ebp - 0xf0]
mov byte [ebp - 0xf5], 0
mov ebx, 2
mov dword [ebp - 0xf0], ebx
cmp esi, 1
jbe 0x40e29a
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
call fcn.0040f1b0
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.0040c950
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
mov edx, eax
push str._special.txt
call fcn.00402000
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.0040cca0
mov byte [ebp - 4], 4
add esp, 0x18
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x40d712
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00401d00
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xfc], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x40d743
mov eax, dword [ecx]
jmp 0x40d745
mov eax, ecx
push 0x13
push str.XunYouNetHelper.exe
mov byte [eax], 0
call fcn.00401710
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0xf4], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x40d789
mov eax, dword [ecx]
jmp 0x40d78b
mov eax, ecx
push 0xe
push str.start_exe_name
mov byte [eax], 0
call fcn.00401710
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x40d7c9
mov eax, dword [ecx]
jmp 0x40d7cb
mov eax, ecx
push 7
push str.special
mov byte [eax], 0
call fcn.00401710
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x118]
call fcn.00403260
mov byte [ebp - 4], 8
mov ebx, dword [ebp - 0x10c]
add ebx, 0x18
mov dword [ebp - 0xf4], ebx
cmp dword [ebx + 0x14], 8
jb 0x40d80d
mov eax, dword [ebx]
jmp 0x40d80f
mov eax, ebx
push str.restart
push eax
call fcn.0041826c
add esp, 8
test eax, eax
jne 0x40dae8
lea ecx, [ebp - 0x58]
call fcn.0040c950
mov esi, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
push 1
push 0x432dd8
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00401710
push esi
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xb8]
call fcn.0040b960
push 0x432ddc
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xa0]
call fcn.00402000
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xc
push ecx
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.00403980
push 0x432dd8
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x40]
call fcn.00402000
add esp, 0x10
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x40d8c6
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00401d00
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x40d8f9
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00401d00
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
mov eax, dword [ebp - 0xa4]
cmp eax, 0x10
jb 0x40d932
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.00401d00
mov dword [ebp - 0xa4], 0xf
mov dword [ebp - 0xa8], 0
mov byte [ebp - 0xb8], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40d962
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401d00
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x40d98d
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00401d00
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.0040c950
sub esp, 0x18
mov byte [ebp - 4], 0x14
mov ecx, esp
mov edx, eax
push str._tmpdelfiles.txt
call fcn.00402000
add esp, 4
call fcn.00407c60
mov eax, dword [ebp - 0x5c]
add esp, 0x18
cmp eax, 0x10
jb 0x40d9dc
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00401d00
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x100], esp
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x40da0b
mov eax, dword [eax]
mov byte [eax], 0
push 0
sub esp, 0x18
mov byte [ebp - 4], 0x15
mov ecx, esp
mov esi, 0xa
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x40da44
mov eax, dword [ecx]
jmp 0x40da46
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00401a00
mov edx, esi
mov byte [ebp - 4], 0x13
call fcn.0040c5f0
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x34
xor edx, edx
mov ecx, 0x64
test al, al
lea eax, [ebp - 0x40]
cmovne ecx, edx
cmp dword [ebp - 0x2c], 0x10
movzx ebx, cx
cmovae eax, dword [ebp - 0x40]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.00406600
cmp dword [eax + 0x14], 0x10
jb 0x40da9f
mov eax, dword [eax]
push eax
call esi
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x40dab7
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00401d00
mov ecx, 0x432df4
test bx, bx
mov eax, 0x432de0
cmovne eax, ecx
push eax
call esi
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40e21a
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00401d00
jmp 0x40e21a
cmp dword [ebx + 0x14], 8
jb 0x40daf0
mov ebx, dword [ebx]
push str.download
push ebx
call fcn.0041826c
add esp, 8
test eax, eax
jne 0x40dcdd
push 0x432cf0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [ebp - 0x120], ebx
test ebx, ebx
je 0x40db31
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40db31
xor cl, cl
jmp 0x40db33
mov cl, 1
mov byte [ebp - 0x11c], cl
mov byte [ebp - 4], 0x16
test cl, cl
jne 0x40dcb1
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], cl
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x70]
mov dword [ebp - 0xf4], 0x50
mov dword [ebp - 0xfc], 0
call fcn.0040c950
sub esp, 0x18
mov byte [ebp - 4], 0x18
mov ecx, esp
mov edx, eax
push str._tmpdelfiles.txt
call fcn.00402000
add esp, 4
call fcn.00407c60
mov byte [ebp - 4], 0x17
add esp, 0x18
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x40dbaf
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00401d00
lea edx, [ebp - 0xf4]
lea ecx, [ebp - 0x40]
call fcn.004072f0
push 0xffffffffffffffff
push dword [ebp - 0xf4]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x100], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x40dbf6
mov eax, dword [ecx]
jmp 0x40dbf8
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00401a00
push 0x40d280
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x19
call fcn.0040c950
sub esp, 0x18
mov byte [ebp - 4], 0x1a
mov ecx, esp
mov edx, eax
push str.update.dll
call fcn.00402000
add esp, 4
mov edx, 0x40d2a0
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0xfc]
call fcn.00408170
mov byte [ebp - 0xe9], al
add esp, 0x3c
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x40dc63
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00401d00
cmp byte [ebp - 0xe9], 0
je 0x40dc8f
mov esi, dword [ebp - 0xfc]
push 0xffffffffffffffff
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
mov byte [ebp - 0xf5], 1
jmp 0x40dc9a
mov eax, 0xa
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40dcc7
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00401d00
jmp 0x40dcc7
mov eax, 0xb
push 0x432e28
mov dword [ebp - 0xf0], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test ebx, ebx
je 0x40dcd2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0xf0]
jmp 0x40e21a
cmp esi, 2
jbe 0x40e215
lea ecx, [ebp - 0x88]
call fcn.0040c950
xor bl, bl
mov byte [ebp - 4], 0x1c
push 0x3e8
mov byte [ebp - 0xe9], bl
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 1
jbe 0x40dfb8
mov edi, dword [ebp - 0xf4]
dec esi
mov dword [ebp - 0xfc], esi
nop
cmp dword [edi + 0x14], 8
jb 0x40dd2a
mov eax, dword [edi]
jmp 0x40dd2c
mov eax, edi
push str.restart
push eax
call fcn.0041826c
add esp, 8
test eax, eax
jne 0x40dd4b
mov bl, 1
mov byte [ebp - 0xe9], bl
jmp 0x40dfa2
cmp dword [edi + 0x14], 8
jb 0x40dd55
mov ebx, dword [edi]
jmp 0x40dd57
mov ebx, edi
test ebx, ebx
je 0x40ddb3
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dd60
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x40ddb3
lea eax, [ecx + ecx]
mov dword [ebp - 0xf4], eax
call fcn.00411200
mov esi, esp
test esi, esi
je 0x40ddb3
push 0
push 0
push dword [ebp - 0xf4]
mov byte [esi], 0
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x40ddb5
xor esi, esi
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp byte [esi], 0
jne 0x40ddd0
xor ecx, ecx
jmp 0x40ddde
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ddd5
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00401710
push 0x432ddc
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x70]
call fcn.00403870
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x1e
push ecx
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.00403980
push 0x432cec
mov edx, eax
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x28]
call fcn.00402000
mov eax, dword [ebp - 0x44]
add esp, 0xc
cmp eax, 0x10
jb 0x40de3c
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00401d00
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x40de63
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00401d00
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.004064c0
test al, al
je 0x40df5c
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
test esi, esi
je 0x40deda
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40de90
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0xf4], eax
cmp eax, 0x3fffffff
jg 0x40deda
add eax, eax
call fcn.00411200
mov ebx, esp
test ebx, ebx
je 0x40deda
push dword [ebp - 0xf4]
xor eax, eax
push ebx
push 0xffffffffffffffff
push esi
push eax
push 0x3a8
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove ebx, ecx
jmp 0x40dedc
xor ebx, ebx
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 0xf0], eax
test eax, eax
je 0x40df45
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40def6
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0xf4], eax
cmp eax, 0x3fffffff
jg 0x40df45
add eax, eax
call fcn.00411200
mov esi, esp
test esi, esi
je 0x40df45
push dword [ebp - 0xf4]
xor eax, eax
push esi
push 0xffffffffffffffff
push dword [ebp - 0xf0]
mov word [esi], ax
push eax
push 0x3a8
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x40df47
xor esi, esi
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40df5c
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40df71
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401d00
mov byte [ebp - 4], 0x1c
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x40df9c
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00401d00
mov bl, byte [ebp - 0xe9]
add edi, 0x18
sub dword [ebp - 0xfc], 1
jne 0x40dd20
mov edi, dword [ebp - 0x108]
push str._verinfo_.ini
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x70]
call fcn.00403870
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40dfd6
mov eax, dword [eax]
mov ecx, eax
call fcn.00406550
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x40dff2
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00401d00
push str.StartCommond.txt
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x70]
call fcn.00403870
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40e010
mov eax, dword [eax]
mov ecx, eax
call fcn.00406550
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x40e02c
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00401d00
test bl, bl
je 0x40e1fa
push 1
push 0x432dd8
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00401710
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x20
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0xa0]
call fcn.00403980
push 0x432ddc
mov edx, eax
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0xb8]
call fcn.00402000
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0x22
push ecx
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.00403980
push 0x432dd8
mov edx, eax
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x28]
call fcn.00402000
add esp, 0x10
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x40e0c4
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00401d00
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov eax, dword [ebp - 0xa4]
cmp eax, 0x10
jb 0x40e0f4
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.00401d00
mov dword [ebp - 0xa4], 0xf
mov dword [ebp - 0xa8], 0
mov byte [ebp - 0xb8], 0
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x40e12d
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00401d00
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40e15d
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00401d00
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x100], esp
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x40e18c
mov eax, dword [eax]
mov byte [eax], 0
push 0
sub esp, 0x18
mov byte [ebp - 4], 0x29
mov ecx, esp
mov esi, 0xa
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x40e1c5
mov eax, dword [ecx]
jmp 0x40e1c7
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00401a00
mov edx, esi
mov byte [ebp - 4], 0x28
call fcn.0040c5f0
mov eax, dword [ebp - 0x14]
add esp, 0x34
cmp eax, 0x10
jb 0x40e1fa
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401d00
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x40e215
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00401d00
mov ebx, 2
mov eax, dword [ebp - 0xbc]
cmp eax, 0x10
jb 0x40e238
inc eax
lea ecx, [ebp - 0xd0]
push eax
push dword [ebp - 0xd0]
call fcn.00401d00
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x118]
push eax
mov dword [ebp - 0xbc], 0xf
mov dword [ebp - 0xc0], 0
mov byte [ebp - 0xd0], 0
push dword [eax]
lea eax, [ebp - 0x100]
push eax
call fcn.0040ea60
push dword [ebp - 0x118]
call fcn.004107cf
add esp, 4
cmp byte [ebp - 0xf5], 0
je 0x40e29a
movzx esi, word [0x437a10]
movzx eax, word [0x438ed8]
shl esi, 0x10
or esi, eax
jmp 0x40e2a0
movzx esi, bx
shl esi, 0x10
mov eax, dword [ebp - 0xd4]
cmp eax, 8
jb 0x40e2be
inc eax
lea ecx, [ebp - 0xe8]
push eax
push dword [ebp - 0xe8]
call fcn.0040eb50
mov ebx, dword [ebp - 0x10c]
test ebx, ebx
je 0x40e2fb
push dword [ebp - 0x100]
mov edx, edi
push ecx
mov ecx, ebx
call fcn.0040f4f0
mov ecx, dword [ebp - 0x110]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 8
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
push ebx
call fcn.0040a550
mov eax, esi
lea esp, [ebp - 0x130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004107d4
mov esp, ebp
pop ebp
ret