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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485280
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4a7ff8]
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 ebx, ecx
mov esi, dword [ebp + 8]
push 1
push 0x3a8
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x264], 0
call fcn.0046d8a4
mov edi, eax
add esp, 8
mov dword [ebp - 0x278], edi
test edi, edi
jne 0x40338b
call fcn.0046f831
push 1
push 0x3a8
call fcn.0046d8a4
add esp, 8
mov edi, eax
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x28c], edi
test edi, edi
je 0x404761
mov ecx, edi
call fcn.00402a40
mov ecx, edi
call fcn.004029b0
mov ecx, dword [0x4ad9ac]
mov dword [ebp - 0x2a0], eax
lea ecx, [ecx + 0x168]
call dword [sym.imp.MMFS2.dll_Ordinal_255]
mov eax, dword [0x4ad9ac]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0xfc], 0xffffffff
mov eax, dword [0x4ad9ac]
mov dword [ebp - 0x270], 0
mov dword [eax + 0x100], 0xffffffff
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x104], 0xffffffff
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x108], 0xffffffff
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x1f0], 0xffffffff
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x1a8], esi
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x380], 0
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x398], 0
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x39c], 3
test edx, edx
je 0x4034f2
mov eax, dword [0x4ad9ac]
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x1b0], ecx
mov ecx, dword [0x4ad9ac]
mov eax, dword [ecx + 0x1b0]
shr eax, 1
and eax, 1
mov dword [ecx + 0x244], eax
mov ecx, dword [0x4ad9ac]
mov eax, dword [ecx + 0x1b0]
shr eax, 2
and eax, 1
mov dword [ecx + 0x248], eax
mov ecx, dword [0x4ad9ac]
mov eax, dword [ecx + 0x1b0]
and eax, 1
mov dword [ecx + 0x24c], eax
mov ecx, dword [0x4ad9ac]
mov eax, dword [ecx + 0x1b0]
and eax, 1
mov dword [ecx + 0x250], eax
mov ecx, dword [0x4ad9ac]
mov eax, dword [ecx + 0x1b0]
shr eax, 0x13
and eax, 1
mov dword [ecx + 0x240], eax
test byte [0x4ad994], 0x10
je 0x4034f2
test dword [edx + 0x10], 0x4100020
jne 0x4034f2
mov dword [edi + 0x394], 2
mov eax, dword [0x4ad9ac]
xor edi, edi
mov dword [eax + 0x9c], 0xffffffff
test ebx, ebx
jne 0x403523
mov ebx, dword [0x4ad9c4]
mov edi, dword [0x4ac1b0]
test ebx, ebx
je 0x40474b
test edi, edi
je 0x40474b
mov esi, dword [sym.imp.MMFS2.dll_Ordinal_1033]
push 0
push ebx
call esi
mov ecx, eax
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x9c], ecx
cmp ecx, 0xffffffff
jne 0x403548
lea esi, [ecx + 5]
jmp 0x404731
test edi, edi
je 0x4035f1
cmp dword [ebp - 0x25c], 0
jne 0x4035df
cmp dword [0x4ad848], 0
jne 0x4035df
push 2
push 0x16e260
call fcn.0046d8a4
add esp, 8
mov dword [0x4ad848], eax
push 0x104
push eax
push dword [0x4ad978]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push dword [0x4ad848]
call esi
mov esi, eax
mov dword [ebp - 0x260], esi
cmp esi, 0xffffffff
je 0x4035df
push 0x100
push esi
call dword [sym.imp.MMFS2.dll_Ordinal_430]
push 0x16e260
push dword [0x4ad848]
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 0x4035df
cmp esi, 0x40000002
jne 0x4046e0
mov eax, dword [0x4ad9ac]
push edi
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov eax, dword [0x4ad9ac]
push 0x10
mov dword [eax + 0x84], ebx
mov eax, dword [0x4ad9ac]
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_425]
mov dword [eax + 0xa0], edi
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x360], 0
mov eax, dword [0x4ad9ac]
push eax
push dword [eax + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x40472f
mov eax, dword [0x4ad9ac]
mov ecx, dword [eax]
cmp ecx, 0x454d4150
jne 0x40364e
mov byte [eax + 0x384], 0
jmp 0x403661
cmp ecx, 0x554d4150
jne 0x404728
mov byte [eax + 0x384], 1
mov eax, dword [0x4ad9ac]
mov ecx, 0x302
cmp word [eax + 4], cx
je 0x40367b
mov esi, 0x13
jmp 0x404731
cmp dword [ebp - 0x25c], 0
jne 0x403694
cmp dword [eax + 8], 2
je 0x403694
mov esi, 0x13
jmp 0x404731
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 0x4046cd
cmp dword [ebp - 0x250], eax
je 0x404404
mov eax, dword [0x4ad9ac]
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 0x4043a1
je 0x404170
sub eax, 0x2223
cmp eax, 0x2a
ja case.0x403716.8741
movzx eax, byte [eax + 0x4047f0]
jmp dword [eax*4 + 0x404780]
mov ecx, dword [0x4ad9ac]
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.00424a70
mov ebx, dword [ebp - 0x25c]
mov ecx, dword [0x4ad9ac]
add esp, 0x10
mov esi, eax
mov dword [ebp - 0x24c], esi
test ebx, ebx
jne 0x403774
mov eax, 0x200
test word [ecx + 0x16], ax
je 0x403774
mov eax, 1
mov word [0x4adb2c], ax
lea edx, [ecx + 0xd0]
mov ecx, dword [ecx + 0x74]
shl ecx, 2
call fcn.0042d1c0
test eax, eax
je 0x40441c
mov edi, dword [0x4ad9ac]
test byte [edi + 0x16], 4
jne 0x4037b0
mov ecx, dword [edi + 0x74]
lea edx, [edi + 0xd4]
shl ecx, 2
call fcn.0042d1c0
mov edi, dword [0x4ad9ac]
push 1
push 0x100
call fcn.0046d8a4
add esp, 8
mov dword [edi + 0x26c], eax
test ebx, ebx
jne 0x4037e7
mov ecx, dword [0x4ad840]
test ecx, ecx
je 0x4037e7
mov eax, dword [0x4ad9ac]
mov edx, 0x800
test word [eax + 0x16], dx
jne 0x4037e7
push 1
call ecx
mov ecx, dword [0x4ad9ac]
test byte [ecx + 0x14], 0x10
je 0x4043d9
mov byte [ecx + 0x390], 1
jmp 0x4043d9
mov ecx, dword [0x4ad9ac]
push 0
push 0
lea eax, [ecx + 0x380]
mov ecx, dword [ecx + 0x9c]
push 4
push eax
lea edx, [ebp - 0x254]
call fcn.00424a70
add esp, 0x10
jmp 0x4043d1
push 0
push ecx
mov ecx, dword [0x4ad9ac]
lea eax, [ecx + 0x80]
mov ecx, dword [ecx + 0x9c]
push eax
lea edx, [ebp - 0x254]
call fcn.00424bd0
add esp, 0xc
jmp 0x4043d1
push 0
push ecx
mov ecx, dword [0x4ad9ac]
lea eax, [ecx + 0x8c]
jmp 0x40383e
mov ecx, dword [0x4ad9ac]
lea edx, [ebp - 0x254]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x90]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424bd0
mov ecx, dword [0x4ad9ac]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
mov dword [ebp - 0x24c], esi
jne 0x4043d9
add ecx, 0x90
call fcn.004030b0
jmp 0x4043d9
push 0
push ecx
mov ecx, dword [0x4ad9ac]
lea edx, [ebp - 0x254]
lea eax, [ecx + 0x88]
mov ecx, dword [ecx + 0x9c]
push eax
mov dword [ebp - 0x298], 1
call fcn.00424bd0
mov ebx, dword [ebp - 0x278]
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 0x4039a9
push dword [ebx + 0x88]
mov edx, edi
mov ecx, ebx
call fcn.004031e0
add esp, 4
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
lea eax, [edi + 0x80]
push 0x80
push 0
push eax
call fcn.00470f20
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403960
sub ecx, edx
inc ecx
mov dl, 0x63
mov bl, dl
mov dword [ebp - 0x260], ecx
test ecx, ecx
jle 0x4039a1
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 0x403980
mov esi, dword [ebp - 0x294]
mov byte [edi], bl
mov ebx, dword [ebp - 0x278]
cmp byte [ebx + 0x384], 0
jne 0x4043d9
cmp dword [ebx + 0x80], 0
lea ecx, [ebx + 0x80]
je 0x4039ca
call fcn.004030b0
cmp dword [ebx + 0x8c], 0
lea ecx, [ebx + 0x8c]
je 0x4039de
call fcn.004030b0
cmp dword [ebx + 0x88], 0
lea ecx, [ebx + 0x88]
je 0x4043d9
call fcn.004030b0
jmp 0x4043d9
cmp dword [ebp - 0x298], 0
jne 0x403a24
mov eax, dword [0x4ad9ac]
push dword [eax + 0x9c]
call edi
sub eax, 8
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x264], 1
push 0
push ecx
mov ecx, dword [0x4ad9ac]
lea edx, [ebp - 0x254]
lea eax, [ecx + 0x94]
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424bd0
mov ecx, dword [0x4ad9ac]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
mov dword [ebp - 0x24c], esi
jne 0x4043d9
add ecx, 0x94
call fcn.004030b0
jmp 0x4043d9
mov ecx, dword [0x4ad9ac]
lea edx, [ebp - 0x254]
push dword [ecx + 0x26c]
lea eax, [ecx + 0xa4]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424bd0
mov ecx, dword [0x4ad9ac]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
mov dword [ebp - 0x24c], esi
jne 0x4043d9
add ecx, 0xa4
call fcn.004030b0
jmp 0x4043d9
cmp dword [ebp - 0x25c], 0
je case.0x403716.8741
test dword [ebp + 0x10], 0x80000000
je case.0x403716.8741
push 0
push ecx
mov ecx, dword [0x4ad9ac]
lea edx, [ebp - 0x254]
lea eax, [ecx + 0xa8]
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424bd0
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x4046cd
mov ecx, dword [0x4ad9ac]
mov ecx, dword [ecx + 0xa8]
call fcn.00402fe0
mov ecx, dword [0x4ad9ac]
mov dword [ecx + 0xac], eax
jmp case.0x403716.8741
mov eax, dword [0x4ad9ac]
lea edx, [ebp - 0x254]
mov dword [eax + 0x260], 0
mov ecx, dword [0x4ad9ac]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x260]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424bd0
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x4046cd
jmp case.0x403716.8741
mov eax, dword [0x4ad9ac]
lea edx, [ebp - 0x254]
mov dword [eax + 0x274], 0
mov ecx, dword [0x4ad9ac]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x274]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424bd0
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x4046cd
mov ecx, dword [0x4ad9ac]
cmp byte [ecx + 0x384], al
jne case.0x403716.8741
mov eax, dword [ecx + 0x274]
add ecx, 0x274
test eax, eax
je case.0x403716.8741
cmp dword [eax], esi
je case.0x403716.8741
call fcn.00403110
jmp case.0x403716.8741
cmp dword [ebp - 0x25c], 0
jne case.0x403716.8741
push 0
push ecx
mov ecx, dword [0x4ad9ac]
lea eax, [ecx + 0xc0]
jmp 0x40383e
push 0
push ecx
mov ecx, dword [0x4ad9ac]
lea eax, [ecx + 0xbc]
jmp 0x40383e
push 0
push ecx
mov ecx, dword [0x4ad9ac]
lea eax, [ecx + 0x37c]
jmp 0x40383e
cmp dword [0x4adb10], 0
jne case.0x403716.8741
push 0
push ecx
mov ecx, dword [0x4ad9ac]
push 0x4adb10
mov ecx, dword [ecx + 0x9c]
lea edx, [ebp - 0x254]
call fcn.00424bd0
mov esi, eax
mov eax, dword [0x4ad9ac]
add esp, 0xc
cmp byte [eax + 0x384], 0
mov dword [ebp - 0x24c], esi
jne 0x4043d9
mov ecx, 0x4adb10
call fcn.004030b0
jmp 0x4043d9
cmp dword [ebp - 0x26c], 0
mov dword [ebp - 0x264], 0
je case.0x403716.8741
mov eax, dword [0x4ad9ac]
push dword [eax + 0x9c]
call edi
mov ecx, dword [0x4ad9ac]
mov edi, eax
push dword [ecx + 0x26c]
mov ecx, dword [ecx + 0x9c]
sub edi, dword [ebp - 0x26c]
push 0
lea eax, [ebp - 0x288]
push 4
push eax
lea edx, [ebp - 0x254]
call fcn.00424a70
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x4046cd
push dword [ebp - 0x26c]
mov eax, dword [0x4ad9ac]
xor byte [ebp - 0x288], 0xd
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
push ecx
mov ecx, dword [0x4ad9ac]
lea edx, [edi - 8]
mov ecx, dword [ecx + 0x9c]
call fcn.00424e70
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_423]
add esp, 4
cmp eax, dword [ebp - 0x288]
je case.0x403716.8741
mov dword [ebp - 0x264], 1
jmp case.0x403716.8741
xor edx, edx
lea ecx, [ebp - 0x254]
call fcn.00423500
jmp 0x4043d1
mov edx, 1
lea ecx, [ebp - 0x254]
call fcn.00423500
jmp 0x4043d1
lea ecx, [ebp - 0x254]
call fcn.004329c0
jmp 0x4043d1
mov eax, dword [0x4ad9ac]
push 0
mov dword [eax + 0x388], 0
push ecx
mov ecx, dword [0x4ad9ac]
lea edx, [ebp - 0x254]
lea eax, [ecx + 0x388]
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424bd0
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x4046cd
mov eax, dword [0x4ad9ac]
mov ebx, dword [eax + 0x388]
test ebx, ebx
je 0x4043e7
mov edi, dword [ebx]
xor edx, edx
test edi, edi
je 0x4043e1
lea ecx, [ebx + 4]
lea esp, [esp]
mov eax, dword [ecx]
test byte [eax + ebx + 0xc], 0xf
jne 0x403e16
inc edx
add ecx, 4
cmp edx, edi
jb 0x403e00
jmp 0x4043e1
mov eax, dword [0x4ad9ac]
mov byte [eax + 0x390], 1
jmp 0x4043e1
mov eax, dword [0x4ad9ac]
test byte [eax + 0x1a], 8
je 0x403e75
test dword [eax + 0x1b0], 0x4000
jne 0x403e75
mov dword [eax + 0x250], 0
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x24c], 0
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x248], 0
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x244], 0
call fcn.00435440
jmp 0x4043d1
cmp dword [0x4ad84c], 0
je case.0x403716.8741
call fcn.00402730
call fcn.00405ec0
jmp case.0x403716.8741
mov ecx, dword [0x4ad9ac]
lea edx, [ebp - 0x254]
push dword [ecx + 0x26c]
lea eax, [ecx + 0xcc]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424bd0
mov esi, eax
mov eax, dword [0x4ad9ac]
add esp, 0xc
push dword [eax + 0xcc]
mov dword [ebp - 0x24c], esi
call fcn.0046f847
add esp, 4
shr eax, 1
movzx ecx, ax
mov eax, dword [0x4ad9ac]
mov dword [eax + 0xc8], ecx
jmp 0x4043d9
push 4
lea eax, [ebp - 0x290]
push eax
mov eax, dword [0x4ad9ac]
push dword [eax + 0x9c]
call ebx
mov esi, eax
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x4046cd
cmp dword [ebp - 0x290], eax
je case.0x403716.8741
mov ecx, dword [0x4ad9ac]
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 0x4040ed
push 2
lea eax, [ebp - 0x258]
push eax
mov eax, dword [0x4ad9ac]
push dword [eax + 0x9c]
call ebx
mov esi, eax
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x4040ed
push 0x218
call fcn.0046da14
mov edi, eax
add esp, 4
test edi, edi
je 0x4040e2
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 [0x4ad9ac]
cmp byte [ecx + 0x384], al
movzx eax, word [ebp - 0x258]
jne 0x404014
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 0x404426
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 0x404039
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.00425120
test esi, esi
jne 0x4040c6
mov eax, dword [0x4ad9ac]
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 0x4040c6
mov eax, dword [0x4ad9ac]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_423]
mov dword [edi + 0x210], eax
mov ecx, dword [0x4ad9ac]
push edi
lea ecx, [ecx + 0x168]
call dword [sym.imp.MMFS2.dll_Ordinal_333]
push dword [ebx]
mov eax, dword [0x4ad9ac]
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 0x4040ed
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_425]
jmp 0x403f52
push ecx
mov ecx, edi
call fcn.00404820
mov eax, dword [0x4ad9ac]
mov ecx, dword [ebp - 0x294]
mov word [eax + 0x1a], cx
jmp 0x4043d9
mov esi, 8
mov dword [ebp - 0x24c], esi
mov eax, dword [0x4ad9ac]
mov ecx, dword [ebp - 0x294]
mov word [eax + 0x1a], cx
jmp 0x4043d9
mov eax, dword [0x4ad9ac]
push dword [eax + 0x9c]
call edi
mov dword [0x4ad854], eax
mov eax, dword [ebp - 0x250]
mov dword [0x4ad850], eax
jmp case.0x403716.8741
mov ecx, dword [0x4ad9ac]
push 4
lea eax, [ecx + 0x398]
push eax
push dword [ecx + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x4046cd
mov ecx, dword [0x4ad9ac]
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 0x4046cd
jmp case.0x403716.8741
mov eax, dword [0x4ad9ac]
push dword [eax + 0x9c]
call edi
mov ecx, dword [0x4ad9ac]
mov edx, dword [ecx + 0xc4]
mov ecx, dword [ecx + 0xd0]
mov dword [ecx + edx*4], eax
mov eax, dword [0x4ad9ac]
cmp dword [eax + 0xd4], 0
jne 0x4041ad
cmp dword [ebp - 0x274], 0
jne 0x4042b7
xor eax, eax
mov word [ebp - 0x280], ax
xor edi, edi
jmp 0x4041c0
push 8
lea eax, [ebp - 0x280]
push eax
mov eax, dword [0x4ad9ac]
push dword [eax + 0x9c]
call ebx
mov esi, eax
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x4042b7
cmp dword [ebp - 0x27c], eax
je 0x4042a5
mov eax, dword [0x4ad9ac]
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 0x404351
sub ecx, 2
je 0x4042c7
dec ecx
jne 0x404280
cmp dword [ebp - 0x274], ecx
jne 0x404280
mov ecx, dword [0x4ad9ac]
lea eax, [ebp - 0x268]
push dword [ecx + 0x26c]
lea edx, [ebp - 0x280]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424bd0
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x4042b7
mov ecx, dword [ebp - 0x268]
add ecx, 4
mov edx, ecx
call fcn.00405c70
mov dword [ebp - 0x274], 1
test edi, edi
je 0x40428d
cmp dword [ebp - 0x274], 0
jne 0x4042b7
mov eax, dword [0x4ad9ac]
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 0x4041c0
mov eax, dword [0x4ad9ac]
inc dword [eax + 0xc4]
jmp 0x4043d9
mov ecx, dword [0x4ad9ac]
cmp dword [ecx + 0xd4], 0
je 0x404347
push dword [ecx + 0x26c]
lea eax, [ebp - 0x284]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
lea edx, [ebp - 0x280]
call fcn.00424bd0
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x4042b7
mov edx, dword [ebp - 0x284]
test edx, edx
je 0x404347
mov eax, dword [0x4ad9ac]
cmp byte [eax + 0x384], 0
jne 0x404332
lea ecx, [ebp - 0x284]
call fcn.004030b0
mov eax, dword [0x4ad9ac]
mov edx, dword [ebp - 0x284]
mov ecx, dword [eax + 0xc4]
mov eax, dword [eax + 0xd4]
inc dword [ebp - 0x270]
mov dword [eax + ecx*4], edx
mov edi, 1
jmp 0x404284
mov ecx, dword [0x4ad9ac]
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.00424a70
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x4042b7
test byte [ebp - 0x124], 0x40
jne 0x404280
lea edi, [eax + 1]
jmp 0x404284
cmp eax, 0x6669
jg case.0x403716.8741
cmp eax, 0x6666
jge 0x4043c6
add eax, 0xffffaaab
cmp eax, 3
ja case.0x403716.8741
lea ecx, [ebp - 0x254]
call fcn.004342e0
jmp 0x4043d1
lea ecx, [ebp - 0x254]
call fcn.004342a0
mov esi, eax
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x4046cd
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 [0x4ad9ac]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov eax, 0x7f7f
cmp word [ebp - 0x254], ax
je 0x404435
mov eax, dword [0x4ad9ac]
jmp 0x4036a3
mov esi, 8
jmp 0x4046cd
call fcn.0046db9e
mov esi, 0x13
jmp 0x4046cd
test esi, esi
jne 0x4046cd
mov ebx, dword [ebp - 0x270]
test ebx, ebx
jne 0x40446e
mov edi, dword [0x4ad9ac]
cmp dword [edi + 0xd4], ebx
je 0x40446e
mov eax, dword [edi + 0xd4]
test eax, eax
je 0x40446e
push eax
call fcn.0046d0ea
add esp, 4
mov dword [edi + 0xd4], ebx
mov eax, dword [0x4ad9ac]
mov ecx, dword [ebp - 0x29c]
mov dword [eax + 0x1e8], ecx
mov ecx, dword [0x4ad9ac]
mov ecx, dword [ecx + 0xc0]
call fcn.00450b80
mov eax, dword [0x4ad9ac]
mov eax, dword [eax + 0x37c]
test dword [eax], 0x8000000
je 0x40450a
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x248], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40450a
cmp dword [ebp - 0x238], 2
jne 0x40450a
cmp dword [ebp - 0x244], 5
jb 0x40450a
push str.Imm32.dll
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x404503
push str.ImmDisableIME
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4044fc
push 0
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x25c], 0
jne 0x40456e
cmp dword [ebp - 0x264], 0
jne 0x40456e
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x404550
mov esi, dword [0x4ad990]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
push dword [0x4adb14]
mov dword [0x4ad990], eax
call dword [sym.imp.MMFS2.dll_Ordinal_121]
test esi, esi
je 0x404550
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
call fcn.00454df0
mov esi, eax
test esi, esi
jne 0x4046cd
call fcn.00402760
mov esi, eax
test esi, esi
jne 0x4046cd
mov eax, dword [0x4ad9ac]
mov ecx, dword [0x4ad97c]
mov dword [eax + 0x1c4], ecx
call fcn.004028c0
test eax, eax
jne 0x4045a7
or esi, 0xffffffff
jmp 0x4046cd
mov eax, dword [0x4ad9ac]
mov eax, dword [eax + 0xb0]
test eax, eax
je 0x4045e7
test ebx, ebx
jne 0x4045e7
mov edi, dword [sym.imp.USER32.dll_GetMenuState]
push ebx
push 0x3f3
push eax
call edi
cmp eax, 0xffffffff
je 0x4045ed
mov eax, dword [0x4ad9ac]
push ebx
push 0x3f3
push dword [eax + 0xb0]
call dword [sym.imp.USER32.dll_DeleteMenu]
jmp 0x4045ed
mov edi, dword [sym.imp.USER32.dll_GetMenuState]
mov eax, dword [0x4ad9ac]
mov eax, dword [eax + 0xb0]
test eax, eax
je 0x404649
push 0
push 0x401
push eax
call edi
cmp eax, 0xffffffff
je 0x404649
mov ecx, dword [0x4ad9ac]
mov eax, 0x1000
test word [ecx + 0x14], ax
jne 0x404649
push 0
push 0x401
push dword [ecx + 0xb0]
call dword [sym.imp.USER32.dll_DeleteMenu]
mov eax, dword [0x4ad9ac]
push 1
push dword [eax + 0xb0]
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, eax
call fcn.00450b30
mov ebx, dword [ebp - 0x25c]
test ebx, ebx
jne 0x40467f
mov eax, dword [0x4ad9ac]
test byte [eax + 0x16], 8
je 0x40467f
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_31]
push ebx
push ebx
push ebx
push 4
push dword [0x4ad980]
call edi
or eax, 4
push eax
push 2
push dword [0x4ad980]
call edi
mov ecx, dword [0x4ad988]
test ebx, ebx
je 0x40468f
mov ecx, dword [ebx + 0x1d0]
cmp dword [ebp - 0x264], 0
jne 0x4046ac
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00441fb0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4046cd
test ebx, ebx
jne 0x4046cd
mov eax, dword [0x4ad9ac]
mov ecx, 0x800
test word [eax + 0x14], cx
je 0x4046cd
lea ecx, [ebx + 1]
call fcn.00450210
call fcn.004028c0
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x4046e0
push eax
call fcn.0046d0ea
add esp, 4
test esi, esi
jne 0x40472f
mov ecx, dword [0x4ad9ac]
test ecx, ecx
je 0x40470c
mov eax, dword [ecx + 0x1d0]
mov dword [0x4ad98c], eax
mov eax, dword [ecx + 0x1d4]
mov dword [0x4ad984], eax
mov eax, dword [ebp - 0x28c]
jmp 0x404763
mov eax, dword [ebp - 0x28c]
mov dword [0x4ad98c], 0
mov dword [0x4ad984], 0
jmp 0x404763
mov esi, 0x14
jmp 0x404731
jle 0x40474b
test byte [0x4adb2e], 1
je 0x40474b
push ecx
mov ecx, dword [0x4ad988]
mov edx, esi
call fcn.00441dd0
add esp, 4
mov ecx, dword [ebp - 0x278]
call fcn.00404960
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.0046d049
mov esp, ebp
pop ebp
ret