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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a5b0
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.0046d9a4
mov ebx, eax
add esp, 8
mov dword [ebp - 0x264], ebx
test ebx, ebx
jne 0x4034ab
call fcn.00470841
push 1
push 0x3b8
call fcn.0046d9a4
add esp, 8
mov ebx, eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x28c], ebx
test ebx, ebx
je 0x4048e1
mov ecx, ebx
call fcn.00402a40
mov ecx, ebx
call fcn.004029b0
mov ecx, dword [0x4b39ac]
mov dword [ebp - 0x2a0], eax
lea ecx, [ecx + 0x168]
call dword [sym.imp.MMFS2.dll_Ordinal_255]
mov eax, dword [0x4b39ac]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0xfc], 0xffffffff
mov eax, dword [0x4b39ac]
xor ebx, ebx
mov dword [eax + 0x100], 0xffffffff
mov eax, dword [0x4b39ac]
mov dword [ebp - 0x26c], ebx
mov dword [eax + 0x104], 0xffffffff
mov eax, dword [0x4b39ac]
mov dword [eax + 0x108], 0xffffffff
mov eax, dword [0x4b39ac]
mov dword [eax + 0x1f0], 0xffffffff
mov eax, dword [0x4b39ac]
mov dword [eax + 0x1a8], esi
mov eax, dword [0x4b39ac]
mov dword [eax + 0x380], ebx
mov eax, dword [0x4b39ac]
mov byte [eax + 0x3ac], bl
mov eax, dword [0x4b39ac]
mov dword [eax + 0x398], ebx
mov eax, dword [0x4b39ac]
mov dword [eax + 0x39c], 3
mov eax, dword [0x4b39ac]
mov dword [eax + 0x3b4], 0x429f60
test edx, edx
je 0x403628
mov eax, dword [0x4b39ac]
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x1b0], ecx
mov ecx, dword [0x4b39ac]
mov eax, dword [ecx + 0x1b0]
shr eax, 1
and eax, 1
mov dword [ecx + 0x244], eax
mov ecx, dword [0x4b39ac]
mov eax, dword [ecx + 0x1b0]
shr eax, 2
and eax, 1
mov dword [ecx + 0x248], eax
mov ecx, dword [0x4b39ac]
mov eax, dword [ecx + 0x1b0]
and eax, 1
mov dword [ecx + 0x24c], eax
mov ecx, dword [0x4b39ac]
mov eax, dword [ecx + 0x1b0]
and eax, 1
mov dword [ecx + 0x250], eax
mov ecx, dword [0x4b39ac]
mov eax, dword [ecx + 0x1b0]
shr eax, 0x13
and eax, 1
mov dword [ecx + 0x240], eax
test byte [0x4b3994], 0x10
je 0x403628
test dword [edx + 0x10], 0x4100020
jne 0x403628
mov eax, dword [ebp - 0x264]
mov dword [eax + 0x394], 2
mov eax, dword [0x4b39ac]
xor ebx, ebx
mov dword [eax + 0x9c], 0xffffffff
test edi, edi
jne 0x403659
mov edi, dword [0x4b39c4]
mov ebx, dword [0x4b21b0]
test edi, edi
je 0x4048cb
test ebx, ebx
je 0x4048cb
mov esi, dword [sym.imp.MMFS2.dll_Ordinal_1033]
push 0
push edi
call esi
mov ecx, eax
mov eax, dword [0x4b39ac]
mov dword [eax + 0x9c], ecx
cmp ecx, 0xffffffff
jne 0x403684
lea esi, [ecx + 5]
mov dword [0x4b38a4], edi
jmp 0x4048b1
test ebx, ebx
je 0x40372d
cmp dword [ebp - 0x25c], 0
jne 0x40371b
cmp dword [0x4b3848], 0
jne 0x40371b
push 2
push 0x16e260
call fcn.0046d9a4
add esp, 8
mov dword [0x4b3848], eax
push 0x104
push eax
push dword [0x4b3978]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push dword [0x4b3848]
call esi
mov esi, eax
mov dword [ebp - 0x260], esi
cmp esi, 0xffffffff
je 0x40371b
push 0x100
push esi
call dword [sym.imp.MMFS2.dll_Ordinal_430]
push 0x16e260
push dword [0x4b3848]
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 0x40371b
cmp esi, 0x40000002
jne 0x404860
mov eax, dword [0x4b39ac]
push ebx
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov eax, dword [0x4b39ac]
push 0x10
mov dword [eax + 0x84], edi
mov eax, dword [0x4b39ac]
mov dword [eax + 0xa0], ebx
mov eax, dword [0x4b39ac]
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 0x4048af
mov eax, dword [0x4b39ac]
mov ecx, dword [eax]
cmp ecx, 0x454d4150
jne 0x40378b
mov byte [eax + 0x384], 0
jmp 0x40379e
cmp ecx, 0x554d4150
jne 0x4048a8
mov byte [eax + 0x384], 1
mov eax, dword [0x4b39ac]
mov ecx, 0x302
cmp word [eax + 4], cx
je 0x4037b8
mov esi, 0x13
jmp 0x4048b1
cmp dword [ebp - 0x25c], 0
jne 0x4037d1
cmp dword [eax + 8], 3
je 0x4037d1
mov esi, 0x13
jmp 0x4048b1
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 0x40484d
cmp dword [ebp - 0x250], eax
je 0x404584
mov eax, dword [0x4b39ac]
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 0x404521
je 0x4042f0
sub eax, 0x2223
cmp eax, 0x2e
ja case.0x403853.8741
movzx eax, byte [eax + 0x404974]
jmp dword [eax*4 + 0x404900]
mov ecx, dword [0x4b39ac]
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.00424b60
mov ebx, dword [ebp - 0x25c]
mov ecx, dword [0x4b39ac]
add esp, 0x10
mov esi, eax
mov dword [ebp - 0x24c], esi
test ebx, ebx
jne 0x4038b1
mov eax, 0x200
test word [ecx + 0x16], ax
je 0x4038b1
mov eax, 1
mov word [0x4b3b2c], ax
lea edx, [ecx + 0xd0]
mov ecx, dword [ecx + 0x74]
shl ecx, 2
call fcn.0042d120
test eax, eax
je 0x40459c
mov edi, dword [0x4b39ac]
test byte [edi + 0x16], 4
jne 0x4038ed
mov ecx, dword [edi + 0x74]
lea edx, [edi + 0xd4]
shl ecx, 2
call fcn.0042d120
mov edi, dword [0x4b39ac]
push 1
push 0x100
call fcn.0046d9a4
add esp, 8
mov dword [edi + 0x26c], eax
test ebx, ebx
jne 0x403924
mov ecx, dword [0x4b3840]
test ecx, ecx
je 0x403924
mov eax, dword [0x4b39ac]
mov edx, 0x800
test word [eax + 0x16], dx
jne 0x403924
push 1
call ecx
mov ecx, dword [0x4b39ac]
test byte [ecx + 0x14], 0x10
je 0x404559
mov byte [ecx + 0x390], 1
jmp 0x404559
mov ecx, dword [0x4b39ac]
push 0
push 0
lea eax, [ecx + 0x380]
mov ecx, dword [ecx + 0x9c]
push 4
push eax
lea edx, [ebp - 0x254]
call fcn.00424b60
add esp, 0x10
jmp 0x404551
mov ecx, dword [0x4b39ac]
push 0
push 0
lea eax, [ecx + 0x3a8]
mov ecx, dword [ecx + 0x9c]
push 4
push eax
lea edx, [ebp - 0x254]
call fcn.00424b60
mov ecx, dword [0x4b39ac]
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x24c], esi
call fcn.00403380
jmp 0x404559
push 0
push ecx
mov ecx, dword [0x4b39ac]
lea eax, [ecx + 0x80]
mov ecx, dword [ecx + 0x9c]
push eax
lea edx, [ebp - 0x254]
call fcn.00424d00
add esp, 0xc
jmp 0x404551
push 0
push ecx
mov ecx, dword [0x4b39ac]
lea eax, [ecx + 0x8c]
jmp 0x4039ba
mov ecx, dword [0x4b39ac]
lea edx, [ebp - 0x254]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x90]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424d00
mov ecx, dword [0x4b39ac]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
mov dword [ebp - 0x24c], esi
jne 0x404559
add ecx, 0x90
call fcn.004030b0
jmp 0x404559
push 0
push ecx
mov ecx, dword [0x4b39ac]
lea edx, [ebp - 0x254]
lea eax, [ecx + 0x88]
mov ecx, dword [ecx + 0x9c]
push eax
mov dword [ebp - 0x298], 1
call fcn.00424d00
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 0x403b29
push dword [ebx + 0x80]
mov edx, edi
mov ecx, ebx
call fcn.004031e0
add esp, 4
push dword [ebx + 0x8c]
mov edx, edi
mov ecx, ebx
call fcn.004031e0
add esp, 4
push dword [ebx + 0x88]
mov edx, edi
mov ecx, ebx
call fcn.004031e0
add esp, 4
lea eax, [edi + 0x80]
push 0x80
push 0
push eax
call fcn.00471f40
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403ae0
sub ecx, edx
inc ecx
mov dl, 0x36
mov bl, dl
mov dword [ebp - 0x260], ecx
test ecx, ecx
jle 0x403b21
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 0x403b00
mov esi, dword [ebp - 0x294]
mov byte [edi], bl
mov ebx, dword [ebp - 0x264]
cmp byte [ebx + 0x384], 0
jne 0x404559
cmp dword [ebx + 0x80], 0
lea ecx, [ebx + 0x80]
je 0x403b4a
call fcn.004030b0
cmp dword [ebx + 0x8c], 0
lea ecx, [ebx + 0x8c]
je 0x403b5e
call fcn.004030b0
cmp dword [ebx + 0x88], 0
lea ecx, [ebx + 0x88]
je 0x404559
call fcn.004030b0
jmp 0x404559
cmp dword [ebp - 0x298], 0
jne 0x403ba4
mov eax, dword [0x4b39ac]
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 [0x4b39ac]
lea edx, [ebp - 0x254]
lea eax, [ecx + 0x94]
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424d00
mov ecx, dword [0x4b39ac]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
mov dword [ebp - 0x24c], esi
jne 0x404559
add ecx, 0x94
call fcn.004030b0
jmp 0x404559
mov ecx, dword [0x4b39ac]
lea edx, [ebp - 0x254]
push dword [ecx + 0x26c]
lea eax, [ecx + 0xa4]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424d00
mov ecx, dword [0x4b39ac]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
mov dword [ebp - 0x24c], esi
jne 0x404559
add ecx, 0xa4
call fcn.004030b0
jmp 0x404559
cmp dword [ebp - 0x25c], 0
je case.0x403853.8741
test dword [ebp + 0x10], 0x80000000
je case.0x403853.8741
push 0
push ecx
mov ecx, dword [0x4b39ac]
lea edx, [ebp - 0x254]
lea eax, [ecx + 0xa8]
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424d00
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40484d
mov ecx, dword [0x4b39ac]
mov ecx, dword [ecx + 0xa8]
call fcn.00402fe0
mov ecx, dword [0x4b39ac]
mov dword [ecx + 0xac], eax
jmp case.0x403853.8741
mov eax, dword [0x4b39ac]
lea edx, [ebp - 0x254]
mov dword [eax + 0x260], 0
mov ecx, dword [0x4b39ac]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x260]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424d00
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40484d
jmp case.0x403853.8741
mov eax, dword [0x4b39ac]
lea edx, [ebp - 0x254]
mov dword [eax + 0x274], 0
mov ecx, dword [0x4b39ac]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x274]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424d00
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40484d
mov ecx, dword [0x4b39ac]
cmp byte [ecx + 0x384], al
jne case.0x403853.8741
mov eax, dword [ecx + 0x274]
add ecx, 0x274
test eax, eax
je case.0x403853.8741
cmp dword [eax], esi
je case.0x403853.8741
call fcn.00403110
jmp case.0x403853.8741
cmp dword [ebp - 0x25c], 0
jne case.0x403853.8741
push 0
push ecx
mov ecx, dword [0x4b39ac]
lea eax, [ecx + 0xc0]
jmp 0x4039ba
push 0
push ecx
mov ecx, dword [0x4b39ac]
lea eax, [ecx + 0xbc]
jmp 0x4039ba
push 0
push ecx
mov ecx, dword [0x4b39ac]
lea eax, [ecx + 0x37c]
jmp 0x4039ba
cmp dword [0x4b3b10], 0
jne case.0x403853.8741
push 0
push ecx
mov ecx, dword [0x4b39ac]
push 0x4b3b10
mov ecx, dword [ecx + 0x9c]
lea edx, [ebp - 0x254]
call fcn.00424d00
mov esi, eax
mov eax, dword [0x4b39ac]
add esp, 0xc
cmp byte [eax + 0x384], 0
mov dword [ebp - 0x24c], esi
jne 0x404559
mov ecx, 0x4b3b10
call fcn.004030b0
jmp 0x404559
cmp dword [ebp - 0x274], 0
mov dword [ebp - 0x268], 0
je case.0x403853.8741
mov eax, dword [0x4b39ac]
push dword [eax + 0x9c]
call edi
mov ecx, dword [0x4b39ac]
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.00424b60
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40484d
push dword [ebp - 0x274]
mov eax, dword [0x4b39ac]
xor byte [ebp - 0x288], 0xd
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
push ecx
mov ecx, dword [0x4b39ac]
lea edx, [edi - 8]
mov ecx, dword [ecx + 0x9c]
call fcn.00424fd0
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_423]
add esp, 4
cmp eax, dword [ebp - 0x288]
je case.0x403853.8741
mov dword [ebp - 0x268], 1
jmp case.0x403853.8741
xor edx, edx
lea ecx, [ebp - 0x254]
call fcn.004235f0
jmp 0x404551
mov edx, 1
lea ecx, [ebp - 0x254]
call fcn.004235f0
jmp 0x404551
lea ecx, [ebp - 0x254]
call fcn.00432980
jmp 0x404551
mov eax, dword [0x4b39ac]
push 0
mov dword [eax + 0x388], 0
push ecx
mov ecx, dword [0x4b39ac]
lea edx, [ebp - 0x254]
lea eax, [ecx + 0x388]
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424d00
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40484d
mov eax, dword [0x4b39ac]
mov ebx, dword [eax + 0x388]
test ebx, ebx
je 0x404567
mov edi, dword [ebx]
xor edx, edx
test edi, edi
je 0x404561
lea ecx, [ebx + 4]
lea esp, [esp]
mov eax, dword [ecx]
test byte [eax + ebx + 0xc], 0xf
jne 0x403f96
inc edx
add ecx, 4
cmp edx, edi
jb 0x403f80
jmp 0x404561
mov eax, dword [0x4b39ac]
mov byte [eax + 0x390], 1
jmp 0x404561
mov eax, dword [0x4b39ac]
test byte [eax + 0x1a], 8
je 0x403ff5
test dword [eax + 0x1b0], 0x4000
jne 0x403ff5
mov dword [eax + 0x250], 0
mov eax, dword [0x4b39ac]
mov dword [eax + 0x24c], 0
mov eax, dword [0x4b39ac]
mov dword [eax + 0x248], 0
mov eax, dword [0x4b39ac]
mov dword [eax + 0x244], 0
call fcn.00435410
jmp 0x404551
cmp dword [0x4b384c], 0
je case.0x403853.8741
call fcn.00402730
call fcn.00406040
jmp case.0x403853.8741
mov ecx, dword [0x4b39ac]
lea edx, [ebp - 0x254]
push dword [ecx + 0x26c]
lea eax, [ecx + 0xcc]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424d00
mov esi, eax
mov eax, dword [0x4b39ac]
add esp, 0xc
push dword [eax + 0xcc]
mov dword [ebp - 0x24c], esi
call fcn.00470857
add esp, 4
shr eax, 1
movzx ecx, ax
mov eax, dword [0x4b39ac]
mov dword [eax + 0xc8], ecx
jmp 0x404559
push 4
lea eax, [ebp - 0x290]
push eax
mov eax, dword [0x4b39ac]
push dword [eax + 0x9c]
call ebx
mov esi, eax
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40484d
cmp dword [ebp - 0x290], eax
je case.0x403853.8741
mov ecx, dword [0x4b39ac]
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 0x40426d
push 2
lea eax, [ebp - 0x258]
push eax
mov eax, dword [0x4b39ac]
push dword [eax + 0x9c]
call ebx
mov esi, eax
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40426d
push 0x218
call fcn.0046e9ff
mov edi, eax
add esp, 4
test edi, edi
je 0x404262
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 [0x4b39ac]
cmp byte [ecx + 0x384], al
movzx eax, word [ebp - 0x258]
jne 0x404194
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 0x4045a6
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 0x4041b9
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.00425280
test esi, esi
jne 0x404246
mov eax, dword [0x4b39ac]
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 0x404246
mov eax, dword [0x4b39ac]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_423]
mov dword [edi + 0x210], eax
mov ecx, dword [0x4b39ac]
push edi
lea ecx, [ecx + 0x168]
call dword [sym.imp.MMFS2.dll_Ordinal_333]
push dword [ebx]
mov eax, dword [0x4b39ac]
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 0x40426d
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_425]
jmp 0x4040d2
push ecx
mov ecx, edi
call fcn.004049b0
mov eax, dword [0x4b39ac]
mov ecx, dword [ebp - 0x294]
mov word [eax + 0x1a], cx
jmp 0x404559
mov esi, 8
mov dword [ebp - 0x24c], esi
mov eax, dword [0x4b39ac]
mov ecx, dword [ebp - 0x294]
mov word [eax + 0x1a], cx
jmp 0x404559
mov eax, dword [0x4b39ac]
push dword [eax + 0x9c]
call edi
mov dword [0x4b3854], eax
mov eax, dword [ebp - 0x250]
mov dword [0x4b3850], eax
jmp case.0x403853.8741
mov ecx, dword [0x4b39ac]
push 4
lea eax, [ecx + 0x398]
push eax
push dword [ecx + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x40484d
mov ecx, dword [0x4b39ac]
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 0x40484d
jmp case.0x403853.8741
mov eax, dword [0x4b39ac]
push dword [eax + 0x9c]
call edi
mov ecx, dword [0x4b39ac]
mov edx, dword [ecx + 0xc4]
mov ecx, dword [ecx + 0xd0]
mov dword [ecx + edx*4], eax
mov eax, dword [0x4b39ac]
cmp dword [eax + 0xd4], 0
jne 0x40432d
cmp dword [ebp - 0x278], 0
jne 0x404437
xor eax, eax
mov word [ebp - 0x280], ax
xor edi, edi
jmp 0x404340
push 8
lea eax, [ebp - 0x280]
push eax
mov eax, dword [0x4b39ac]
push dword [eax + 0x9c]
call ebx
mov esi, eax
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x404437
cmp dword [ebp - 0x27c], eax
je 0x404425
mov eax, dword [0x4b39ac]
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 0x4044d1
sub ecx, 2
je 0x404447
dec ecx
jne 0x404400
cmp dword [ebp - 0x278], ecx
jne 0x404400
mov ecx, dword [0x4b39ac]
lea eax, [ebp - 0x270]
push dword [ecx + 0x26c]
lea edx, [ebp - 0x280]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424d00
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x404437
mov ecx, dword [ebp - 0x270]
add ecx, 4
mov edx, ecx
call fcn.00405df0
mov dword [ebp - 0x278], 1
test edi, edi
je 0x40440d
cmp dword [ebp - 0x278], 0
jne 0x404437
mov eax, dword [0x4b39ac]
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 0x404340
mov eax, dword [0x4b39ac]
inc dword [eax + 0xc4]
jmp 0x404559
mov ecx, dword [0x4b39ac]
cmp dword [ecx + 0xd4], 0
je 0x4044c7
push dword [ecx + 0x26c]
lea eax, [ebp - 0x284]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
lea edx, [ebp - 0x280]
call fcn.00424d00
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x404437
mov edx, dword [ebp - 0x284]
test edx, edx
je 0x4044c7
mov eax, dword [0x4b39ac]
cmp byte [eax + 0x384], 0
jne 0x4044b2
lea ecx, [ebp - 0x284]
call fcn.004030b0
mov eax, dword [0x4b39ac]
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 0x404404
mov ecx, dword [0x4b39ac]
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.00424b60
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x404437
test byte [ebp - 0x124], 0x40
jne 0x404400
lea edi, [eax + 1]
jmp 0x404404
cmp eax, 0x6669
jg case.0x403853.8741
cmp eax, 0x6666
jge 0x404546
add eax, 0xffffaaab
cmp eax, 3
ja case.0x403853.8741
lea ecx, [ebp - 0x254]
call fcn.004342b0
jmp 0x404551
lea ecx, [ebp - 0x254]
call fcn.00434270
mov esi, eax
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40484d
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 [0x4b39ac]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov eax, 0x7f7f
cmp word [ebp - 0x254], ax
je 0x4045b5
mov eax, dword [0x4b39ac]
jmp 0x4037e0
mov esi, 8
jmp 0x40484d
call fcn.0046eb89
mov esi, 0x13
jmp 0x40484d
test esi, esi
jne 0x40484d
mov ebx, dword [ebp - 0x26c]
test ebx, ebx
jne 0x4045ee
mov edi, dword [0x4b39ac]
cmp dword [edi + 0xd4], ebx
je 0x4045ee
mov eax, dword [edi + 0xd4]
test eax, eax
je 0x4045ee
push eax
call fcn.0046d1e7
add esp, 4
mov dword [edi + 0xd4], ebx
mov eax, dword [0x4b39ac]
mov ecx, dword [ebp - 0x29c]
mov dword [eax + 0x1e8], ecx
mov ecx, dword [0x4b39ac]
mov ecx, dword [ecx + 0xc0]
call fcn.00450bd0
mov eax, dword [0x4b39ac]
mov eax, dword [eax + 0x37c]
test dword [eax], 0x8000000
je 0x40468a
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x248], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40468a
cmp dword [ebp - 0x238], 2
jne 0x40468a
cmp dword [ebp - 0x244], 5
jb 0x40468a
push 0x491d6c
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x404683
push str.ImmDisableIME
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40467c
push 0
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x25c], 0
jne 0x4046ee
cmp dword [ebp - 0x268], 0
jne 0x4046ee
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x4046d0
mov esi, dword [0x4b3990]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
push dword [0x4b3b14]
mov dword [0x4b3990], eax
call dword [sym.imp.MMFS2.dll_Ordinal_121]
test esi, esi
je 0x4046d0
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
call fcn.00454e10
mov esi, eax
test esi, esi
jne 0x40484d
call fcn.00402760
mov esi, eax
test esi, esi
jne 0x40484d
mov eax, dword [0x4b39ac]
mov ecx, dword [0x4b397c]
mov dword [eax + 0x1c4], ecx
call fcn.004028c0
test eax, eax
jne 0x404727
or esi, 0xffffffff
jmp 0x40484d
mov eax, dword [0x4b39ac]
mov eax, dword [eax + 0xb0]
test eax, eax
je 0x404767
test ebx, ebx
jne 0x404767
mov edi, dword [sym.imp.USER32.dll_GetMenuState]
push ebx
push 0x3f3
push eax
call edi
cmp eax, 0xffffffff
je 0x40476d
mov eax, dword [0x4b39ac]
push ebx
push 0x3f3
push dword [eax + 0xb0]
call dword [sym.imp.USER32.dll_DeleteMenu]
jmp 0x40476d
mov edi, dword [sym.imp.USER32.dll_GetMenuState]
mov eax, dword [0x4b39ac]
mov eax, dword [eax + 0xb0]
test eax, eax
je 0x4047c9
push 0
push 0x401
push eax
call edi
cmp eax, 0xffffffff
je 0x4047c9
mov ecx, dword [0x4b39ac]
mov eax, 0x1000
test word [ecx + 0x14], ax
jne 0x4047c9
push 0
push 0x401
push dword [ecx + 0xb0]
call dword [sym.imp.USER32.dll_DeleteMenu]
mov eax, dword [0x4b39ac]
push 1
push dword [eax + 0xb0]
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, eax
call fcn.00450b80
mov ebx, dword [ebp - 0x25c]
test ebx, ebx
jne 0x4047ff
mov eax, dword [0x4b39ac]
test byte [eax + 0x16], 8
je 0x4047ff
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_31]
push ebx
push ebx
push ebx
push 4
push dword [0x4b3980]
call edi
or eax, 4
push eax
push 2
push dword [0x4b3980]
call edi
mov ecx, dword [0x4b3988]
test ebx, ebx
je 0x40480f
mov ecx, dword [ebx + 0x1d0]
cmp dword [ebp - 0x268], 0
jne 0x40482c
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00441fe0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40484d
test ebx, ebx
jne 0x40484d
mov eax, dword [0x4b39ac]
mov ecx, 0x800
test word [eax + 0x14], cx
je 0x40484d
lea ecx, [ebx + 1]
call fcn.00450260
call fcn.004028c0
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x404860
push eax
call fcn.0046d1e7
add esp, 4
test esi, esi
jne 0x4048af
mov ecx, dword [0x4b39ac]
test ecx, ecx
je 0x40488c
mov eax, dword [ecx + 0x1d0]
mov dword [0x4b398c], eax
mov eax, dword [ecx + 0x1d4]
mov dword [0x4b3984], eax
mov eax, dword [ebp - 0x28c]
jmp 0x4048e3
mov eax, dword [ebp - 0x28c]
mov dword [0x4b398c], 0
mov dword [0x4b3984], 0
jmp 0x4048e3
mov esi, 0x14
jmp 0x4048b1
jle 0x4048cb
test byte [0x4b3b2e], 1
je 0x4048cb
push ecx
mov ecx, dword [0x4b3988]
mov edx, esi
call fcn.00441e00
add esp, 4
mov ecx, dword [ebp - 0x264]
call fcn.00404af0
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.0046d146
mov esp, ebp
pop ebp
ret