Function at 0x403b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x4a6110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x128]
push eax
push 0x3a0
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x13c], 0
call fcn.00427ab0
add esp, 8
test eax, eax
jne 0x403bb5
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468a6b
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4a7b88]
push esi
mov esi, dword [ebp - 0x128]
test ecx, ecx
jne 0x403be5
push 0x4a7b90
push 0x28
call fcn.00427ab0
add esp, 8
test eax, eax
je 0x403c22
mov dword [0x4a7b8c], 0xa
jmp 0x403c0e
mov eax, dword [0x4a7b8c]
cmp ecx, eax
jl 0x403c14
lea eax, [eax*4 + 0x28]
push 0x4a7b90
push eax
call fcn.00427b10
add esp, 8
test eax, eax
je 0x403c22
add dword [0x4a7b8c], 0xa
mov ecx, dword [0x4a7b88]
mov eax, dword [0x4a7b90]
mov dword [eax + ecx*4], esi
inc dword [0x4a7b88]
push dword [ebp - 0x128]
call fcn.004056e0
mov ecx, dword [0x4a7b6c]
add esp, 4
lea ecx, [ecx + 0x168]
mov dword [ebp - 0x16c], eax
call dword [sym.imp.MMFS2.dll_Ordinal_255]
mov eax, dword [0x4a7b6c]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0xfc], 0xffffffff
mov eax, dword [0x4a7b6c]
mov dword [ebp - 0x148], 0
mov dword [eax + 0x100], 0xffffffff
mov eax, dword [0x4a7b6c]
mov dword [eax + 0x104], 0xffffffff
mov eax, dword [0x4a7b6c]
mov dword [eax + 0x108], 0xffffffff
mov eax, dword [0x4a7b6c]
mov dword [eax + 0x1f0], 0xffffffff
mov eax, dword [0x4a7b6c]
mov dword [eax + 0x1a8], edi
mov eax, dword [0x4a7b6c]
mov dword [eax + 0x380], 0
mov eax, dword [0x4a7b6c]
mov dword [eax + 0x398], 0
mov eax, dword [0x4a7b6c]
mov dword [eax + 0x39c], 3
test edx, edx
je 0x403d81
mov eax, dword [0x4a7b6c]
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x1b0], ecx
mov ecx, dword [0x4a7b6c]
mov eax, dword [ecx + 0x1b0]
shr eax, 1
and eax, 1
mov dword [ecx + 0x244], eax
mov ecx, dword [0x4a7b6c]
mov eax, dword [ecx + 0x1b0]
shr eax, 2
and eax, 1
mov dword [ecx + 0x248], eax
mov ecx, dword [0x4a7b6c]
mov eax, dword [ecx + 0x1b0]
and eax, 1
mov dword [ecx + 0x24c], eax
mov ecx, dword [0x4a7b6c]
mov eax, dword [ecx + 0x1b0]
and eax, 1
mov dword [ecx + 0x250], eax
mov ecx, dword [0x4a7b6c]
mov eax, dword [ecx + 0x1b0]
shr eax, 0x13
and eax, 1
mov dword [ecx + 0x240], eax
test byte [0x4a7b54], 0x10
je 0x403d81
test dword [edx + 0x10], 0x4100020
jne 0x403d81
mov eax, dword [ebp - 0x128]
mov dword [eax + 0x394], 2
mov eax, dword [0x4a7b6c]
xor edi, edi
mov dword [eax + 0x9c], 0xffffffff
test ebx, ebx
jne 0x403db2
mov ebx, dword [0x4a7b84]
mov edi, dword [0x4a4fe8]
test ebx, ebx
je 0x403daa
test edi, edi
jne 0x403db2
or esi, 0xffffffff
jmp 0x404eca
mov esi, dword [sym.imp.MMFS2.dll_Ordinal_1033]
push 0
push ebx
call esi
mov ecx, eax
mov eax, dword [0x4a7b6c]
mov dword [eax + 0x9c], ecx
cmp ecx, 0xffffffff
jne 0x403dd7
lea esi, [ecx + 5]
jmp 0x404eca
test edi, edi
je 0x403e81
cmp dword [ebp - 0x134], 0
jne 0x403e6f
cmp dword [0x4a79ec], 0
jne 0x403e6f
push 2
push 0x16e260
call fcn.00468954
add esp, 8
mov dword [0x4a79ec], eax
push 0x104
push eax
push dword [0x4a7b38]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push dword [0x4a79ec]
call esi
mov esi, eax
mov dword [ebp - 0x138], esi
cmp esi, 0xffffffff
je 0x403e6f
push 0x100
push esi
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov eax, dword [sym.imp.MMFS2.dll_Ordinal_425]
push 0x16e260
push dword [0x4a79ec]
push esi
call eax
push dword [ebp - 0x138]
mov esi, eax
call dword [sym.imp.MMFS2.dll_Ordinal_419]
test esi, esi
je 0x403e6f
cmp esi, 0x40000002
jne 0x404eca
mov eax, dword [0x4a7b6c]
push edi
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov eax, dword [0x4a7b6c]
push 0x10
mov dword [eax + 0x84], ebx
mov eax, dword [0x4a7b6c]
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_425]
mov dword [eax + 0xa0], edi
mov eax, dword [0x4a7b6c]
mov dword [eax + 0x360], 0
mov eax, dword [0x4a7b6c]
push eax
push dword [eax + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x404eca
mov ecx, dword [0x4a7b6c]
mov eax, dword [ecx]
cmp eax, 0x454d4150
jne 0x403ede
mov byte [ecx + 0x384], 0
jmp 0x403ef5
cmp eax, 0x554d4150
jne 0x404ec5
mov eax, dword [0x4a7b6c]
mov byte [eax + 0x384], 1
mov eax, dword [0x4a7b6c]
mov ecx, 0x302
cmp word [eax + 4], cx
je 0x403f0f
mov esi, 0x13
jmp 0x404eca
cmp dword [ebp - 0x134], 0
jne 0x403f2d
mov eax, dword [0x4a7b6c]
cmp dword [eax + 8], 2
je 0x403f2d
mov esi, 0x13
jmp 0x404eca
call fcn.0040c280
mov esi, eax
test esi, esi
jne 0x404eca
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_423]
mov word [ebp - 0x124], ax
lea esp, [esp]
push 8
lea eax, [ebp - 0x124]
push eax
mov eax, dword [0x4a7b6c]
push dword [eax + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x404eca
cmp dword [ebp - 0x120], eax
je 0x404cb3
mov eax, dword [0x4a7b6c]
push dword [eax + 0x9c]
call edi
add eax, dword [ebp - 0x120]
mov dword [ebp - 0x170], eax
movzx eax, word [ebp - 0x124]
cmp eax, 0x3333
jg 0x404c51
je 0x404a33
sub eax, 0x2223
cmp eax, 0x2a
ja case.0x403fc2.8741
movzx eax, byte [eax + 0x405068]
jmp dword [eax*4 + 0x404ff8]
mov ecx, dword [0x4a7b6c]
push 0
lea eax, [ecx + 0x360]
push eax
push 0x70
lea eax, [ecx + 0x10]
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ecx + 0x9c]
call fcn.0041f190
mov ebx, dword [ebp - 0x134]
mov ecx, dword [0x4a7b6c]
add esp, 0x18
mov esi, eax
test ebx, ebx
jne 0x40401b
mov eax, 0x200
test word [ecx + 0x16], ax
je 0x40401b
mov eax, 1
mov word [0x4a7ce4], ax
lea eax, [ecx + 0xd0]
push eax
mov eax, dword [ecx + 0x74]
shl eax, 2
push eax
call fcn.00427ab0
add esp, 8
test eax, eax
je 0x404d92
mov edi, dword [0x4a7b6c]
test byte [edi + 0x16], 4
jne 0x404061
lea eax, [edi + 0xd4]
push eax
mov eax, dword [edi + 0x74]
shl eax, 2
push eax
call fcn.00427ab0
mov edi, dword [0x4a7b6c]
add esp, 8
push 1
push 0x100
call fcn.00468954
add esp, 8
mov dword [edi + 0x26c], eax
test ebx, ebx
jne 0x404098
mov ecx, dword [0x4a79f8]
test ecx, ecx
je 0x404098
mov eax, dword [0x4a7b6c]
mov edx, 0x800
test word [eax + 0x16], dx
jne 0x404098
push 1
call ecx
mov ecx, dword [0x4a7b6c]
test byte [ecx + 0x14], 0x10
je 0x404c88
mov byte [ecx + 0x390], 1
jmp 0x404c88
mov ecx, dword [0x4a7b6c]
push 0
push 0
push 4
lea eax, [ecx + 0x380]
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ecx + 0x9c]
call fcn.0041f190
add esp, 0x18
jmp 0x404c86
mov ecx, dword [0x4a7b6c]
lea eax, [ecx + 0x80]
push 0
push 0
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ecx + 0x9c]
call fcn.0041f030
add esp, 0x14
jmp 0x404c86
mov ecx, dword [0x4a7b6c]
lea eax, [ecx + 0x8c]
jmp 0x4040ed
mov ecx, dword [0x4a7b6c]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x90]
push 0
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ecx + 0x9c]
call fcn.0041f030
mov ecx, dword [0x4a7b6c]
add esp, 0x14
cmp byte [ecx + 0x384], 0
mov esi, eax
jne 0x404c88
lea eax, [ecx + 0x90]
push eax
call fcn.004039d0
add esp, 4
jmp 0x404c88
mov ecx, dword [0x4a7b6c]
push 0
push 0
lea eax, [ecx + 0x88]
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ecx + 0x9c]
mov dword [ebp - 0x168], 1
call fcn.0041f030
mov esi, eax
mov eax, dword [ebp - 0x128]
add esp, 0x14
mov edi, dword [eax + 0x26c]
mov dword [ebp - 0x174], esi
test edi, edi
je 0x4042b9
push dword [eax + 0x88]
mov byte [ebp - 0x129], 0
push edi
push eax
xor bh, bh
call fcn.004025d0
mov eax, dword [ebp - 0x128]
push dword [eax + 0x80]
push edi
push eax
call fcn.004025d0
mov eax, dword [ebp - 0x128]
push dword [eax + 0x8c]
push edi
push eax
call fcn.004025d0
push 0x80
lea eax, [edi + 0x80]
push 0
push eax
call fcn.00468a80
mov ecx, edi
add esp, 0x30
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404210
sub ecx, edx
mov bl, 0x63
lea eax, [ecx + 1]
mov ch, byte [ebp - 0x129]
mov dh, bl
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x138], 0
cmp eax, 2
jl 0x404292
lea esi, [eax - 2]
shr esi, 1
inc esi
lea eax, [esi + esi]
mov dword [ebp - 0x138], eax
lea ebx, [ebx]
mov dl, bl
shr bl, 1
shl dl, 7
add dl, bl
xor byte [edi], dl
mov cl, byte [edi]
mov al, dl
and al, 1
add al, 2
imul cl
mov bl, dl
add ch, al
shl bl, 7
shr dl, 1
add bl, dl
xor byte [edi + 1], bl
mov cl, byte [edi + 1]
mov al, bl
and al, 1
add al, 2
imul cl
add bh, al
add edi, 2
dec esi
jne 0x404250
mov esi, dword [ebp - 0x174]
mov eax, dword [ebp - 0x160]
cmp dword [ebp - 0x138], eax
jge 0x4042b3
mov al, bl
shl al, 7
shr bl, 1
add al, bl
xor byte [edi], al
mov cl, byte [edi]
and al, 1
add al, 2
imul cl
mov dh, al
add dh, 0x63
inc edi
add bh, ch
add bh, dh
mov byte [edi], bh
mov eax, dword [ebp - 0x128]
cmp byte [eax + 0x384], 0
jne 0x404c88
sub eax, 0xffffff80
cmp dword [eax], 0
je 0x4042dd
push eax
call fcn.004039d0
add esp, 4
mov eax, dword [ebp - 0x128]
add eax, 0x8c
cmp dword [eax], 0
je 0x4042f6
push eax
call fcn.004039d0
add esp, 4
mov eax, dword [ebp - 0x128]
add eax, 0x88
cmp dword [eax], 0
je 0x404c88
push eax
call fcn.004039d0
add esp, 4
jmp 0x404c88
cmp dword [ebp - 0x168], 0
jne 0x404341
mov eax, dword [0x4a7b6c]
push dword [eax + 0x9c]
call edi
sub eax, 8
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x13c], 1
mov edx, dword [0x4a7b6c]
push 0
push 0
lea ecx, [edx + 0x94]
push ecx
lea eax, [ebp - 0x124]
push eax
push dword [edx + 0x9c]
call fcn.0041f030
mov ecx, dword [0x4a7b6c]
add esp, 0x14
cmp byte [ecx + 0x384], 0
mov esi, eax
jne 0x404c88
lea eax, [ecx + 0x94]
push eax
call fcn.004039d0
add esp, 4
jmp 0x404c88
mov ecx, dword [0x4a7b6c]
push dword [ecx + 0x26c]
lea eax, [ecx + 0xa4]
push 0
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ecx + 0x9c]
call fcn.0041f030
mov ecx, dword [0x4a7b6c]
add esp, 0x14
cmp byte [ecx + 0x384], 0
mov esi, eax
jne 0x404c88
lea eax, [ecx + 0xa4]
push eax
call fcn.004039d0
add esp, 4
jmp 0x404c88
cmp dword [ebp - 0x134], 0
je case.0x403fc2.8741
test dword [ebp + 0x18], 0x80000000
je case.0x403fc2.8741
mov ecx, dword [0x4a7b6c]
push 0
push 0
lea eax, [ecx + 0xa8]
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ecx + 0x9c]
call fcn.0041f030
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x404eca
mov eax, dword [0x4a7b6c]
push dword [eax + 0xa8]
call fcn.004026c0
mov ecx, dword [0x4a7b6c]
add esp, 4
mov dword [ecx + 0xac], eax
jmp case.0x403fc2.8741
mov eax, dword [0x4a7b6c]
mov dword [eax + 0x260], 0
mov ecx, dword [0x4a7b6c]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x260]
push 0
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ecx + 0x9c]
call fcn.0041f030
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x404eca
jmp case.0x403fc2.8741
mov eax, dword [0x4a7b6c]
mov dword [eax + 0x274], 0
mov ecx, dword [0x4a7b6c]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x274]
push 0
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ecx + 0x9c]
call fcn.0041f030
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x404eca
mov ecx, dword [0x4a7b6c]
cmp byte [ecx + 0x384], al
jne case.0x403fc2.8741
mov eax, dword [ecx + 0x274]
add ecx, 0x274
test eax, eax
je case.0x403fc2.8741
cmp dword [eax], esi
je case.0x403fc2.8741
push ecx
call fcn.004032a0
add esp, 4
jmp case.0x403fc2.8741
cmp dword [ebp - 0x134], 0
jne case.0x403fc2.8741
mov ecx, dword [0x4a7b6c]
lea eax, [ecx + 0xc0]
jmp 0x4040ed
mov ecx, dword [0x4a7b6c]
lea eax, [ecx + 0xbc]
jmp 0x4040ed
mov ecx, dword [0x4a7b6c]
lea eax, [ecx + 0x37c]
jmp 0x4040ed
cmp dword [0x4a7cf4], 0
jne case.0x403fc2.8741
push 0
push 0
push 0x4a7cf4
lea eax, [ebp - 0x124]
push eax
mov eax, dword [0x4a7b6c]
push dword [eax + 0x9c]
call fcn.0041f030
mov esi, eax
mov eax, dword [0x4a7b6c]
add esp, 0x14
cmp byte [eax + 0x384], 0
jne 0x404c88
push 0x4a7cf4
call fcn.004039d0
add esp, 4
jmp 0x404c88
mov ebx, dword [ebp - 0x164]
mov dword [ebp - 0x13c], 0
test ebx, ebx
je case.0x403fc2.8741
mov eax, dword [0x4a7b6c]
push dword [eax + 0x9c]
call edi
mov ecx, dword [0x4a7b6c]
mov edi, 0xfffffff8
push dword [ecx + 0x26c]
sub edi, ebx
push 0
add edi, eax
push 4
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ecx + 0x9c]
call fcn.0041f190
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x404eca
mov eax, dword [0x4a7b6c]
xor byte [ebp - 0x158], 0xd
push ebx
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov eax, dword [0x4a7b6c]
push esi
push edi
push dword [eax + 0x9c]
call fcn.0041f410
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_423]
add esp, 0xc
cmp eax, dword [ebp - 0x158]
je case.0x403fc2.8741
mov dword [ebp - 0x13c], 1
jmp case.0x403fc2.8741
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.0041e2c0
add esp, 8
jmp 0x404c86
lea eax, [ebp - 0x124]
push 1
push eax
call fcn.0041e2c0
add esp, 8
jmp 0x404c86
lea eax, [ebp - 0x124]
push eax
call fcn.0042d3d0
jmp 0x404c83
mov eax, dword [0x4a7b6c]
push 0
mov dword [eax + 0x388], 0
mov ecx, dword [0x4a7b6c]
push 0
lea eax, [ecx + 0x388]
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ecx + 0x9c]
call fcn.0041f030
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x404eca
mov eax, dword [0x4a7b6c]
mov edi, dword [eax + 0x388]
test edi, edi
je 0x404c90
mov ebx, dword [edi]
xor edx, edx
test ebx, ebx
je 0x404c90
lea ecx, [edi + 4]
nop
mov eax, dword [ecx]
test byte [edi + eax + 0xc], 0xf
jne 0x404716
inc edx
add ecx, 4
cmp edx, ebx
jb 0x404700
jmp 0x404c90
mov eax, dword [0x4a7b6c]
mov byte [eax + 0x390], 1
jmp 0x404c90
mov eax, dword [0x4a7b6c]
test byte [eax + 0x1a], 8
je 0x404775
test dword [eax + 0x1b0], 0x4000
jne 0x404775
mov dword [eax + 0x250], 0
mov eax, dword [0x4a7b6c]
mov dword [eax + 0x24c], 0
mov eax, dword [0x4a7b6c]
mov dword [eax + 0x248], 0
mov eax, dword [0x4a7b6c]
mov dword [eax + 0x244], 0
call fcn.00436110
jmp 0x404c86
cmp dword [0x4a79e8], 0
je case.0x403fc2.8741
call fcn.00405a20
call fcn.00402b60
jmp case.0x403fc2.8741
mov ecx, dword [0x4a7b6c]
push dword [ecx + 0x26c]
lea eax, [ecx + 0xcc]
push 0
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ecx + 0x9c]
call fcn.0041f030
mov esi, eax
mov eax, dword [0x4a7b6c]
push dword [eax + 0xcc]
call fcn.00427b50
add esp, 0x18
shr eax, 1
movzx ecx, ax
mov eax, dword [0x4a7b6c]
mov dword [eax + 0xc8], ecx
jmp 0x404c88
push 4
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [0x4a7b6c]
push dword [eax + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x404eca
cmp dword [ebp - 0x15c], eax
je case.0x403fc2.8741
mov ecx, dword [0x4a7b6c]
mov dword [ebp - 0x138], esi
movzx eax, word [ecx + 0x1a]
mov edi, eax
and eax, 0xffbf
mov word [ecx + 0x1a], ax
mov dword [ebp - 0x160], edi
cmp dword [ebp - 0x15c], esi
jle 0x4049b6
push 2
lea eax, [ebp - 0x130]
push eax
mov eax, dword [0x4a7b6c]
push dword [eax + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x4049b6
push 0x218
call fcn.00467e37
add esp, 4
test eax, eax
je 0x4049b1
mov ecx, eax
call fcn.00402560
mov edi, eax
test edi, edi
je 0x4049b1
mov edx, dword [0x4a7b6c]
cmp byte [edx + 0x384], 0
jne 0x4048e8
movzx ecx, word [ebp - 0x130]
push ecx
lea eax, [ebp - 0x10c]
push eax
push dword [edx + 0x9c]
call ebx
mov esi, eax
movzx eax, word [ebp - 0x130]
cmp eax, 0x105
jae 0x404ff0
push 0x104
push edi
push 0xffffffffffffffff
mov byte [ebp + eax - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x40490a
movzx eax, word [ebp - 0x130]
add eax, eax
push eax
push edi
push dword [edx + 0x9c]
call ebx
mov esi, eax
movzx eax, word [ebp - 0x130]
xor ecx, ecx
mov word [edi + eax*2], cx
push edi
push 0
call fcn.0041f480
test esi, esi
jne 0x404994
mov eax, dword [0x4a7b6c]
push 4
lea ebx, [edi + 0x20c]
push ebx
push dword [eax + 0x9c]
mov eax, dword [sym.imp.MMFS2.dll_Ordinal_425]
call eax
mov esi, eax
test esi, esi
jne 0x404994
mov eax, dword [0x4a7b6c]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_423]
mov dword [edi + 0x210], eax
mov ecx, dword [0x4a7b6c]
push edi
lea ecx, [ecx + 0x168]
call dword [sym.imp.MMFS2.dll_Ordinal_333]
push dword [ebx]
mov eax, dword [0x4a7b6c]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_431]
mov ebx, dword [ebp - 0x138]
inc ebx
mov dword [ebp - 0x138], ebx
cmp ebx, dword [ebp - 0x15c]
jge 0x4049b6
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_425]
jmp 0x404845
push 1
mov ecx, edi
call fcn.00402580
mov eax, dword [0x4a7b6c]
mov ecx, dword [ebp - 0x160]
mov word [eax + 0x1a], cx
jmp 0x404c88
mov esi, 8
mov eax, dword [0x4a7b6c]
mov ecx, dword [ebp - 0x160]
mov word [eax + 0x1a], cx
jmp 0x404c88
mov eax, dword [0x4a7b6c]
push dword [eax + 0x9c]
call edi
mov dword [0x4a79e0], eax
mov eax, dword [ebp - 0x120]
mov dword [0x4a79e4], eax
jmp case.0x403fc2.8741
mov ecx, dword [0x4a7b6c]
push 4
lea eax, [ecx + 0x398]
push eax
push dword [ecx + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x404eca
mov ecx, dword [0x4a7b6c]
push 4
lea eax, [ecx + 0x39c]
push eax
push dword [ecx + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x404eca
jmp case.0x403fc2.8741
mov eax, dword [0x4a7b6c]
push dword [eax + 0x9c]
call edi
mov ecx, dword [0x4a7b6c]
mov edx, dword [ecx + 0xc4]
mov ecx, dword [ecx + 0xd0]
mov dword [ecx + edx*4], eax
mov eax, dword [0x4a7b6c]
cmp dword [eax + 0xd4], 0
jne 0x404a70
cmp dword [ebp - 0x144], 0
jne 0x404b6e
xor eax, eax
mov word [ebp - 0x150], ax
xor edi, edi
jmp 0x404a80
push 8
lea eax, [ebp - 0x150]
push eax
mov eax, dword [0x4a7b6c]
push dword [eax + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x404b6e
cmp dword [ebp - 0x14c], eax
je 0x404b5c
mov eax, dword [0x4a7b6c]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_423]
movzx ecx, word [ebp - 0x150]
mov ebx, eax
add ebx, dword [ebp - 0x14c]
sub ecx, 0x3334
je 0x404c07
sub ecx, 2
je 0x404b7e
dec ecx
jne 0x404b37
cmp dword [ebp - 0x144], ecx
jne 0x404b37
mov eax, dword [0x4a7b6c]
push dword [eax + 0x26c]
push ecx
lea ecx, [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x150]
push ecx
push dword [eax + 0x9c]
call fcn.0041f030
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x404b6e
mov eax, dword [ebp - 0x140]
add eax, 4
push eax
push eax
call fcn.004054b0
add esp, 8
mov dword [ebp - 0x144], 1
test edi, edi
je 0x404b44
cmp dword [ebp - 0x144], 0
jne 0x404b6e
mov eax, dword [0x4a7b6c]
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 - 0x150], ax
jne 0x404a80
mov eax, dword [0x4a7b6c]
inc dword [eax + 0xc4]
jmp 0x404c88
mov eax, dword [0x4a7b6c]
cmp dword [eax + 0xd4], 0
je 0x404bfd
push dword [eax + 0x26c]
lea ecx, [ebp - 0x154]
push 0
push ecx
lea ecx, [ebp - 0x150]
push ecx
push dword [eax + 0x9c]
call fcn.0041f030
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x404b6e
mov edx, dword [ebp - 0x154]
test edx, edx
je 0x404bfd
mov eax, dword [0x4a7b6c]
cmp byte [eax + 0x384], 0
jne 0x404be8
lea eax, [ebp - 0x154]
push eax
call fcn.004039d0
mov eax, dword [0x4a7b6c]
mov edx, dword [ebp - 0x154]
add esp, 4
mov ecx, dword [eax + 0xc4]
mov eax, dword [eax + 0xd4]
inc dword [ebp - 0x148]
mov dword [eax + ecx*4], edx
mov edi, 1
jmp 0x404b3b
mov eax, dword [0x4a7b6c]
lea ecx, [ebp - 0x11c]
push dword [eax + 0x26c]
push 0
push 0x10
push ecx
lea ecx, [ebp - 0x150]
push ecx
push dword [eax + 0x9c]
call fcn.0041f190
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x404b6e
test byte [ebp - 0x110], 0x40
jne 0x404b37
lea edi, [eax + 1]
jmp 0x404b3b
cmp eax, 0x6669
jg case.0x403fc2.8741
cmp eax, 0x6666
jge 0x404c77
add eax, 0xffffaaab
cmp eax, 3
ja case.0x403fc2.8741
lea eax, [ebp - 0x124]
push eax
call fcn.0042e900
jmp 0x404c83
lea eax, [ebp - 0x124]
push eax
call fcn.0042e7b0
add esp, 4
mov esi, eax
test esi, esi
jne 0x404eca
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_423]
push dword [ebp - 0x170]
mov eax, dword [0x4a7b6c]
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 - 0x124], ax
jne 0x403f50
test esi, esi
jne 0x404eca
cmp dword [ebp - 0x148], esi
jne 0x404cec
mov eax, dword [0x4a7b6c]
add eax, 0xd4
cmp dword [eax], esi
je 0x404cec
push eax
call fcn.00427af0
add esp, 4
mov eax, dword [0x4a7b6c]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x1e8], ecx
mov eax, dword [0x4a7b6c]
push dword [eax + 0xc0]
call fcn.0044a3d0
add esp, 4
cmp dword [ebp - 0x134], 0
jne 0x404d70
cmp dword [ebp - 0x13c], 0
jne 0x404d70
mov eax, dword [ebp - 0x140]
test eax, eax
je 0x404d52
mov esi, dword [0x4a7b50]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
push dword [0x4a7d18]
mov dword [0x4a7b50], eax
call sub.MMFS2.dll_Ordinal_121
test esi, esi
je 0x404d52
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
call fcn.0044d930
mov esi, eax
test esi, esi
jne 0x404eca
call fcn.004033b0
mov esi, eax
test esi, esi
jne 0x404eca
mov ecx, dword [0x4a7b6c]
mov eax, dword [0x4a7b3c]
mov dword [ecx + 0x1c4], eax
call fcn.00405b50
test eax, eax
jne 0x404d9c
or esi, 0xffffffff
jmp 0x404eca
mov esi, 8
jmp 0x404eca
mov eax, dword [0x4a7b6c]
mov edi, dword [sym.imp.USER32.dll_GetMenuState]
mov eax, dword [eax + 0xb0]
mov ebx, dword [sym.imp.USER32.dll_DeleteMenu]
test eax, eax
je 0x404de3
cmp dword [ebp - 0x148], 0
jne 0x404de3
push 0
push 0x3f3
push eax
call edi
cmp eax, 0xffffffff
je 0x404de3
mov eax, dword [0x4a7b6c]
push 0
push 0x3f3
push dword [eax + 0xb0]
call ebx
mov eax, dword [0x4a7b6c]
mov eax, dword [eax + 0xb0]
test eax, eax
je 0x404e3d
push 0
push 0x401
push eax
call edi
cmp eax, 0xffffffff
je 0x404e3d
mov ecx, dword [0x4a7b6c]
mov eax, 0x1000
test word [ecx + 0x14], ax
jne 0x404e3d
push 0
push 0x401
push dword [ecx + 0xb0]
call ebx
mov eax, dword [0x4a7b6c]
push 1
push dword [eax + 0xb0]
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.0044a4d0
add esp, 4
mov ebx, dword [ebp - 0x134]
test ebx, ebx
jne 0x404e73
mov eax, dword [0x4a7b6c]
test byte [eax + 0x16], 8
je 0x404e73
push ebx
push ebx
push ebx
push 4
push dword [0x4a7b40]
call sub.MMFS2.dll_Ordinal_31
or eax, 4
push eax
push 2
push dword [0x4a7b40]
call sub.MMFS2.dll_Ordinal_31
mov eax, dword [0x4a7b48]
test ebx, ebx
je 0x404e82
mov eax, dword [ebx + 0x1d0]
cmp dword [ebp - 0x13c], 0
jne 0x404ea0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
call fcn.0043c0e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x404eca
test ebx, ebx
jne 0x404eca
mov eax, dword [0x4a7b6c]
mov ecx, 0x800
test word [eax + 0x14], cx
je 0x404eca
push 1
call fcn.0044e410
add esp, 4
call fcn.00405b50
jmp 0x404eca
mov esi, 0x14
cmp dword [ebp - 0x140], 0
je 0x404ee2
lea eax, [ebp - 0x140]
push eax
call fcn.00427af0
add esp, 4
test esi, esi
je 0x404f8e
jle 0x404f06
test byte [0x4a7ce6], 1
je 0x404f06
push 0x40
push esi
push dword [0x4a7b48]
call fcn.0043c9e0
add esp, 0xc
push dword [ebp - 0x128]
call fcn.004027c0
mov ebx, dword [ebp - 0x16c]
add esp, 4
cmp dword [0x4a7b6c], ebx
je 0x404f6d
test ebx, ebx
jne 0x404f2a
xor eax, eax
jmp 0x404f30
mov eax, dword [ebx + 0x1d8]
push eax
call fcn.00422c90
add esp, 4
mov dword [0x4a7b6c], ebx
test ebx, ebx
je 0x404f56
mov eax, dword [ebx + 0x1d0]
mov dword [0x4a7b4c], eax
mov eax, dword [ebx + 0x1d4]
jmp 0x404f62
mov dword [0x4a7b4c], 0
xor eax, eax
push eax
mov dword [0x4a7b44], eax
call sub.MMFS2.dll_Ordinal_831
pop esi
pop edi
mov dword [ebp - 0x128], 0
mov eax, dword [ebp - 0x128]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468a6b
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4a7b6c]
test ecx, ecx
je 0x404fc5
mov eax, dword [ecx + 0x1d0]
mov dword [0x4a7b4c], eax
mov eax, dword [ecx + 0x1d4]
pop esi
pop edi
mov dword [0x4a7b44], eax
mov eax, dword [ebp - 0x128]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468a6b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
pop esi
pop edi
xor ecx, ebp
mov dword [0x4a7b4c], 0
mov dword [0x4a7b44], 0
pop ebx
call fcn.00468a6b
mov esp, ebp
pop ebp
ret
call fcn.004680fb
lea ecx, [ecx]
leave
aas
inc eax
add cl, ah
inc eax
inc eax
add byte [eax], bl
inc ebp
inc eax
add byte [eax + 0x45], bl
inc eax
add byte [ecx + 0x46], ah
inc eax
add byte [edi], ah
inc edi
inc eax
add byte [edi + 0x47], bh
inc eax
add byte [ebx - 0x35ffbfb9], bl
dec ecx
inc eax
add byte [ebp + 0x41], ch
inc eax
add byte [eax], bl
inc ebx
inc eax
add byte [eax + 0x51004043], dl
inc esp
inc eax
add byte [ecx + 0x77004044], bl
inc esi
inc eax
add bl, ah
inc ebx
inc eax
add byte [0xec00403f], al
inc edi
inc eax
add byte [esi], dh
inc ebp
inc eax
add byte [edx], bl
inc ecx
inc eax
add byte [ecx + eax*2], cl
inc eax
add byte [ebp - 0x51ffbfba], cl
inc ebp
inc eax
add byte [esi + 0x47004046], bl
inc ebp
inc eax
add byte [eax + eax*2 + 0x49ec0040], dh
inc eax
add byte [esi + 0x404c], dl
add dword [ebx], ebx
add al, byte [ebx]
add al, 5
push es
pop es
or byte [ebx], bl
or dword [edx], ecx
or ebx, dword [ebx]
or al, 13
push cs
movups xmm3, xmmword [ebx]
adc dword [edx], edx
adc edx, dword [ebx + ebx]
sbb edx, dword [370875141]
pop ss
sbb ebx, dword [eax]
sbb dword [ebx], ebx
sbb ebx, dword [ebx]
sbb ebx, dword [ebx]
sbb ebx, dword [edx]
int3