Function at 0x404f14
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b53b
mov eax, dword fs:[0]
push eax
sub esp, 0x930
mov eax, dword [0x437454]
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]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x20]
add eax, 0xfffffc18
mov dword [ebp - 0x924], ebx
cmp eax, 0xa
ja case.default.0x404e5e
jmp dword [eax*4 + 0x4057c4]
test edi, edi
je 0x404eb4
mov eax, 8
mov word [edi], ax
mov eax, dword [0x44c008]
dec eax
je 0x404ea6
dec eax
je 0x404e91
push str.unknown
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi + 8], eax
xor eax, eax
jmp 0x4057a6
push str.zhushou
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi + 8], eax
xor eax, eax
jmp 0x4057a6
push 0x430e3c
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi + 8], eax
xor eax, eax
jmp 0x4057a6
test edi, edi
je 0x404f0d
lea ecx, [ebp - 0x93c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edx, 3
mov word [ebp - 0x93c], dx
mov ecx, dword [ebp - 0x93c]
mov edx, dword [ebp - 0x938]
mov dword [edi], ecx
mov eax, 1
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [ebp - 0x934], eax
mov eax, dword [ebp - 0x930]
lea ecx, [ebp - 0x93c]
push ecx
mov dword [edi + 0xc], eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor eax, eax
jmp 0x4057a6
cmp dword [esi + 8], 0
jbe 0x405162
mov esi, dword [esi]
cmp word [esi], 9
jne 0x405162
mov esi, dword [esi + 8]
test esi, esi
je 0x405162
push 8
call fcn.0041a514
mov edx, dword [ebx + 0x10c]
push eax
push 0
push 0x4057f0
mov dword [eax], edx
mov dword [eax + 4], esi
call fcn.0041a397
add esp, 0x10
xor eax, eax
jmp 0x4057a6
cmp dword [esi + 8], 3
jne 0x405162
mov eax, dword [esi]
mov ecx, 8
cmp word [eax + 0x20], cx
jne 0x405162
cmp word [eax + 0x10], cx
jne 0x405162
cmp word [eax], 9
jne 0x405162
mov eax, dword [eax + 0x28]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
jne 0x40511c
xor edi, edi
mov dword [ebp - 0x91c], edi
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x405139
xor ebx, ebx
mov dword [ebp - 0x928], ebx
mov byte [ebp - 4], 1
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push edi
mov dword [ebp - 0x920], edx
call esi
cmp eax, 1
jbe 0x405156
push ebx
call esi
cmp eax, 1
jbe 0x405156
cmp dword [ebp - 0x920], 0
je 0x405156
push 0x10
call fcn.0041a514
mov esi, eax
mov eax, dword [ebp - 0x924]
mov ecx, dword [eax + 0x10c]
mov eax, dword [ebp - 0x91c]
add esp, 4
push 3
mov dword [esi], ecx
push eax
lea ecx, [ebp - 0x894]
lea edx, [ebp - 0x890]
push ecx
mov dword [ebp - 0x894], edx
call fcn.00406000
push 0x104
mov byte [ebp - 4], 2
call fcn.0041a514
mov edx, dword [ebp - 0x924]
push 0x104
add edx, 8
mov edi, eax
push edx
push edi
call fcn.0041a830
mov eax, dword [ebp - 0x894]
add esp, 0x10
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 3
push ebx
lea edx, [ebp - 0x918]
lea ecx, [ebp - 0x914]
mov dword [esi + 4], edi
push edx
mov dword [ebp - 0x918], ecx
call fcn.00406000
push 0x104
mov byte [ebp - 4], 3
call fcn.0041a514
mov edi, eax
mov eax, dword [ebp - 0x918]
push 0x104
push eax
push edi
call fcn.0041a830
mov ecx, dword [ebp - 0x920]
push esi
push 0
push 0x405860
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
call fcn.0041a397
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x918]
lea edx, [ebp - 0x914]
add esp, 0x1c
cmp eax, edx
je 0x4050e6
push eax
call fcn.0041885b
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x894]
lea ecx, [ebp - 0x890]
cmp eax, ecx
je 0x405103
push eax
call fcn.0041885b
add esp, 4
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call esi
mov edx, dword [ebp - 0x91c]
push edx
call esi
xor eax, eax
jmp 0x4057a6
push eax
call ebx
mov edi, eax
mov dword [ebp - 0x91c], edi
test edi, edi
jne 0x404fa6
push 0x8007000e
call fcn.00404650
push eax
call ebx
mov ebx, eax
mov dword [ebp - 0x928], ebx
test ebx, ebx
jne 0x404fc2
push 0x8007000e
call fcn.00404650
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call esi
push edi
call esi
mov eax, 0x80070057
jmp 0x4057a6
cmp dword [esi + 8], 3
jne 0x405162
mov eax, dword [esi]
mov ecx, 8
cmp word [eax + 0x20], cx
jne 0x405162
cmp word [eax + 0x10], cx
jne 0x405162
cmp word [eax], 9
jne 0x405162
mov eax, dword [eax + 0x28]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
jne 0x405304
mov dword [ebp - 0x91c], 0
mov edi, dword [ebp - 0x91c]
mov dword [ebp - 4], 4
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x405321
xor ebx, ebx
mov dword [ebp - 0x928], ebx
mov byte [ebp - 4], 5
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push edi
mov dword [ebp - 0x920], edx
call esi
cmp eax, 1
jbe 0x405156
push ebx
call esi
cmp eax, 1
jbe 0x405156
cmp dword [ebp - 0x920], 0
je 0x405156
push 0x10
call fcn.0041a514
mov esi, eax
mov eax, dword [ebp - 0x924]
mov ecx, dword [eax + 0x10c]
mov eax, dword [ebp - 0x91c]
add esp, 4
push 3
mov dword [esi], ecx
push eax
lea ecx, [ebp - 0x918]
lea edx, [ebp - 0x914]
push ecx
mov dword [ebp - 0x918], edx
call fcn.00406000
push 0x104
mov byte [ebp - 4], 6
call fcn.0041a514
mov edx, dword [ebp - 0x918]
push 0x104
mov edi, eax
push edx
push edi
call fcn.0041a830
add esp, 0x10
push 3
push ebx
lea ecx, [ebp - 0x894]
lea eax, [ebp - 0x890]
mov dword [esi + 4], edi
push ecx
mov dword [ebp - 0x894], eax
call fcn.00406000
push 0x104
mov byte [ebp - 4], 7
call fcn.0041a514
mov edx, dword [ebp - 0x924]
push 0x104
add edx, 8
mov edi, eax
push edx
push edi
call fcn.0041a830
mov eax, dword [ebp - 0x894]
add esp, 0x10
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, dword [ebp - 0x920]
push esi
push 0
push 0x4058d0
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
call fcn.0041a397
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x894]
lea edx, [ebp - 0x890]
add esp, 0xc
cmp eax, edx
je 0x4052ef
push eax
call fcn.0041885b
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x918]
lea ecx, [ebp - 0x914]
jmp 0x4050f6
push eax
call ebx
mov edi, eax
mov dword [ebp - 0x91c], edi
test edi, edi
jne 0x4051ac
push 0x8007000e
call fcn.00404650
push eax
call ebx
mov ebx, eax
mov dword [ebp - 0x928], ebx
test ebx, ebx
jne 0x4051c8
push 0x8007000e
call fcn.00404650
cmp dword [esi + 8], 2
jne 0x405462
mov eax, dword [esi]
mov edi, 8
cmp word [eax + 0x10], di
jne 0x405462
cmp word [eax], 9
jne 0x405462
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x40543a
xor ebx, ebx
mov dword [ebp - 0x928], ebx
mov dword [ebp - 4], edi
mov eax, dword [esi]
mov esi, dword [eax + 8]
push ebx
mov dword [ebp - 0x920], esi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, 1
jbe 0x40545b
test esi, esi
je 0x40545b
push 0x10
call fcn.0041a514
mov ecx, dword [ebp - 0x924]
mov edx, dword [ecx + 0x10c]
add esp, 4
push 3
mov esi, eax
push ebx
lea ecx, [ebp - 0x894]
lea eax, [ebp - 0x890]
mov dword [esi], edx
push ecx
mov dword [ebp - 0x894], eax
call fcn.00406000
push 0x104
mov byte [ebp - 4], 9
call fcn.0041a514
mov edx, dword [ebp - 0x894]
push 0x104
mov edi, eax
push edx
push edi
call fcn.0041a830
mov eax, dword [ebp - 0x920]
push esi
push 0
push 0x405940
mov dword [esi + 4], edi
mov dword [esi + 8], eax
call fcn.0041a397
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x894]
lea ecx, [ebp - 0x890]
add esp, 0x1c
cmp eax, ecx
je 0x40542c
push eax
call fcn.0041885b
add esp, 4
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x4057a6
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
mov dword [ebp - 0x928], ebx
test ebx, ebx
jne 0x405376
push 0x8007000e
call fcn.00404650
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, 0x80070057
jmp 0x4057a6
mov edx, dword [ebx + 0x10c]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
jmp 0x4057a6
test edi, edi
je 0x405115
lea esi, [ebp - 0x91c]
call fcn.00405db0
mov eax, esi
push eax
mov dword [ebp - 4], 0xa
call fcn.004059c0
add esp, 4
test eax, eax
je 0x4054c7
mov edx, dword [ebp - 0x91c]
mov ecx, 8
push edx
mov word [edi], cx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi + 8], eax
lea eax, [ebp - 0x91c]
call fcn.00405e70
xor eax, eax
jmp 0x4057a6
cmp dword [esi + 8], 2
jne 0x405162
mov eax, dword [esi]
cmp word [eax + 0x10], 8
jne 0x405162
cmp word [eax], 8
jne 0x405162
test edi, edi
je 0x405115
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x4055cb
xor ebx, ebx
mov dword [ebp - 0x928], ebx
mov dword [ebp - 4], 0xb
mov eax, dword [esi]
mov eax, dword [eax + 8]
test eax, eax
jne 0x4055ec
xor esi, esi
mov dword [ebp - 0x924], esi
lea ecx, [ebp - 0x91c]
push ecx
mov byte [ebp - 4], 0xc
mov ecx, ebx
mov dword [ebp - 0x92c], 0x400
call fcn.00405dd0
lea edx, [ebp - 0x920]
push edx
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.00405dd0
lea eax, [ebp - 0x92c]
push eax
lea ecx, [ebp - 0x810]
push ecx
lea edx, [ebp - 0x920]
push edx
lea ecx, [ebp - 0x91c]
mov byte [ebp - 4], 0xe
call fcn.00405b20
add esp, 0xc
test eax, eax
je 0x4055a2
lea ecx, [ebp - 0x810]
mov eax, 8
push ecx
mov word [edi], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi + 8], eax
lea eax, [ebp - 0x920]
call fcn.00405e70
lea eax, [ebp - 0x91c]
call fcn.00405e70
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push ebx
call esi
xor eax, eax
jmp 0x4057a6
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
mov dword [ebp - 0x928], ebx
test ebx, ebx
jne 0x405515
push 0x8007000e
call fcn.00404650
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x924], esi
test esi, esi
jne 0x405531
push 0x8007000e
call fcn.00404650
cmp dword [esi + 8], 3
jne 0x405162
mov eax, dword [esi]
cmp word [eax + 0x20], 8
jne 0x405162
cmp word [eax], 3
jne 0x405162
mov eax, dword [eax + 0x28]
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
jne 0x405691
xor ebx, ebx
mov dword [ebp - 0x92c], ebx
mov dword [ebp - 4], 0xf
mov eax, dword [esi]
cmp word [eax + 0x10], 8
jne 0x40565a
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x4056aa
xor edi, edi
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x924]
mov edx, dword [ecx + 0x10c]
push eax
push 0
push edi
push ebx
push str.open
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call esi
push ebx
call esi
xor eax, eax
jmp 0x4057a6
push eax
call edi
mov ebx, eax
mov dword [ebp - 0x92c], ebx
test ebx, ebx
jne 0x405643
push 0x8007000e
call fcn.00404650
push eax
call edi
mov edi, eax
test edi, edi
jne 0x40565c
push 0x8007000e
call fcn.00404650
cmp dword [esi + 8], 1
jne 0x40579a
mov esi, dword [esi]
cmp word [esi], 8
jne 0x40579a
mov eax, dword [esi + 8]
test eax, eax
jne 0x405724
xor edi, edi
mov dword [ebp - 0x91c], edi
lea eax, [ebp - 0x91c]
push eax
mov eax, str.start
mov dword [ebp - 4], 0x10
call fcn.00404770
test al, al
je 0x40575b
cmp dword [ebx + 0x110], 0
jne 0x405750
push 0x20
call fcn.0041ab1b
add esp, 4
test eax, eax
je 0x405741
mov ecx, dword [ebx + 0x10c]
mov esi, eax
call fcn.00406610
jmp 0x405743
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x91c], edi
test edi, edi
jne 0x4056e2
push 0x8007000e
call fcn.00404650
xor eax, eax
mov esi, eax
mov dword [ebx + 0x110], eax
call fcn.00414840
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x4057a6
lea ecx, [ebp - 0x91c]
push ecx
mov eax, str.stop
call fcn.00404770
test al, al
je 0x405793
mov eax, dword [ebx + 0x110]
test eax, eax
je 0x405788
mov byte [eax + 0x18], 1
mov dword [ebx + 0x110], 0
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x4057a6
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, 0x80070057
jmp 0x4057a6
mov eax, 0x80004001
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.0041884c
mov esp, ebp
pop ebp
ret 0x24