Function at 0x403410
Capabilities:
Check os version
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a860
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4ae008]
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 dword [ebp - 0x29c], edx
mov edi, ecx
mov esi, dword [ebp + 8]
push 1
push 0x3b8
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x268], 0
call fcn.0046dc54
mov ebx, eax
add esp, 8
mov dword [ebp - 0x264], ebx
test ebx, ebx
jne 0x4034bb
call fcn.00470af1
push 1
push 0x3b8
call fcn.0046dc54
add esp, 8
mov ebx, eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x28c], ebx
test ebx, ebx
je 0x4048f1
mov ecx, ebx
call fcn.00402a40
mov ecx, ebx
call fcn.004029b0
mov ecx, dword [0x4b39cc]
mov dword [ebp - 0x2a0], eax
lea ecx, [ecx + 0x168]
call dword [sym.imp.MMFS2.dll_Ordinal_255]
mov eax, dword [0x4b39cc]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0xfc], 0xffffffff
mov eax, dword [0x4b39cc]
xor ebx, ebx
mov dword [eax + 0x100], 0xffffffff
mov eax, dword [0x4b39cc]
mov dword [ebp - 0x26c], ebx
mov dword [eax + 0x104], 0xffffffff
mov eax, dword [0x4b39cc]
mov dword [eax + 0x108], 0xffffffff
mov eax, dword [0x4b39cc]
mov dword [eax + 0x1f0], 0xffffffff
mov eax, dword [0x4b39cc]
mov dword [eax + 0x1a8], esi
mov eax, dword [0x4b39cc]
mov dword [eax + 0x380], ebx
mov eax, dword [0x4b39cc]
mov byte [eax + 0x3ac], bl
mov eax, dword [0x4b39cc]
mov dword [eax + 0x398], ebx
mov eax, dword [0x4b39cc]
mov dword [eax + 0x39c], 3
mov eax, dword [0x4b39cc]
mov dword [eax + 0x3b4], 0x42a130
test edx, edx
je 0x403638
mov eax, dword [0x4b39cc]
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x1b0], ecx
mov ecx, dword [0x4b39cc]
mov eax, dword [ecx + 0x1b0]
shr eax, 1
and eax, 1
mov dword [ecx + 0x244], eax
mov ecx, dword [0x4b39cc]
mov eax, dword [ecx + 0x1b0]
shr eax, 2
and eax, 1
mov dword [ecx + 0x248], eax
mov ecx, dword [0x4b39cc]
mov eax, dword [ecx + 0x1b0]
and eax, 1
mov dword [ecx + 0x24c], eax
mov ecx, dword [0x4b39cc]
mov eax, dword [ecx + 0x1b0]
and eax, 1
mov dword [ecx + 0x250], eax
mov ecx, dword [0x4b39cc]
mov eax, dword [ecx + 0x1b0]
shr eax, 0x13
and eax, 1
mov dword [ecx + 0x240], eax
test byte [0x4b39b4], 0x10
je 0x403638
test dword [edx + 0x10], 0x4100020
jne 0x403638
mov eax, dword [ebp - 0x264]
mov dword [eax + 0x394], 2
mov eax, dword [0x4b39cc]
xor ebx, ebx
mov dword [eax + 0x9c], 0xffffffff
test edi, edi
jne 0x403669
mov edi, dword [0x4b39e4]
mov ebx, dword [0x4b21b8]
test edi, edi
je 0x4048db
test ebx, ebx
je 0x4048db
mov esi, dword [sym.imp.MMFS2.dll_Ordinal_1033]
push 0
push edi
call esi
mov ecx, eax
mov eax, dword [0x4b39cc]
mov dword [eax + 0x9c], ecx
cmp ecx, 0xffffffff
jne 0x403694
lea esi, [ecx + 5]
mov dword [0x4b38c4], edi
jmp 0x4048c1
test ebx, ebx
je 0x40373d
cmp dword [ebp - 0x25c], 0
jne 0x40372b
cmp dword [0x4b3868], 0
jne 0x40372b
push 2
push 0x16e260
call fcn.0046dc54
add esp, 8
mov dword [0x4b3868], eax
push 0x104
push eax
push dword [0x4b3998]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push dword [0x4b3868]
call esi
mov esi, eax
mov dword [ebp - 0x260], esi
cmp esi, 0xffffffff
je 0x40372b
push 0x100
push esi
call dword [sym.imp.MMFS2.dll_Ordinal_430]
push 0x16e260
push dword [0x4b3868]
push esi
call dword [sym.imp.MMFS2.dll_Ordinal_425]
push dword [ebp - 0x260]
mov esi, eax
call dword [sym.imp.MMFS2.dll_Ordinal_419]
test esi, esi
je 0x40372b
cmp esi, 0x40000002
jne 0x404870
mov eax, dword [0x4b39cc]
push ebx
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov eax, dword [0x4b39cc]
push 0x10
mov dword [eax + 0x84], edi
mov eax, dword [0x4b39cc]
mov dword [eax + 0xa0], ebx
mov eax, dword [0x4b39cc]
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_425]
mov dword [eax + 0x360], 0
mov eax, dword [ebp - 0x264]
push eax
push dword [eax + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x4048bf
mov eax, dword [0x4b39cc]
mov ecx, dword [eax]
cmp ecx, 0x454d4150
jne 0x40379b
mov byte [eax + 0x384], 0
jmp 0x4037ae
cmp ecx, 0x554d4150
jne 0x4048b8
mov byte [eax + 0x384], 1
mov eax, dword [0x4b39cc]
mov ecx, 0x302
cmp word [eax + 4], cx
je 0x4037c8
mov esi, 0x13
jmp 0x4048c1
cmp dword [ebp - 0x25c], 0
jne 0x4037e1
cmp dword [eax + 8], 3
je 0x4037e1
mov esi, 0x13
jmp 0x4048c1
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_423]
xor ecx, ecx
mov word [ebp - 0x254], cx
push 8
lea ecx, [ebp - 0x254]
push ecx
push dword [eax + 0x9c]
call ebx
mov esi, eax
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40485d
cmp dword [ebp - 0x250], eax
je 0x404594
mov eax, dword [0x4b39cc]
push dword [eax + 0x9c]
call edi
add eax, dword [ebp - 0x250]
mov dword [ebp - 0x2a4], eax
movzx eax, word [ebp - 0x254]
cmp eax, 0x3333
jg 0x404531
je 0x404300
sub eax, 0x2223
cmp eax, 0x2e
ja case.0x403863.8741
movzx eax, byte [eax + 0x404984]
jmp dword [eax*4 + 0x404910]
mov ecx, dword [0x4b39cc]
push 0
lea eax, [ecx + 0x360]
push eax
lea eax, [ecx + 0x10]
mov ecx, dword [ecx + 0x9c]
push 0x70
push eax
lea edx, [ebp - 0x254]
call fcn.00424c60
mov ebx, dword [ebp - 0x25c]
mov ecx, dword [0x4b39cc]
add esp, 0x10
mov esi, eax
mov dword [ebp - 0x24c], esi
test ebx, ebx
jne 0x4038c1
mov eax, 0x200
test word [ecx + 0x16], ax
je 0x4038c1
mov eax, 1
mov word [0x4b3b4c], ax
lea edx, [ecx + 0xd0]
mov ecx, dword [ecx + 0x74]
shl ecx, 2
call fcn.0042d3d0
test eax, eax
je 0x4045ac
mov edi, dword [0x4b39cc]
test byte [edi + 0x16], 4
jne 0x4038fd
mov ecx, dword [edi + 0x74]
lea edx, [edi + 0xd4]
shl ecx, 2
call fcn.0042d3d0
mov edi, dword [0x4b39cc]
push 1
push 0x100
call fcn.0046dc54
add esp, 8
mov dword [edi + 0x26c], eax
test ebx, ebx
jne 0x403934
mov ecx, dword [0x4b3860]
test ecx, ecx
je 0x403934
mov eax, dword [0x4b39cc]
mov edx, 0x800
test word [eax + 0x16], dx
jne 0x403934
push 1
call ecx
mov ecx, dword [0x4b39cc]
test byte [ecx + 0x14], 0x10
je 0x404569
mov byte [ecx + 0x390], 1
jmp 0x404569
mov ecx, dword [0x4b39cc]
push 0
push 0
lea eax, [ecx + 0x380]
mov ecx, dword [ecx + 0x9c]
push 4
push eax
lea edx, [ebp - 0x254]
call fcn.00424c60
add esp, 0x10
jmp 0x404561
mov ecx, dword [0x4b39cc]
push 0
push 0
lea eax, [ecx + 0x3a8]
mov ecx, dword [ecx + 0x9c]
push 4
push eax
lea edx, [ebp - 0x254]
call fcn.00424c60
mov ecx, dword [0x4b39cc]
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x24c], esi
call fcn.00403390
jmp 0x404569
push 0
push ecx
mov ecx, dword [0x4b39cc]
lea eax, [ecx + 0x80]
mov ecx, dword [ecx + 0x9c]
push eax
lea edx, [ebp - 0x254]
call fcn.00424e00
add esp, 0xc
jmp 0x404561
push 0
push ecx
mov ecx, dword [0x4b39cc]
lea eax, [ecx + 0x8c]
jmp 0x4039ca
mov ecx, dword [0x4b39cc]
lea edx, [ebp - 0x254]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x90]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424e00
mov ecx, dword [0x4b39cc]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
mov dword [ebp - 0x24c], esi
jne 0x404569
add ecx, 0x90
call fcn.004030c0
jmp 0x404569
push 0
push ecx
mov ecx, dword [0x4b39cc]
lea edx, [ebp - 0x254]
lea eax, [ecx + 0x88]
mov ecx, dword [ecx + 0x9c]
push eax
mov dword [ebp - 0x298], 1
call fcn.00424e00
mov ebx, dword [ebp - 0x264]
mov esi, eax
mov edi, dword [ebx + 0x26c]
add esp, 0xc
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x24c], esi
test edi, edi
je 0x403b39
push dword [ebx + 0x80]
mov edx, edi
mov ecx, ebx
call fcn.004031f0
add esp, 4
push dword [ebx + 0x8c]
mov edx, edi
mov ecx, ebx
call fcn.004031f0
add esp, 4
push dword [ebx + 0x88]
mov edx, edi
mov ecx, ebx
call fcn.004031f0
add esp, 4
lea eax, [edi + 0x80]
push 0x80
push 0
push eax
call fcn.004721e0
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403af0
sub ecx, edx
inc ecx
mov dl, 0x36
mov bl, dl
mov dword [ebp - 0x260], ecx
test ecx, ecx
jle 0x403b31
mov esi, ecx
lea ebx, [ebx]
mov al, dl
shl al, 7
shr dl, 1
add dl, al
xor byte [edi], dl
mov cl, byte [edi]
mov al, dl
and al, 1
add al, 2
imul cl
add bl, al
inc edi
dec esi
jne 0x403b10
mov esi, dword [ebp - 0x294]
mov byte [edi], bl
mov ebx, dword [ebp - 0x264]
cmp byte [ebx + 0x384], 0
jne 0x404569
cmp dword [ebx + 0x80], 0
lea ecx, [ebx + 0x80]
je 0x403b5a
call fcn.004030c0
cmp dword [ebx + 0x8c], 0
lea ecx, [ebx + 0x8c]
je 0x403b6e
call fcn.004030c0
cmp dword [ebx + 0x88], 0
lea ecx, [ebx + 0x88]
je 0x404569
call fcn.004030c0
jmp 0x404569
cmp dword [ebp - 0x298], 0
jne 0x403bb4
mov eax, dword [0x4b39cc]
push dword [eax + 0x9c]
call edi
sub eax, 8
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x268], 1
push 0
push ecx
mov ecx, dword [0x4b39cc]
lea edx, [ebp - 0x254]
lea eax, [ecx + 0x94]
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424e00
mov ecx, dword [0x4b39cc]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
mov dword [ebp - 0x24c], esi
jne 0x404569
add ecx, 0x94
call fcn.004030c0
jmp 0x404569
mov ecx, dword [0x4b39cc]
lea edx, [ebp - 0x254]
push dword [ecx + 0x26c]
lea eax, [ecx + 0xa4]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424e00
mov ecx, dword [0x4b39cc]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
mov dword [ebp - 0x24c], esi
jne 0x404569
add ecx, 0xa4
call fcn.004030c0
jmp 0x404569
cmp dword [ebp - 0x25c], 0
je case.0x403863.8741
test dword [ebp + 0x10], 0x80000000
je case.0x403863.8741
push 0
push ecx
mov ecx, dword [0x4b39cc]
lea edx, [ebp - 0x254]
lea eax, [ecx + 0xa8]
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424e00
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40485d
mov ecx, dword [0x4b39cc]
mov ecx, dword [ecx + 0xa8]
call fcn.00402ff0
mov ecx, dword [0x4b39cc]
mov dword [ecx + 0xac], eax
jmp case.0x403863.8741
mov eax, dword [0x4b39cc]
lea edx, [ebp - 0x254]
mov dword [eax + 0x260], 0
mov ecx, dword [0x4b39cc]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x260]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424e00
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40485d
jmp case.0x403863.8741
mov eax, dword [0x4b39cc]
lea edx, [ebp - 0x254]
mov dword [eax + 0x274], 0
mov ecx, dword [0x4b39cc]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x274]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424e00
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40485d
mov ecx, dword [0x4b39cc]
cmp byte [ecx + 0x384], al
jne case.0x403863.8741
mov eax, dword [ecx + 0x274]
add ecx, 0x274
test eax, eax
je case.0x403863.8741
cmp dword [eax], esi
je case.0x403863.8741
call fcn.00403120
jmp case.0x403863.8741
cmp dword [ebp - 0x25c], 0
jne case.0x403863.8741
push 0
push ecx
mov ecx, dword [0x4b39cc]
lea eax, [ecx + 0xc0]
jmp 0x4039ca
push 0
push ecx
mov ecx, dword [0x4b39cc]
lea eax, [ecx + 0xbc]
jmp 0x4039ca
push 0
push ecx
mov ecx, dword [0x4b39cc]
lea eax, [ecx + 0x37c]
jmp 0x4039ca
cmp dword [0x4b3b30], 0
jne case.0x403863.8741
push 0
push ecx
mov ecx, dword [0x4b39cc]
push 0x4b3b30
mov ecx, dword [ecx + 0x9c]
lea edx, [ebp - 0x254]
call fcn.00424e00
mov esi, eax
mov eax, dword [0x4b39cc]
add esp, 0xc
cmp byte [eax + 0x384], 0
mov dword [ebp - 0x24c], esi
jne 0x404569
mov ecx, 0x4b3b30
call fcn.004030c0
jmp 0x404569
cmp dword [ebp - 0x274], 0
mov dword [ebp - 0x268], 0
je case.0x403863.8741
mov eax, dword [0x4b39cc]
push dword [eax + 0x9c]
call edi
mov ecx, dword [0x4b39cc]
mov edi, eax
push dword [ecx + 0x26c]
mov ecx, dword [ecx + 0x9c]
sub edi, dword [ebp - 0x274]
push 0
lea eax, [ebp - 0x288]
push 4
push eax
lea edx, [ebp - 0x254]
call fcn.00424c60
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40485d
push dword [ebp - 0x274]
mov eax, dword [0x4b39cc]
xor byte [ebp - 0x288], 0xd
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
push ecx
mov ecx, dword [0x4b39cc]
lea edx, [edi - 8]
mov ecx, dword [ecx + 0x9c]
call fcn.004250d0
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_423]
add esp, 4
cmp eax, dword [ebp - 0x288]
je case.0x403863.8741
mov dword [ebp - 0x268], 1
jmp case.0x403863.8741
xor edx, edx
lea ecx, [ebp - 0x254]
call fcn.004236f0
jmp 0x404561
mov edx, 1
lea ecx, [ebp - 0x254]
call fcn.004236f0
jmp 0x404561
lea ecx, [ebp - 0x254]
call fcn.00432c30
jmp 0x404561
mov eax, dword [0x4b39cc]
push 0
mov dword [eax + 0x388], 0
push ecx
mov ecx, dword [0x4b39cc]
lea edx, [ebp - 0x254]
lea eax, [ecx + 0x388]
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424e00
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40485d
mov eax, dword [0x4b39cc]
mov ebx, dword [eax + 0x388]
test ebx, ebx
je 0x404577
mov edi, dword [ebx]
xor edx, edx
test edi, edi
je 0x404571
lea ecx, [ebx + 4]
lea esp, [esp]
mov eax, dword [ecx]
test byte [eax + ebx + 0xc], 0xf
jne 0x403fa6
inc edx
add ecx, 4
cmp edx, edi
jb 0x403f90
jmp 0x404571
mov eax, dword [0x4b39cc]
mov byte [eax + 0x390], 1
jmp 0x404571
mov eax, dword [0x4b39cc]
test byte [eax + 0x1a], 8
je 0x404005
test dword [eax + 0x1b0], 0x4000
jne 0x404005
mov dword [eax + 0x250], 0
mov eax, dword [0x4b39cc]
mov dword [eax + 0x24c], 0
mov eax, dword [0x4b39cc]
mov dword [eax + 0x248], 0
mov eax, dword [0x4b39cc]
mov dword [eax + 0x244], 0
call fcn.004356b0
jmp 0x404561
cmp dword [0x4b386c], 0
je case.0x403863.8741
call fcn.00402730
call fcn.00406050
jmp case.0x403863.8741
mov ecx, dword [0x4b39cc]
lea edx, [ebp - 0x254]
push dword [ecx + 0x26c]
lea eax, [ecx + 0xcc]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424e00
mov esi, eax
mov eax, dword [0x4b39cc]
add esp, 0xc
push dword [eax + 0xcc]
mov dword [ebp - 0x24c], esi
call fcn.00470b07
add esp, 4
shr eax, 1
movzx ecx, ax
mov eax, dword [0x4b39cc]
mov dword [eax + 0xc8], ecx
jmp 0x404569
push 4
lea eax, [ebp - 0x290]
push eax
mov eax, dword [0x4b39cc]
push dword [eax + 0x9c]
call ebx
mov esi, eax
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40485d
cmp dword [ebp - 0x290], eax
je case.0x403863.8741
mov ecx, dword [0x4b39cc]
mov dword [ebp - 0x260], esi
movzx eax, word [ecx + 0x1a]
mov edx, eax
and eax, 0xffbf
mov word [ecx + 0x1a], ax
mov dword [ebp - 0x294], edx
cmp dword [ebp - 0x290], esi
jle 0x40427d
push 2
lea eax, [ebp - 0x258]
push eax
mov eax, dword [0x4b39cc]
push dword [eax + 0x9c]
call ebx
mov esi, eax
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40427d
push 0x218
call fcn.0046ecaf
mov edi, eax
add esp, 4
test edi, edi
je 0x404272
xor eax, eax
lea ebx, [edi + 0x20c]
mov word [edi], ax
mov dword [edi + 0x208], eax
mov dword [edi + 0x210], eax
mov dword [ebx], eax
mov dword [edi + 0x214], eax
mov ecx, dword [0x4b39cc]
cmp byte [ecx + 0x384], al
movzx eax, word [ebp - 0x258]
jne 0x4041a4
push eax
lea eax, [ebp - 0x120]
push eax
push dword [ecx + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov esi, eax
movzx eax, word [ebp - 0x258]
mov dword [ebp - 0x24c], esi
cmp eax, 0x105
jae 0x4045b6
push 0x104
push edi
push 0xffffffffffffffff
mov byte [ebp + eax - 0x120], 0
lea eax, [ebp - 0x120]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x4041c9
add eax, eax
push eax
push edi
push dword [ecx + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov esi, eax
mov dword [ebp - 0x24c], eax
movzx eax, word [ebp - 0x258]
xor ecx, ecx
mov word [edi + eax*2], cx
push edi
push 0
call fcn.00425380
test esi, esi
jne 0x404256
mov eax, dword [0x4b39cc]
push 4
push ebx
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov esi, eax
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x404256
mov eax, dword [0x4b39cc]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_423]
mov dword [edi + 0x210], eax
mov ecx, dword [0x4b39cc]
push edi
lea ecx, [ecx + 0x168]
call dword [sym.imp.MMFS2.dll_Ordinal_333]
push dword [ebx]
mov eax, dword [0x4b39cc]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_431]
mov ebx, dword [ebp - 0x260]
inc ebx
mov dword [ebp - 0x260], ebx
cmp ebx, dword [ebp - 0x290]
jge 0x40427d
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_425]
jmp 0x4040e2
push ecx
mov ecx, edi
call fcn.004049c0
mov eax, dword [0x4b39cc]
mov ecx, dword [ebp - 0x294]
mov word [eax + 0x1a], cx
jmp 0x404569
mov esi, 8
mov dword [ebp - 0x24c], esi
mov eax, dword [0x4b39cc]
mov ecx, dword [ebp - 0x294]
mov word [eax + 0x1a], cx
jmp 0x404569
mov eax, dword [0x4b39cc]
push dword [eax + 0x9c]
call edi
mov dword [0x4b3874], eax
mov eax, dword [ebp - 0x250]
mov dword [0x4b3870], eax
jmp case.0x403863.8741
mov ecx, dword [0x4b39cc]
push 4
lea eax, [ecx + 0x398]
push eax
push dword [ecx + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x40485d
mov ecx, dword [0x4b39cc]
push 4
lea eax, [ecx + 0x39c]
push eax
push dword [ecx + 0x9c]
call ebx
mov esi, eax
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40485d
jmp case.0x403863.8741
mov eax, dword [0x4b39cc]
push dword [eax + 0x9c]
call edi
mov ecx, dword [0x4b39cc]
mov edx, dword [ecx + 0xc4]
mov ecx, dword [ecx + 0xd0]
mov dword [ecx + edx*4], eax
mov eax, dword [0x4b39cc]
cmp dword [eax + 0xd4], 0
jne 0x40433d
cmp dword [ebp - 0x278], 0
jne 0x404447
xor eax, eax
mov word [ebp - 0x280], ax
xor edi, edi
jmp 0x404350
push 8
lea eax, [ebp - 0x280]
push eax
mov eax, dword [0x4b39cc]
push dword [eax + 0x9c]
call ebx
mov esi, eax
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x404447
cmp dword [ebp - 0x27c], eax
je 0x404435
mov eax, dword [0x4b39cc]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_423]
movzx ecx, word [ebp - 0x280]
mov ebx, eax
add ebx, dword [ebp - 0x27c]
sub ecx, 0x3334
je 0x4044e1
sub ecx, 2
je 0x404457
dec ecx
jne 0x404410
cmp dword [ebp - 0x278], ecx
jne 0x404410
mov ecx, dword [0x4b39cc]
lea eax, [ebp - 0x270]
push dword [ecx + 0x26c]
lea edx, [ebp - 0x280]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424e00
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x404447
mov ecx, dword [ebp - 0x270]
add ecx, 4
mov edx, ecx
call fcn.00405e00
mov dword [ebp - 0x278], 1
test edi, edi
je 0x40441d
cmp dword [ebp - 0x278], 0
jne 0x404447
mov eax, dword [0x4b39cc]
push ebx
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_425]
mov eax, 0x7f7f
cmp word [ebp - 0x280], ax
jne 0x404350
mov eax, dword [0x4b39cc]
inc dword [eax + 0xc4]
jmp 0x404569
mov ecx, dword [0x4b39cc]
cmp dword [ecx + 0xd4], 0
je 0x4044d7
push dword [ecx + 0x26c]
lea eax, [ebp - 0x284]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
lea edx, [ebp - 0x280]
call fcn.00424e00
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x404447
mov edx, dword [ebp - 0x284]
test edx, edx
je 0x4044d7
mov eax, dword [0x4b39cc]
cmp byte [eax + 0x384], 0
jne 0x4044c2
lea ecx, [ebp - 0x284]
call fcn.004030c0
mov eax, dword [0x4b39cc]
mov edx, dword [ebp - 0x284]
mov ecx, dword [eax + 0xc4]
mov eax, dword [eax + 0xd4]
inc dword [ebp - 0x26c]
mov dword [eax + ecx*4], edx
mov edi, 1
jmp 0x404414
mov ecx, dword [0x4b39cc]
lea eax, [ebp - 0x130]
push dword [ecx + 0x26c]
mov ecx, dword [ecx + 0x9c]
push 0
push 0x10
push eax
lea edx, [ebp - 0x280]
call fcn.00424c60
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x404447
test byte [ebp - 0x124], 0x40
jne 0x404410
lea edi, [eax + 1]
jmp 0x404414
cmp eax, 0x6669
jg case.0x403863.8741
cmp eax, 0x6666
jge 0x404556
add eax, 0xffffaaab
cmp eax, 3
ja case.0x403863.8741
lea ecx, [ebp - 0x254]
call fcn.00434550
jmp 0x404561
lea ecx, [ebp - 0x254]
call fcn.00434510
mov esi, eax
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40485d
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_423]
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_425]
push dword [ebp - 0x2a4]
mov eax, dword [0x4b39cc]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov eax, 0x7f7f
cmp word [ebp - 0x254], ax
je 0x4045c5
mov eax, dword [0x4b39cc]
jmp 0x4037f0
mov esi, 8
jmp 0x40485d
call fcn.0046ee39
mov esi, 0x13
jmp 0x40485d
test esi, esi
jne 0x40485d
mov ebx, dword [ebp - 0x26c]
test ebx, ebx
jne 0x4045fe
mov edi, dword [0x4b39cc]
cmp dword [edi + 0xd4], ebx
je 0x4045fe
mov eax, dword [edi + 0xd4]
test eax, eax
je 0x4045fe
push eax
call fcn.0046d497
add esp, 4
mov dword [edi + 0xd4], ebx
mov eax, dword [0x4b39cc]
mov ecx, dword [ebp - 0x29c]
mov dword [eax + 0x1e8], ecx
mov ecx, dword [0x4b39cc]
mov ecx, dword [ecx + 0xc0]
call fcn.00450e70
mov eax, dword [0x4b39cc]
mov eax, dword [eax + 0x37c]
test dword [eax], 0x8000000
je 0x40469a
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x248], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40469a
cmp dword [ebp - 0x238], 2
jne 0x40469a
cmp dword [ebp - 0x244], 5
jb 0x40469a
push 0x491d6c
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x404693
push str.ImmDisableIME
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40468c
push 0
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x25c], 0
jne 0x4046fe
cmp dword [ebp - 0x268], 0
jne 0x4046fe
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x4046e0
mov esi, dword [0x4b39b0]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
push dword [0x4b3b34]
mov dword [0x4b39b0], eax
call dword [sym.imp.MMFS2.dll_Ordinal_121]
test esi, esi
je 0x4046e0
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
call fcn.004550b0
mov esi, eax
test esi, esi
jne 0x40485d
call fcn.00402760
mov esi, eax
test esi, esi
jne 0x40485d
mov eax, dword [0x4b39cc]
mov ecx, dword [0x4b399c]
mov dword [eax + 0x1c4], ecx
call fcn.004028c0
test eax, eax
jne 0x404737
or esi, 0xffffffff
jmp 0x40485d
mov eax, dword [0x4b39cc]
mov eax, dword [eax + 0xb0]
test eax, eax
je 0x404777
test ebx, ebx
jne 0x404777
mov edi, dword [sym.imp.USER32.dll_GetMenuState]
push ebx
push 0x3f3
push eax
call edi
cmp eax, 0xffffffff
je 0x40477d
mov eax, dword [0x4b39cc]
push ebx
push 0x3f3
push dword [eax + 0xb0]
call dword [sym.imp.USER32.dll_DeleteMenu]
jmp 0x40477d
mov edi, dword [sym.imp.USER32.dll_GetMenuState]
mov eax, dword [0x4b39cc]
mov eax, dword [eax + 0xb0]
test eax, eax
je 0x4047d9
push 0
push 0x401
push eax
call edi
cmp eax, 0xffffffff
je 0x4047d9
mov ecx, dword [0x4b39cc]
mov eax, 0x1000
test word [ecx + 0x14], ax
jne 0x4047d9
push 0
push 0x401
push dword [ecx + 0xb0]
call dword [sym.imp.USER32.dll_DeleteMenu]
mov eax, dword [0x4b39cc]
push 1
push dword [eax + 0xb0]
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, eax
call fcn.00450e20
mov ebx, dword [ebp - 0x25c]
test ebx, ebx
jne 0x40480f
mov eax, dword [0x4b39cc]
test byte [eax + 0x16], 8
je 0x40480f
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_31]
push ebx
push ebx
push ebx
push 4
push dword [0x4b39a0]
call edi
or eax, 4
push eax
push 2
push dword [0x4b39a0]
call edi
mov ecx, dword [0x4b39a8]
test ebx, ebx
je 0x40481f
mov ecx, dword [ebx + 0x1d0]
cmp dword [ebp - 0x268], 0
jne 0x40483c
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00442280
mov esi, eax
add esp, 4
test esi, esi
jne 0x40485d
test ebx, ebx
jne 0x40485d
mov eax, dword [0x4b39cc]
mov ecx, 0x800
test word [eax + 0x14], cx
je 0x40485d
lea ecx, [ebx + 1]
call fcn.00450500
call fcn.004028c0
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x404870
push eax
call fcn.0046d497
add esp, 4
test esi, esi
jne 0x4048bf
mov ecx, dword [0x4b39cc]
test ecx, ecx
je 0x40489c
mov eax, dword [ecx + 0x1d0]
mov dword [0x4b39ac], eax
mov eax, dword [ecx + 0x1d4]
mov dword [0x4b39a4], eax
mov eax, dword [ebp - 0x28c]
jmp 0x4048f3
mov eax, dword [ebp - 0x28c]
mov dword [0x4b39ac], 0
mov dword [0x4b39a4], 0
jmp 0x4048f3
mov esi, 0x14
jmp 0x4048c1
jle 0x4048db
test byte [0x4b3b4e], 1
je 0x4048db
push ecx
mov ecx, dword [0x4b39a8]
mov edx, esi
call fcn.004420a0
add esp, 4
mov ecx, dword [ebp - 0x264]
call fcn.00404b00
mov ecx, dword [ebp - 0x2a0]
call fcn.004029b0
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.0046d3f6
mov esp, ebp
pop ebp
ret