Function at 0x40ddd0
Capabilities:
Accept command line arguments
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4703bc
mov eax, dword fs:[0]
push eax
sub esp, 0x8c8
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x8b0], edi
mov eax, dword fs:[0x2c]
xor ebx, ebx
mov dword [ebp - 0x8b8], edi
mov dword [ebp - 0x8a8], ebx
mov ecx, dword [eax]
mov eax, dword [0x49ca60]
cmp eax, dword [ecx + 4]
jle 0x40de68
push 0x49ca60
call fcn.0044b33a
add esp, 4
cmp dword [0x49ca60], 0xffffffff
jne 0x40de68
mov dword [ebp - 4], ebx
call fcn.004197d0
push 0x473f90
call fcn.0044b6ae
push 0x49ca60
mov dword [ebp - 4], 0xffffffff
call fcn.0044b2fb
add esp, 8
mov eax, dword [0x49ca68]
mov ecx, 0x49ca68
call dword [eax + 0x2c]
test eax, eax
je 0x40df37
push dword [edi + 0x48]
lea ecx, [ebp - 0x8a0]
call fcn.00401ff0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x8a0]
cmp dword [eax - 0xc], 0
jl 0x40df0a
push 0x48690c
push eax
call fcn.0044e917
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x8a0]
test ecx, ecx
je 0x40dec1
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x40deea
cmp dword [eax - 0xc], 0
jl 0x40df0a
push 0x486914
push eax
call fcn.0044e917
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x8a0]
test ecx, ecx
je 0x40df0a
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x40df0a
call fcn.00407240
cmp eax, 0x424
mov ecx, 0x6a
mov eax, dword [ebp - 0x8a0]
cmove ebx, ecx
mov dword [ebp - 0x8a8], ebx
jmp 0x40df14
mov dword [ebp - 0x8a8], 0x69
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea edx, [eax - 0x10]
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40df3a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40df3a
or esi, 0xffffffff
push ecx
lea eax, [ebp - 0x89c]
mov ecx, edi
push eax
push str.UNINSTAL.ini
call fcn.00410620
lea ecx, [ebp - 0x89c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40df57
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jae 0x40df89
lea eax, [ebp - 0x89c]
push eax
lea eax, [edi + 0x3b8]
push 0x104
push eax
call fcn.00451ea9
add esp, 0xc
push 0x208
lea eax, [ebp - 0x48c]
push 0
push eax
call fcn.0044f210
add esp, 0xc
lea eax, [edi + 0x3b8]
push eax
push 0x104
lea eax, [ebp - 0x48c]
push eax
push str.ResourceUninsUI__s.dll
push str.ResourceModule
push str.ModuleInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.004339ad
mov ecx, eax
test ecx, ecx
jne 0x40dfdc
push 0x80004005
call fcn.00401e60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8b4], eax
mov dword [ebp - 4], 2
call fcn.004339ad
mov ecx, eax
test ecx, ecx
jne 0x40e006
push 0x80004005
call fcn.00401e60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8ac], eax
push 0x486438
lea ecx, [ebp - 0x8a4]
mov byte [ebp - 4], 3
call fcn.00401ff0
lea eax, [ebp - 0x8ac]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x8b4]
push eax
lea eax, [ebp - 0x8a4]
push eax
push ecx
lea eax, [ebp - 0x48c]
mov ecx, edi
push eax
call fcn.004115e0
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x8a4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e071
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x8b4]
cmp dword [ebx - 0xc], 0
jl 0x40e0e1
push 0x4856d8
push ebx
call fcn.0044e917
add esp, 8
test eax, eax
je 0x40e0e1
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
jle 0x40e0e1
lea eax, [ebp - 0x8b4]
mov ecx, edi
push eax
call fcn.00410830
test eax, eax
je 0x40e0f3
push dword [edi + 0x5d0]
lea eax, [edi + 0x5cc]
push dword [ebp - 0x8ac]
push eax
call fcn.00405ae0
push 0x486954
push dword [edi + 0x5d4]
call fcn.00451d34
add esp, 0x14
test eax, eax
jne 0x40e0f3
mov dword [edi + 0x5dc], eax
jmp 0x40e0f3
lea eax, [ebp - 0x8b4]
lea ecx, [edi + 0x5c8]
push eax
call fcn.00402a50
push dword [edi + 0x5c8]
lea eax, [edi + 0x5c8]
mov dword [ebp - 0x8bc], 0
mov dword [ebp - 0x8c0], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e3d1
call fcn.004339ad
mov ecx, eax
test ecx, ecx
jne 0x40e132
push 0x80004005
call fcn.00401e60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8a0], eax
mov byte [ebp - 4], 5
mov eax, dword [edi + 0x5c8]
cmp dword [eax - 0xc], 0
jne 0x40e184
lea ecx, [ebp - 0x48c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e160
sub ecx, edx
lea eax, [ebp - 0x48c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x8a0]
call fcn.00401eb0
jmp 0x40e1fa
push 0x5c
push eax
call fcn.0044e876
mov ecx, eax
lea edx, [edi + 0x5c8]
add esp, 8
test ecx, ecx
je 0x40e1ee
sub ecx, dword [edx]
sar ecx, 1
cmp ecx, 0xffffffff
jle 0x40e1ee
mov eax, dword [edx]
mov eax, dword [eax - 0xc]
sub eax, ecx
mov ecx, edx
dec eax
push eax
lea eax, [ebp - 0x8a4]
push eax
call fcn.0040d0c0
push eax
lea ecx, [ebp - 0x8a0]
mov byte [ebp - 4], 6
call fcn.00402a50
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x8a4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e1fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40e1fa
push edx
lea ecx, [ebp - 0x8a0]
call fcn.00402a50
mov esi, dword [ebp - 0x8a0]
push 0x5c
push esi
call fcn.0044e876
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x40e267
sub ecx, esi
sar ecx, 1
cmp ecx, 0xffffffff
jle 0x40e267
mov eax, dword [esi - 0xc]
sub eax, ecx
lea ecx, [ebp - 0x8a0]
dec eax
push eax
lea eax, [ebp - 0x8a4]
push eax
call fcn.0040d0c0
push eax
lea ecx, [ebp - 0x8a0]
mov byte [ebp - 4], 7
call fcn.00402a50
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov edx, dword [ebp - 0x8a4]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e267
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004339ad
mov ecx, eax
test ecx, ecx
jne 0x40e27c
push 0x80004005
call fcn.00401e60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8a4], eax
push 0x208
lea eax, [ebp - 0x694]
mov byte [ebp - 4], 8
push 0
push eax
call fcn.0044f210
add esp, 8
lea eax, [ebp - 0x694]
mov ecx, edi
push eax
push 0x486438
call fcn.00410620
push 0x4865e8
push 0x4856d8
lea ecx, [ebp - 0x8a0]
call fcn.00406170
mov edi, dword [ebp - 0x8a0]
lea eax, [ebp - 0x8a4]
push eax
mov edx, edi
lea ecx, [ebp - 0x694]
call fcn.0040cad0
add esp, 4
test eax, eax
je 0x40e38c
lea ecx, [ebp - 0x694]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e300
sub ecx, edx
lea eax, [ebp - 0x694]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x8c0]
push eax
call fcn.00401eb0
mov esi, dword [ebp - 0x8a4]
mov ecx, dword [ebp - 0x8c0]
push dword [esi - 0xc]
push esi
call fcn.00401780
mov ecx, dword [ebp - 0x8b0]
lea eax, [ebp - 0x8a4]
push eax
lea ecx, [ecx + 0x5cc]
call fcn.00402a50
cmp dword [esi - 0xc], 0
jl 0x40e380
push str.ja_JP
push esi
call fcn.0044e917
add esp, 8
test eax, eax
je 0x40e380
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jle 0x40e380
mov eax, dword [ebp - 0x8b0]
mov dword [eax + 0x5dc], 0
mov dword [ebp - 0x8bc], 1
jmp 0x40e392
mov esi, dword [ebp - 0x8a4]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e3b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40e3cb
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x8b0]
push dword [ebp - 0x8bc]
lea eax, [ebp - 0x89c]
mov ecx, edi
push eax
call fcn.00411030
call fcn.004089d0
mov dword [edi + 0x380], eax
test eax, eax
jne 0x40e44c
call fcn.004084c0
test eax, eax
je 0x40e44c
call fcn.00408740
test eax, eax
je 0x40e44c
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x8ac]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e427
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add ebx, 0xfffffff0
lock xadd dword [ebx + 0xc], esi
dec esi
test esi, esi
jg 0x40e9db
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40e9db
call fcn.004104b0
mov dword [ebp - 0x8a0], eax
test eax, eax
jne 0x40e511
call fcn.00410450
mov dword [ebp - 0x8a0], eax
test eax, eax
jne 0x40e511
mov eax, dword [edi]
mov ecx, edi
push 1
push str.h_PrinterDriver_Installer
call dword [eax + 0x110]
test eax, eax
mov ecx, 2
mov eax, 0
cmovne eax, ecx
mov dword [ebp - 0x8a0], eax
test eax, eax
je 0x40e511
mov eax, dword [edi]
mov ecx, edi
push 1
push str.h_iWEMC_DRM_PrinterDriver_Installer
call dword [eax + 0x110]
test eax, eax
je 0x40e511
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0044f210
add esp, 0xc
lea eax, [edi + 0x3b8]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x486968
push str.CheckiWEMC_DRM
push str.Profiles
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x4868d4
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
mov dword [ebp - 0x8a0], eax
push dword [edi + 0x5c8]
mov ecx, edi
call fcn.00410560
test eax, eax
je 0x40e52a
mov dword [ebp - 0x8a0], eax
jmp 0x40e537
mov ecx, edi
call fcn.00411c10
mov eax, dword [ebp - 0x8a0]
cmp dword [ebp - 0x8a8], 0x69
jne 0x40e65c
push 0x486438
lea ecx, [ebp - 0x8a8]
call fcn.00401ff0
push 0x486438
lea ecx, [ebp - 0x8a4]
mov byte [ebp - 4], 9
call fcn.00401ff0
push 0xa8c
mov byte [ebp - 4], 0xa
call fcn.004335e9
test eax, eax
je 0x40e58b
push 0xa8c
push eax
lea ecx, [ebp - 0x8a8]
call fcn.00401a50
push 5
call fcn.004335e9
test eax, eax
je 0x40e5a4
push 5
push eax
lea ecx, [ebp - 0x8a4]
call fcn.00401a50
cmp dword [edi + 0x5e0], 0
je 0x40e5b4
push 0x180010
jmp 0x40e5b6
push 0x10
push dword [ebp - 0x8a4]
push dword [ebp - 0x8a8]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 9
mov eax, esi
mov edx, dword [ebp - 0x8a4]
mov dword [edi + 0xf0], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e5f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x8a8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e616
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x8ac]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e637
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add ebx, 0xfffffff0
lock xadd dword [ebx + 0xc], esi
dec esi
test esi, esi
jg 0x40e9db
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40e9db
test eax, eax
jne 0x40e685
mov eax, dword [edi + 0x38c]
lea ecx, [edi + 0x38c]
call dword [eax + 4]
mov ecx, dword [ebp - 0x8a0]
test eax, eax
mov edx, 0x30
cmovne ecx, edx
mov dword [ebp - 0x8a0], ecx
call fcn.00407fe0
test eax, eax
jne 0x40e696
lea ecx, [eax + 1]
call fcn.004081d0
push 0xc0
mov byte [ebp - 4], 0xb
call fcn.00433232
add esp, 4
mov dword [ebp - 0x8bc], eax
mov byte [ebp - 4], 0xc
test eax, eax
je 0x40e6be
mov ecx, eax
call fcn.00418910
jmp 0x40e6c0
xor eax, eax
mov byte [ebp - 4], 0xb
mov ecx, edi
push eax
mov dword [edi + 0xe4], eax
call fcn.0043f151
push 0x14
call fcn.00433232
add esp, 4
mov dword [ebp - 0x8a4], eax
mov dword [ebp - 0x8bc], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x40e74d
mov ecx, dword [edi + 0xe4]
add ecx, 0x78
cmp dword [ecx + 0x14], 8
jb 0x40e701
mov ecx, dword [ecx]
push ecx
mov ecx, eax
call fcn.00401ff0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x8a4]
push 0x486438
add ecx, 4
call fcn.00401ff0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x8a4]
push 0x486438
lea ecx, [ecx + 8]
call fcn.00401ff0
mov eax, dword [ebp - 0x8a4]
mov dword [eax + 0xc], 1
mov dword [eax + 0x10], 0
jmp 0x40e74f
xor eax, eax
mov dword [edi + 0xe8], eax
mov dword [ebp - 4], 3
mov eax, dword [edi + 0xe4]
mov al, byte [eax + 0x58]
test al, al
je 0x40e8bc
mov byte [ebp - 4], 0x13
mov eax, dword [edi + 0xe4]
push 8
cmp dword [eax + 0x70], 0
je 0x40e7c0
call fcn.00433232
mov ecx, eax
add esp, 4
mov dword [ebp - 0x8bc], ecx
mov byte [ebp - 4], 0x14
test ecx, ecx
je 0x40e7b6
mov eax, dword [edi + 0xe4]
add eax, 0x60
cmp dword [eax + 0x14], 8
jb 0x40e7a8
mov eax, dword [eax]
push eax
call fcn.00403a10
mov dword [edi + 0xec], eax
jmp 0x40e804
xor eax, eax
mov dword [edi + 0xec], eax
jmp 0x40e804
call fcn.00433232
mov esi, eax
add esp, 4
mov dword [ebp - 0x8bc], esi
test esi, esi
je 0x40e7fc
call fcn.004339ad
mov ecx, eax
test ecx, ecx
jne 0x40e7e9
push 0x80004005
call fcn.00401e60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x40e7fe
xor esi, esi
mov dword [edi + 0xec], esi
mov dword [ebp - 4], 3
call fcn.004339ad
mov ecx, eax
test ecx, ecx
jne 0x40e820
push 0x80004005
call fcn.00401e60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8a4], eax
push 0x3b
mov byte [ebp - 4], 0x1a
call fcn.004335e9
test eax, eax
je 0x40e84b
push 0x3b
push eax
lea ecx, [ebp - 0x8a4]
call fcn.00401a50
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
test edx, edx
jne 0x40e85b
xor ecx, ecx
jmp 0x40e86f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e860
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x8a4]
call fcn.00401780
mov esi, dword [ebp - 0x8a4]
mov ecx, dword [edi + 0xec]
push esi
call fcn.00403b60
mov ecx, dword [edi + 0xec]
push 0x486438
call fcn.00403b60
lea edx, [esi - 0x10]
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e8bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi + 0xe4]
mov eax, dword [ecx + 0x54]
cmp eax, 1
je 0x40ea78
test eax, eax
je 0x40ea78
push eax
mov ecx, edi
call fcn.00411920
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x8ac]
mov dword [edi + 0xf0], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e909
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add ebx, 0xfffffff0
lock xadd dword [ebx + 0xc], esi
dec esi
test esi, esi
jg 0x40e9db
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40e9db
lea ecx, [ebp - 0x8ac]
call fcn.004018d0
lea ecx, [ebp - 0x8b4]
call fcn.004018d0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0xb8], 0
je 0x40eaa6
call fcn.00419e80
mov esi, dword [edi + 0xe4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
mov edx, eax
lea ecx, [esi + 0xa8]
call fcn.0041c5b0
mov dword [edi + 0x384], eax
mov ecx, dword [edi + 0xe4]
mov al, byte [ecx + 0x58]
test al, al
je 0x40eb57
mov al, byte [ecx + 0x5b]
test al, al
je 0x40eac8
push ecx
mov ecx, esp
push str.Delete_Printer_Name
jmp 0x40eae8
mov al, byte [ecx + 0x5c]
test al, al
je 0x40ead9
push ecx
mov ecx, esp
push str.Delete_Driver_Name
jmp 0x40eae8
mov al, byte [ecx + 0x59]
test al, al
je 0x40eaf8
push ecx
mov ecx, esp
push 0x486438
call fcn.00401ff0
mov ecx, dword [edi + 0xe8]
call fcn.00406790
mov ecx, dword [edi + 0xe4]
mov dl, byte [ecx + 0x59]
test dl, dl
jne 0x40eb91
mov eax, dword [edi + 0xe8]
mov eax, dword [eax + 0x10]
cmp eax, 1
je 0x40eb32
test eax, eax
je 0x40eb32
push eax
mov ecx, edi
call fcn.00411b20
mov dword [edi + 0xf0], 1
jmp 0x40e9c5
test dl, dl
jne 0x40eb91
mov al, byte [ecx + 0x5b]
test al, al
jne 0x40eb91
mov al, byte [ecx + 0x5c]
test al, al
jne 0x40eb91
cmp dword [ecx + 0xa0], 0
je 0x40eb57
mov dword [edi + 0x13c], 1
mov eax, dword [ebp - 0x8a0]
cmp eax, 0x20
je 0x40eb7c
cmp eax, 0x21
je 0x40eb7c
cmp dword [ebp - 0x8a8], 0x6a
mov ecx, 0x6a
cmove eax, ecx
mov dword [ebp - 0x8a0], eax
call fcn.004339ad
mov ecx, eax
test ecx, ecx
jne 0x40ebab
push 0x80004005
call fcn.00401e60
cmp dword [ecx + 0x88], 0
je 0x40eb4d
mov eax, dword [edi + 0xe8]
mov eax, dword [eax + 0xc]
mov dword [edi + 0x13c], eax
jmp 0x40eb57
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x8a4], edi
mov byte [ebp - 4], 0x1b
call fcn.004339ad
mov ecx, eax
test ecx, ecx
jne 0x40ebd2
push 0x80004005
call fcn.00401e60
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x8a8], esi
mov byte [ebp - 4], 0x1c
mov eax, dword [ebp - 0x8a0]
test eax, eax
je 0x40ecdc
add eax, 0xfffffffe
cmp eax, 0x68
ja case.0x40ec01.3
movzx eax, byte [eax + 0x40f274]
jmp dword [eax*4 + 0x40f258]
push 0x30
push 3
push 0x48
jmp 0x40ec42
push 0x10
push 5
push 0x44
jmp 0x40ec42
push 0x30
push 3
push 0x9ca
jmp 0x40ec42
push 0x30
push 3
push 0x9cb
jmp 0x40ec42
push 0x30
push 3
push 0xa8d
jmp 0x40ec42
push 0x30
push 3
push 0x96
mov ecx, dword [ebp - 0x8b0]
call fcn.0040f8f0
mov eax, dword [ebp - 0x8b0]
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 0x1b
mov dword [eax + 0xf0], 1
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ec7b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40ec96
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x8ac]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ecb7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add ebx, 0xfffffff0
lock xadd dword [ebx + 0xc], esi
dec esi
test esi, esi
jg 0x40e9db
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40e9db
mov ecx, dword [ebp - 0x8b0]
mov byte [ebp - 4], 0x1d
call fcn.0040f2e0
test eax, eax
jne 0x40ed82
mov eax, dword [ebp - 0x8b0]
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 0x1b
mov dword [eax + 0xf0], 1
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ed21
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40ed3c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x8ac]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ed5d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add ebx, 0xfffffff0
lock xadd dword [ebx + 0xc], esi
dec esi
test esi, esi
jg 0x40e9db
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40e9db
mov dword [ebp - 4], 0x1c
call fcn.00407240
cmp eax, 4
je 0x40edce
mov ebx, dword [ebp - 0x8b0]
mov ecx, ebx
push 0x30
push 3
push 0x84
call fcn.0040f8f0
mov dword [ebx + 0xf0], 1
lea ecx, [ebp - 0x8a8]
call fcn.004018d0
lea ecx, [ebp - 0x8a4]
call fcn.004018d0
jmp 0x40e9c5
call fcn.00407300
mov ebx, dword [ebp - 0x8b0]
xor ecx, ecx
mov edx, dword [ebx + 0xe4]
mov dword [ebx + 0x5c4], 1
mov al, byte [edx + 0x58]
test al, al
sete cl
mov dword [0x49c3e8], ecx
mov al, byte [edx + 0x58]
test al, al
je 0x40f0b7
push 0x270
mov byte [ebp - 4], 0x21
call fcn.00433232
add esp, 4
mov dword [ebp - 0x8bc], eax
mov byte [ebp - 4], 0x22
test eax, eax
je 0x40ee35
push ecx
mov ecx, eax
call fcn.00411fc0
mov edi, eax
mov dword [ebp - 0x8bc], eax
jmp 0x40ee3d
xor edi, edi
mov dword [ebp - 0x8bc], edi
mov dword [ebp - 4], 0x1c
mov ecx, edi
mov byte [ebp - 4], 0x25
mov eax, dword [edi]
push 0
push 0x66
call dword [eax + 0x164]
test eax, eax
je 0x40eda9
mov dword [ebp - 4], 0x1c
lea ecx, [edi + 0xa8]
mov dword [ebx + 0x20], edi
call fcn.0040d570
mov ecx, dword [ebx + 0xe4]
test eax, eax
jle 0x40eed6
mov al, byte [ecx + 0x59]
test al, al
jne 0x40ee9f
mov al, byte [ecx + 0x5b]
test al, al
jne 0x40ee9f
mov al, byte [ecx + 0x5c]
test al, al
jne 0x40ee9f
cmp dword [ecx + 0xa0], 0
je 0x40ef82
call fcn.00411ee0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x3ea
push 0x111
push dword [eax + 0x20]
call esi
call fcn.00411ee0
push 0
push 0x3eb
push 0x111
push dword [eax + 0x20]
call esi
jmp 0x40ef82
cmp dword [ecx + 0xa0], 0
je 0x40ef24
add ecx, 0x90
cmp dword [ecx + 0x14], 8
jb 0x40eeed
mov ecx, dword [ecx]
push ecx
call fcn.004130c0
test eax, eax
je 0x40ef13
call fcn.00411ee0
push 0
push 0x3eb
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40ef82
lea ecx, [ebp - 0x8a0]
call fcn.00401850
mov byte [ebp - 4], 0x27
jmp 0x40ef59
mov al, byte [ecx + 0x59]
test al, al
jne 0x40ef4a
mov al, byte [ecx + 0x5b]
test al, al
jne 0x40ef4a
mov al, byte [ecx + 0x5c]
test al, al
jne 0x40ef4a
lea ecx, [ebp - 0x8a0]
call fcn.00401850
mov byte [ebp - 4], 0x29
jmp 0x40ef59
lea ecx, [ebp - 0x8a0]
call fcn.00401850
mov byte [ebp - 4], 0x28
push 0x37
lea ecx, [ebp - 0x8a0]
call fcn.00401af0
push dword [ebp - 0x8a0]
mov ecx, dword [ebx + 0xec]
call fcn.00403b60
lea ecx, [ebp - 0x8a0]
call fcn.004018d0
mov byte [ebp - 4], 0x2a
mov eax, dword [ebx + 0xe4]
mov al, byte [eax + 0x5a]
test al, al
je 0x40efff
push 0x4869bc
lea ecx, [ebx + 0xd8]
call fcn.004015a0
test eax, eax
jne 0x40efc3
call fcn.00411ee0
push 0
push 0x3ed
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40efff
lea ecx, [ebp - 0x8a0]
call fcn.00401850
push 0x3a
lea ecx, [ebp - 0x8a0]
mov byte [ebp - 4], 0x2b
call fcn.00401af0
push dword [ebp - 0x8a0]
mov ecx, dword [ebx + 0xec]
call fcn.00403b60
lea ecx, [ebp - 0x8a0]
mov byte [ebp - 4], 0x2a
call fcn.004018d0
call fcn.00411ee0
push 0
push 0
push 2
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x40edb3
push ecx
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0x2d
call fcn.00411fc0
lea eax, [ebp - 0x284]
mov byte [ebp - 4], 0x2e
mov ecx, eax
mov dword [ebx + 0x20], eax
call fcn.0043b98b
lea ecx, [ebp - 0x284]
call fcn.004120f0
jmp 0x40edb3