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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a990
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 0x3bc
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.0046dd84
mov ebx, eax
add esp, 8
mov dword [ebp - 0x264], ebx
test ebx, ebx
jne 0x4033eb
call fcn.00470c31
push 1
push 0x3bc
call fcn.0046dd84
add esp, 8
mov ebx, eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x28c], ebx
test ebx, ebx
je 0x404828
mov ecx, ebx
call fcn.00402a90
mov ecx, ebx
call fcn.00402a00
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], 0x42a210
test edx, edx
je 0x403568
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 0x403568
test dword [edx + 0x10], 0x4100020
jne 0x403568
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 0x403599
mov edi, dword [0x4b39e4]
mov ebx, dword [0x4b21b8]
test edi, edi
je 0x404812
test ebx, ebx
je 0x404812
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 0x4035c4
lea esi, [ecx + 5]
mov dword [0x4b38c4], edi
jmp 0x4047f8
test ebx, ebx
je 0x40366d
cmp dword [ebp - 0x25c], 0
jne 0x40365b
cmp dword [0x4b3868], 0
jne 0x40365b
push 2
push 0x16e260
call fcn.0046dd84
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 0x40365b
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 0x40365b
cmp esi, 0x40000002
jne 0x4047a7
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 0x4047f6
mov eax, dword [0x4b39cc]
mov ecx, dword [eax]
cmp ecx, 0x454d4150
jne 0x4036cb
mov byte [eax + 0x384], 0
jmp 0x4036de
cmp ecx, 0x554d4150
jne 0x4047ef
mov byte [eax + 0x384], 1
mov eax, dword [0x4b39cc]
mov ecx, 0x302
cmp word [eax + 4], cx
je 0x4036f8
mov esi, 0x13
jmp 0x4047f8
cmp dword [ebp - 0x25c], 0
jne 0x403711
cmp dword [eax + 8], 2
je 0x403711
mov esi, 0x13
jmp 0x4047f8
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 0x404794
cmp dword [ebp - 0x250], eax
je 0x4044cb
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 0x404468
je 0x40423f
sub eax, 0x2223
cmp eax, 0x2e
ja case.0x403793.8741
movzx eax, byte [eax + 0x4048bc]
jmp dword [eax*4 + 0x404848]
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.00424cf0
mov ebx, dword [ebp - 0x25c]
mov ecx, dword [0x4b39cc]
add esp, 0x10
mov esi, eax
mov dword [ebp - 0x24c], esi
test ebx, ebx
jne 0x4037f1
mov eax, 0x200
test word [ecx + 0x16], ax
je 0x4037f1
mov eax, 1
mov word [0x4b3b4c], ax
lea edx, [ecx + 0xd0]
mov ecx, dword [ecx + 0x74]
shl ecx, 2
call fcn.0042d4e0
test eax, eax
je 0x4044e3
mov edi, dword [0x4b39cc]
test byte [edi + 0x16], 4
jne 0x40382d
mov ecx, dword [edi + 0x74]
lea edx, [edi + 0xd4]
shl ecx, 2
call fcn.0042d4e0
mov edi, dword [0x4b39cc]
push 1
push 0x100
call fcn.0046dd84
add esp, 8
mov dword [edi + 0x26c], eax
test ebx, ebx
jne 0x403864
mov ecx, dword [0x4b3860]
test ecx, ecx
je 0x403864
mov eax, dword [0x4b39cc]
mov edx, 0x800
test word [eax + 0x16], dx
jne 0x403864
push 1
call ecx
mov ecx, dword [0x4b39cc]
test byte [ecx + 0x14], 0x10
je 0x4044a0
mov byte [ecx + 0x390], 1
jmp 0x4044a0
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.00424cf0
add esp, 0x10
jmp 0x404498
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.00424cf0
mov ecx, dword [0x4b39cc]
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x24c], esi
call fcn.004032c0
jmp 0x4044a0
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.00424e90
add esp, 0xc
jmp 0x404498
push 0
push ecx
mov ecx, dword [0x4b39cc]
lea eax, [ecx + 0x8c]
jmp 0x4038fa
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.00424e90
mov ecx, dword [0x4b39cc]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
mov dword [ebp - 0x24c], esi
jne 0x4044a0
add ecx, 0x90
call fcn.00402ff0
jmp 0x4044a0
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.00424e90
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 0x403a69
push dword [ebx + 0x80]
mov edx, edi
mov ecx, ebx
call fcn.00403120
add esp, 4
push dword [ebx + 0x8c]
mov edx, edi
mov ecx, ebx
call fcn.00403120
add esp, 4
push dword [ebx + 0x88]
mov edx, edi
mov ecx, ebx
call fcn.00403120
add esp, 4
lea eax, [edi + 0x80]
push 0x80
push 0
push eax
call fcn.00472320
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403a20
sub ecx, edx
inc ecx
mov dl, 0x36
mov bl, dl
mov dword [ebp - 0x260], ecx
test ecx, ecx
jle 0x403a61
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 0x403a40
mov esi, dword [ebp - 0x294]
mov byte [edi], bl
mov ebx, dword [ebp - 0x264]
cmp byte [ebx + 0x384], 0
jne 0x4044a0
cmp dword [ebx + 0x80], 0
lea ecx, [ebx + 0x80]
je 0x403a8a
call fcn.00402ff0
cmp dword [ebx + 0x8c], 0
lea ecx, [ebx + 0x8c]
je 0x403a9e
call fcn.00402ff0
cmp dword [ebx + 0x88], 0
lea ecx, [ebx + 0x88]
je 0x4044a0
call fcn.00402ff0
jmp 0x4044a0
cmp dword [ebp - 0x298], 0
jne 0x403ae4
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.00424e90
mov ecx, dword [0x4b39cc]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
mov dword [ebp - 0x24c], esi
jne 0x4044a0
add ecx, 0x94
call fcn.00402ff0
jmp 0x4044a0
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.00424e90
mov ecx, dword [0x4b39cc]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
mov dword [ebp - 0x24c], esi
jne 0x4044a0
add ecx, 0xa4
call fcn.00402ff0
jmp 0x4044a0
cmp dword [ebp - 0x25c], 0
je case.0x403793.8741
test dword [ebp + 0x10], 0x80000000
je case.0x403793.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.00424e90
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x404794
mov ecx, dword [0x4b39cc]
mov ecx, dword [ecx + 0xa8]
call fcn.00402f20
mov ecx, dword [0x4b39cc]
mov dword [ecx + 0xac], eax
jmp case.0x403793.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.00424e90
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x404794
jmp case.0x403793.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.00424e90
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x404794
mov ecx, dword [0x4b39cc]
cmp byte [ecx + 0x384], al
jne case.0x403793.8741
mov eax, dword [ecx + 0x274]
add ecx, 0x274
test eax, eax
je case.0x403793.8741
cmp dword [eax], esi
je case.0x403793.8741
call fcn.00403050
jmp case.0x403793.8741
cmp dword [ebp - 0x25c], 0
jne case.0x403793.8741
push 0
push ecx
mov ecx, dword [0x4b39cc]
lea eax, [ecx + 0xc0]
jmp 0x4038fa
push 0
push ecx
mov ecx, dword [0x4b39cc]
lea eax, [ecx + 0xbc]
jmp 0x4038fa
push 0
push ecx
mov ecx, dword [0x4b39cc]
lea eax, [ecx + 0x37c]
jmp 0x4038fa
cmp dword [0x4b3b30], 0
jne case.0x403793.8741
push 0
push ecx
mov ecx, dword [0x4b39cc]
push 0x4b3b30
mov ecx, dword [ecx + 0x9c]
lea edx, [ebp - 0x254]
call fcn.00424e90
mov esi, eax
mov eax, dword [0x4b39cc]
add esp, 0xc
cmp byte [eax + 0x384], 0
mov dword [ebp - 0x24c], esi
jne 0x4044a0
mov ecx, 0x4b3b30
call fcn.00402ff0
jmp 0x4044a0
cmp dword [ebp - 0x274], 0
mov dword [ebp - 0x268], 0
je case.0x403793.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.00424cf0
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x404794
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.00425160
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_423]
add esp, 4
cmp eax, dword [ebp - 0x288]
je case.0x403793.8741
mov dword [ebp - 0x268], 1
jmp case.0x403793.8741
xor edx, edx
lea ecx, [ebp - 0x254]
call fcn.00423780
jmp 0x404498
mov edx, 1
lea ecx, [ebp - 0x254]
call fcn.00423780
jmp 0x404498
lea ecx, [ebp - 0x254]
call fcn.00432d40
jmp 0x404498
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.00424e90
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x404794
mov eax, dword [0x4b39cc]
mov ebx, dword [eax + 0x388]
test ebx, ebx
je 0x4044ae
mov edi, dword [ebx]
test edi, edi
je 0x4044a8
lea edx, [ebx + 4]
lea ebx, [ebx]
mov ecx, dword [edx]
add ecx, ebx
test byte [ecx + 0xc], 0xf
je 0x403ed6
mov eax, dword [0x4b39cc]
mov byte [eax + 0x390], 1
test dword [ecx + 0xc], 0x100
je 0x403eeb
mov eax, dword [0x4b39cc]
mov byte [eax + 0x3b8], 1
add edx, 4
dec edi
jne 0x403ec0
jmp 0x4044a8
mov eax, dword [0x4b39cc]
test byte [eax + 0x1a], 8
je 0x403f44
test dword [eax + 0x1b0], 0x4000
jne 0x403f44
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.004357c0
jmp 0x404498
cmp dword [0x4b386c], 0
je case.0x403793.8741
call fcn.00402780
call fcn.00405fb0
jmp case.0x403793.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.00424e90
mov esi, eax
mov eax, dword [0x4b39cc]
add esp, 0xc
push dword [eax + 0xcc]
mov dword [ebp - 0x24c], esi
call fcn.00470c47
add esp, 4
shr eax, 1
movzx ecx, ax
mov eax, dword [0x4b39cc]
mov dword [eax + 0xc8], ecx
jmp 0x4044a0
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 0x404794
cmp dword [ebp - 0x290], eax
je case.0x403793.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 0x4041bc
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 0x4041bc
push 0x218
call fcn.0046ede2
mov edi, eax
add esp, 4
test edi, edi
je 0x4041b1
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 0x4040e3
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 0x4044ed
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 0x404108
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.00425410
test esi, esi
jne 0x404195
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 0x404195
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 0x4041bc
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_425]
jmp 0x404021
push ecx
mov ecx, edi
call fcn.004048f0
mov eax, dword [0x4b39cc]
mov ecx, dword [ebp - 0x294]
mov word [eax + 0x1a], cx
jmp 0x4044a0
mov esi, 8
mov dword [ebp - 0x24c], esi
mov eax, dword [0x4b39cc]
mov ecx, dword [ebp - 0x294]
mov word [eax + 0x1a], cx
jmp 0x4044a0
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.0x403793.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 0x404794
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 0x404794
jmp case.0x403793.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 0x40427c
cmp dword [ebp - 0x278], 0
jne 0x40437e
xor eax, eax
mov word [ebp - 0x280], ax
xor edi, edi
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 0x40437e
cmp dword [ebp - 0x27c], eax
je 0x40436c
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 0x404418
sub ecx, 2
je 0x40438e
dec ecx
jne 0x404347
cmp dword [ebp - 0x278], ecx
jne 0x404347
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.00424e90
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40437e
mov ecx, dword [ebp - 0x270]
add ecx, 4
mov edx, ecx
call fcn.00405d60
mov dword [ebp - 0x278], 1
test edi, edi
je 0x404354
cmp dword [ebp - 0x278], 0
jne 0x40437e
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 0x404287
mov eax, dword [0x4b39cc]
inc dword [eax + 0xc4]
jmp 0x4044a0
mov ecx, dword [0x4b39cc]
cmp dword [ecx + 0xd4], 0
je 0x40440e
push dword [ecx + 0x26c]
lea eax, [ebp - 0x284]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
lea edx, [ebp - 0x280]
call fcn.00424e90
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40437e
mov edx, dword [ebp - 0x284]
test edx, edx
je 0x40440e
mov eax, dword [0x4b39cc]
cmp byte [eax + 0x384], 0
jne 0x4043f9
lea ecx, [ebp - 0x284]
call fcn.00402ff0
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 0x40434b
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.00424cf0
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x40437e
test byte [ebp - 0x124], 0x40
jne 0x404347
lea edi, [eax + 1]
jmp 0x40434b
cmp eax, 0x6669
jg case.0x403793.8741
cmp eax, 0x6666
jge 0x40448d
add eax, 0xffffaaab
cmp eax, 3
ja case.0x403793.8741
lea ecx, [ebp - 0x254]
call fcn.00434660
jmp 0x404498
lea ecx, [ebp - 0x254]
call fcn.00434620
mov esi, eax
mov dword [ebp - 0x24c], esi
test esi, esi
jne 0x404794
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 0x4044fc
mov eax, dword [0x4b39cc]
jmp 0x403720
mov esi, 8
jmp 0x404794
call fcn.0046ef6c
mov esi, 0x13
jmp 0x404794
test esi, esi
jne 0x404794
mov ebx, dword [ebp - 0x26c]
test ebx, ebx
jne 0x404535
mov edi, dword [0x4b39cc]
cmp dword [edi + 0xd4], ebx
je 0x404535
mov eax, dword [edi + 0xd4]
test eax, eax
je 0x404535
push eax
call fcn.0046d5c7
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.00450f80
mov eax, dword [0x4b39cc]
mov eax, dword [eax + 0x37c]
test dword [eax], 0x8000000
je 0x4045d1
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x248], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4045d1
cmp dword [ebp - 0x238], 2
jne 0x4045d1
cmp dword [ebp - 0x244], 5
jb 0x4045d1
push 0x491d6c
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4045ca
push str.ImmDisableIME
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4045c3
push 0
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x25c], 0
jne 0x404635
cmp dword [ebp - 0x268], 0
jne 0x404635
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x404617
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 0x404617
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
call fcn.004551c0
mov esi, eax
test esi, esi
jne 0x404794
call fcn.004027b0
mov esi, eax
test esi, esi
jne 0x404794
mov eax, dword [0x4b39cc]
mov ecx, dword [0x4b399c]
mov dword [eax + 0x1c4], ecx
call fcn.00402910
test eax, eax
jne 0x40466e
or esi, 0xffffffff
jmp 0x404794
mov eax, dword [0x4b39cc]
mov eax, dword [eax + 0xb0]
test eax, eax
je 0x4046ae
test ebx, ebx
jne 0x4046ae
mov edi, dword [sym.imp.USER32.dll_GetMenuState]
push ebx
push 0x3f3
push eax
call edi
cmp eax, 0xffffffff
je 0x4046b4
mov eax, dword [0x4b39cc]
push ebx
push 0x3f3
push dword [eax + 0xb0]
call dword [sym.imp.USER32.dll_DeleteMenu]
jmp 0x4046b4
mov edi, dword [sym.imp.USER32.dll_GetMenuState]
mov eax, dword [0x4b39cc]
mov eax, dword [eax + 0xb0]
test eax, eax
je 0x404710
push 0
push 0x401
push eax
call edi
cmp eax, 0xffffffff
je 0x404710
mov ecx, dword [0x4b39cc]
mov eax, 0x1000
test word [ecx + 0x14], ax
jne 0x404710
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.00450f30
mov ebx, dword [ebp - 0x25c]
test ebx, ebx
jne 0x404746
mov eax, dword [0x4b39cc]
test byte [eax + 0x16], 8
je 0x404746
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 0x404756
mov ecx, dword [ebx + 0x1d0]
cmp dword [ebp - 0x268], 0
jne 0x404773
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00442380
mov esi, eax
add esp, 4
test esi, esi
jne 0x404794
test ebx, ebx
jne 0x404794
mov eax, dword [0x4b39cc]
mov ecx, 0x800
test word [eax + 0x14], cx
je 0x404794
lea ecx, [ebx + 1]
call fcn.00450610
call fcn.00402910
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x4047a7
push eax
call fcn.0046d5c7
add esp, 4
test esi, esi
jne 0x4047f6
mov ecx, dword [0x4b39cc]
test ecx, ecx
je 0x4047d3
mov eax, dword [ecx + 0x1d0]
mov dword [0x4b39ac], eax
mov eax, dword [ecx + 0x1d4]
mov dword [0x4b39a4], eax
mov eax, dword [ebp - 0x28c]
jmp 0x40482a
mov eax, dword [ebp - 0x28c]
mov dword [0x4b39ac], 0
mov dword [0x4b39a4], 0
jmp 0x40482a
mov esi, 0x14
jmp 0x4047f8
jle 0x404812
test byte [0x4b3b4e], 1
je 0x404812
push ecx
mov ecx, dword [0x4b39a8]
mov edx, esi
call fcn.004421a0
add esp, 4
mov ecx, dword [ebp - 0x264]
call fcn.00404a30
mov ecx, dword [ebp - 0x2a0]
call fcn.00402a00
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.0046d526
mov esp, ebp
pop ebp
ret