Function at 0x403b10
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.00427a50
add esp, 8
test eax, eax
jne 0x403b95
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004689fb
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4a7b88]
push esi
mov esi, dword [ebp - 0x128]
test ecx, ecx
jne 0x403bc5
push 0x4a7b90
push 0x28
call fcn.00427a50
add esp, 8
test eax, eax
je 0x403c02
mov dword [0x4a7b8c], 0xa
jmp 0x403bee
mov eax, dword [0x4a7b8c]
cmp ecx, eax
jl 0x403bf4
lea eax, [eax*4 + 0x28]
push 0x4a7b90
push eax
call fcn.00427ab0
add esp, 8
test eax, eax
je 0x403c02
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.004056c0
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 0x403d61
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 0x403d61
test dword [edx + 0x10], 0x4100020
jne 0x403d61
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 0x403d92
mov ebx, dword [0x4a7b84]
mov edi, dword [0x4a4fe8]
test ebx, ebx
je 0x403d8a
test edi, edi
jne 0x403d92
or esi, 0xffffffff
jmp 0x404eaa
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 0x403db7
lea esi, [ecx + 5]
jmp 0x404eaa
test edi, edi
je 0x403e61
cmp dword [ebp - 0x134], 0
jne 0x403e4f
cmp dword [0x4a79ec], 0
jne 0x403e4f
push 2
push 0x16e260
call fcn.004688e4
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 0x403e4f
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 0x403e4f
cmp esi, 0x40000002
jne 0x404eaa
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 0x404eaa
mov ecx, dword [0x4a7b6c]
mov eax, dword [ecx]
cmp eax, 0x454d4150
jne 0x403ebe
mov byte [ecx + 0x384], 0
jmp 0x403ed5
cmp eax, 0x554d4150
jne 0x404ea5
mov eax, dword [0x4a7b6c]
mov byte [eax + 0x384], 1
mov eax, dword [0x4a7b6c]
mov ecx, 0x302
cmp word [eax + 4], cx
je 0x403eef
mov esi, 0x13
jmp 0x404eaa
cmp dword [ebp - 0x134], 0
jne 0x403f0d
mov eax, dword [0x4a7b6c]
cmp dword [eax + 8], 2
je 0x403f0d
mov esi, 0x13
jmp 0x404eaa
call fcn.0040c150
mov esi, eax
test esi, esi
jne 0x404eaa
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 0x404eaa
cmp dword [ebp - 0x120], eax
je 0x404c93
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 0x404c31
je 0x404a13
sub eax, 0x2223
cmp eax, 0x2a
ja case.0x403fa2.8741
movzx eax, byte [eax + 0x405048]
jmp dword [eax*4 + 0x404fd8]
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.0041f120
mov ebx, dword [ebp - 0x134]
mov ecx, dword [0x4a7b6c]
add esp, 0x18
mov esi, eax
test ebx, ebx
jne 0x403ffb
mov eax, 0x200
test word [ecx + 0x16], ax
je 0x403ffb
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.00427a50
add esp, 8
test eax, eax
je 0x404d72
mov edi, dword [0x4a7b6c]
test byte [edi + 0x16], 4
jne 0x404041
lea eax, [edi + 0xd4]
push eax
mov eax, dword [edi + 0x74]
shl eax, 2
push eax
call fcn.00427a50
mov edi, dword [0x4a7b6c]
add esp, 8
push 1
push 0x100
call fcn.004688e4
add esp, 8
mov dword [edi + 0x26c], eax
test ebx, ebx
jne 0x404078
mov ecx, dword [0x4a79f8]
test ecx, ecx
je 0x404078
mov eax, dword [0x4a7b6c]
mov edx, 0x800
test word [eax + 0x16], dx
jne 0x404078
push 1
call ecx
mov ecx, dword [0x4a7b6c]
test byte [ecx + 0x14], 0x10
je 0x404c68
mov byte [ecx + 0x390], 1
jmp 0x404c68
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.0041f120
add esp, 0x18
jmp 0x404c66
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.0041efc0
add esp, 0x14
jmp 0x404c66
mov ecx, dword [0x4a7b6c]
lea eax, [ecx + 0x8c]
jmp 0x4040cd
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.0041efc0
mov ecx, dword [0x4a7b6c]
add esp, 0x14
cmp byte [ecx + 0x384], 0
mov esi, eax
jne 0x404c68
lea eax, [ecx + 0x90]
push eax
call fcn.004039d0
add esp, 4
jmp 0x404c68
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.0041efc0
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 0x404299
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.00468a10
mov ecx, edi
add esp, 0x30
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4041f0
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 0x404272
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 0x404230
mov esi, dword [ebp - 0x174]
mov eax, dword [ebp - 0x160]
cmp dword [ebp - 0x138], eax
jge 0x404293
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 0x404c68
sub eax, 0xffffff80
cmp dword [eax], 0
je 0x4042bd
push eax
call fcn.004039d0
add esp, 4
mov eax, dword [ebp - 0x128]
add eax, 0x8c
cmp dword [eax], 0
je 0x4042d6
push eax
call fcn.004039d0
add esp, 4
mov eax, dword [ebp - 0x128]
add eax, 0x88
cmp dword [eax], 0
je 0x404c68
push eax
call fcn.004039d0
add esp, 4
jmp 0x404c68
cmp dword [ebp - 0x168], 0
jne 0x404321
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.0041efc0
mov ecx, dword [0x4a7b6c]
add esp, 0x14
cmp byte [ecx + 0x384], 0
mov esi, eax
jne 0x404c68
lea eax, [ecx + 0x94]
push eax
call fcn.004039d0
add esp, 4
jmp 0x404c68
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.0041efc0
mov ecx, dword [0x4a7b6c]
add esp, 0x14
cmp byte [ecx + 0x384], 0
mov esi, eax
jne 0x404c68
lea eax, [ecx + 0xa4]
push eax
call fcn.004039d0
add esp, 4
jmp 0x404c68
cmp dword [ebp - 0x134], 0
je case.0x403fa2.8741
test dword [ebp + 0x18], 0x80000000
je case.0x403fa2.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.0041efc0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x404eaa
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.0x403fa2.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.0041efc0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x404eaa
jmp case.0x403fa2.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.0041efc0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x404eaa
mov ecx, dword [0x4a7b6c]
cmp byte [ecx + 0x384], al
jne case.0x403fa2.8741
mov eax, dword [ecx + 0x274]
add ecx, 0x274
test eax, eax
je case.0x403fa2.8741
cmp dword [eax], esi
je case.0x403fa2.8741
push ecx
call fcn.004032a0
add esp, 4
jmp case.0x403fa2.8741
cmp dword [ebp - 0x134], 0
jne case.0x403fa2.8741
mov ecx, dword [0x4a7b6c]
lea eax, [ecx + 0xc0]
jmp 0x4040cd
mov ecx, dword [0x4a7b6c]
lea eax, [ecx + 0xbc]
jmp 0x4040cd
mov ecx, dword [0x4a7b6c]
lea eax, [ecx + 0x37c]
jmp 0x4040cd
cmp dword [0x4a7cf4], 0
jne case.0x403fa2.8741
push 0
push 0
push 0x4a7cf4
lea eax, [ebp - 0x124]
push eax
mov eax, dword [0x4a7b6c]
push dword [eax + 0x9c]
call fcn.0041efc0
mov esi, eax
mov eax, dword [0x4a7b6c]
add esp, 0x14
cmp byte [eax + 0x384], 0
jne 0x404c68
push 0x4a7cf4
call fcn.004039d0
add esp, 4
jmp 0x404c68
mov ebx, dword [ebp - 0x164]
mov dword [ebp - 0x13c], 0
test ebx, ebx
je case.0x403fa2.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.0041f120
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x404eaa
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.0041f3a0
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_423]
add esp, 0xc
cmp eax, dword [ebp - 0x158]
je case.0x403fa2.8741
mov dword [ebp - 0x13c], 1
jmp case.0x403fa2.8741
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.0041e250
add esp, 8
jmp 0x404c66
lea eax, [ebp - 0x124]
push 1
push eax
call fcn.0041e250
add esp, 8
jmp 0x404c66
lea eax, [ebp - 0x124]
push eax
call fcn.0042d380
jmp 0x404c63
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.0041efc0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x404eaa
mov eax, dword [0x4a7b6c]
mov edi, dword [eax + 0x388]
test edi, edi
je 0x404c70
mov ebx, dword [edi]
xor edx, edx
test ebx, ebx
je 0x404c70
lea ecx, [edi + 4]
nop
mov eax, dword [ecx]
test byte [edi + eax + 0xc], 0xf
jne 0x4046f6
inc edx
add ecx, 4
cmp edx, ebx
jb 0x4046e0
jmp 0x404c70
mov eax, dword [0x4a7b6c]
mov byte [eax + 0x390], 1
jmp 0x404c70
mov eax, dword [0x4a7b6c]
test byte [eax + 0x1a], 8
je 0x404755
test dword [eax + 0x1b0], 0x4000
jne 0x404755
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.004360b0
jmp 0x404c66
cmp dword [0x4a79e8], 0
je case.0x403fa2.8741
call fcn.00405a00
call fcn.00402b60
jmp case.0x403fa2.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.0041efc0
mov esi, eax
mov eax, dword [0x4a7b6c]
push dword [eax + 0xcc]
call fcn.00427af0
add esp, 0x18
shr eax, 1
movzx ecx, ax
mov eax, dword [0x4a7b6c]
mov dword [eax + 0xc8], ecx
jmp 0x404c68
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 0x404eaa
cmp dword [ebp - 0x15c], eax
je case.0x403fa2.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 0x404996
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 0x404996
push 0x218
call fcn.00467dc7
add esp, 4
test eax, eax
je 0x404991
mov ecx, eax
call fcn.00402560
mov edi, eax
test edi, edi
je 0x404991
mov edx, dword [0x4a7b6c]
cmp byte [edx + 0x384], 0
jne 0x4048c8
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 0x404fd0
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 0x4048ea
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.0041f410
test esi, esi
jne 0x404974
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 0x404974
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 0x404996
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_425]
jmp 0x404825
push 1
mov ecx, edi
call fcn.00402580
mov eax, dword [0x4a7b6c]
mov ecx, dword [ebp - 0x160]
mov word [eax + 0x1a], cx
jmp 0x404c68
mov esi, 8
mov eax, dword [0x4a7b6c]
mov ecx, dword [ebp - 0x160]
mov word [eax + 0x1a], cx
jmp 0x404c68
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.0x403fa2.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 0x404eaa
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 0x404eaa
jmp case.0x403fa2.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 0x404a50
cmp dword [ebp - 0x144], 0
jne 0x404b4e
xor eax, eax
mov word [ebp - 0x150], ax
xor edi, edi
jmp 0x404a60
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 0x404b4e
cmp dword [ebp - 0x14c], eax
je 0x404b3c
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 0x404be7
sub ecx, 2
je 0x404b5e
dec ecx
jne 0x404b17
cmp dword [ebp - 0x144], ecx
jne 0x404b17
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.0041efc0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x404b4e
mov eax, dword [ebp - 0x140]
add eax, 4
push eax
push eax
call fcn.00405490
add esp, 8
mov dword [ebp - 0x144], 1
test edi, edi
je 0x404b24
cmp dword [ebp - 0x144], 0
jne 0x404b4e
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 0x404a60
mov eax, dword [0x4a7b6c]
inc dword [eax + 0xc4]
jmp 0x404c68
mov eax, dword [0x4a7b6c]
cmp dword [eax + 0xd4], 0
je 0x404bdd
push dword [eax + 0x26c]
lea ecx, [ebp - 0x154]
push 0
push ecx
lea ecx, [ebp - 0x150]
push ecx
push dword [eax + 0x9c]
call fcn.0041efc0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x404b4e
mov edx, dword [ebp - 0x154]
test edx, edx
je 0x404bdd
mov eax, dword [0x4a7b6c]
cmp byte [eax + 0x384], 0
jne 0x404bc8
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 0x404b1b
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.0041f120
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x404b4e
test byte [ebp - 0x110], 0x40
jne 0x404b17
lea edi, [eax + 1]
jmp 0x404b1b
cmp eax, 0x6669
jg case.0x403fa2.8741
cmp eax, 0x6666
jge 0x404c57
add eax, 0xffffaaab
cmp eax, 3
ja case.0x403fa2.8741
lea eax, [ebp - 0x124]
push eax
call fcn.0042e8a0
jmp 0x404c63
lea eax, [ebp - 0x124]
push eax
call fcn.0042e750
add esp, 4
mov esi, eax
test esi, esi
jne 0x404eaa
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 0x403f30
test esi, esi
jne 0x404eaa
cmp dword [ebp - 0x148], esi
jne 0x404ccc
mov eax, dword [0x4a7b6c]
add eax, 0xd4
cmp dword [eax], esi
je 0x404ccc
push eax
call fcn.00427a90
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.0044a340
add esp, 4
cmp dword [ebp - 0x134], 0
jne 0x404d50
cmp dword [ebp - 0x13c], 0
jne 0x404d50
mov eax, dword [ebp - 0x140]
test eax, eax
je 0x404d32
mov esi, dword [0x4a7b50]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
push dword [0x4a7d14]
mov dword [0x4a7b50], eax
call sub.MMFS2.dll_Ordinal_121
test esi, esi
je 0x404d32
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
call fcn.0044d8b0
mov esi, eax
test esi, esi
jne 0x404eaa
call fcn.004033b0
mov esi, eax
test esi, esi
jne 0x404eaa
mov ecx, dword [0x4a7b6c]
mov eax, dword [0x4a7b3c]
mov dword [ecx + 0x1c4], eax
call fcn.00405b30
test eax, eax
jne 0x404d7c
or esi, 0xffffffff
jmp 0x404eaa
mov esi, 8
jmp 0x404eaa
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 0x404dc3
cmp dword [ebp - 0x148], 0
jne 0x404dc3
push 0
push 0x3f3
push eax
call edi
cmp eax, 0xffffffff
je 0x404dc3
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 0x404e1d
push 0
push 0x401
push eax
call edi
cmp eax, 0xffffffff
je 0x404e1d
mov ecx, dword [0x4a7b6c]
mov eax, 0x1000
test word [ecx + 0x14], ax
jne 0x404e1d
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.0044a440
add esp, 4
mov ebx, dword [ebp - 0x134]
test ebx, ebx
jne 0x404e53
mov eax, dword [0x4a7b6c]
test byte [eax + 0x16], 8
je 0x404e53
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 0x404e62
mov eax, dword [ebx + 0x1d0]
cmp dword [ebp - 0x13c], 0
jne 0x404e80
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
call fcn.0043c050
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x404eaa
test ebx, ebx
jne 0x404eaa
mov eax, dword [0x4a7b6c]
mov ecx, 0x800
test word [eax + 0x14], cx
je 0x404eaa
push 1
call fcn.0044e3a0
add esp, 4
call fcn.00405b30
jmp 0x404eaa
mov esi, 0x14
cmp dword [ebp - 0x140], 0
je 0x404ec2
lea eax, [ebp - 0x140]
push eax
call fcn.00427a90
add esp, 4
test esi, esi
je 0x404f6e
jle 0x404ee6
test byte [0x4a7ce6], 1
je 0x404ee6
push 0x40
push esi
push dword [0x4a7b48]
call fcn.0043c950
add esp, 0xc
push dword [ebp - 0x128]
call fcn.004027c0
mov ebx, dword [ebp - 0x16c]
add esp, 4
cmp dword [0x4a7b6c], ebx
je 0x404f4d
test ebx, ebx
jne 0x404f0a
xor eax, eax
jmp 0x404f10
mov eax, dword [ebx + 0x1d8]
push eax
call fcn.00422c20
add esp, 4
mov dword [0x4a7b6c], ebx
test ebx, ebx
je 0x404f36
mov eax, dword [ebx + 0x1d0]
mov dword [0x4a7b4c], eax
mov eax, dword [ebx + 0x1d4]
jmp 0x404f42
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.004689fb
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4a7b6c]
test ecx, ecx
je 0x404fa5
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.004689fb
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.004689fb
mov esp, ebp
pop ebp
ret
call fcn.0046808b
lea ecx, [ecx]
test eax, 0xc100403f
inc eax
inc eax
add al, bh
inc esp
inc eax
add byte [eax], bh
inc ebp
inc eax
add byte [ecx + 0x46], al
inc eax
add byte [edi], al
inc edi
inc eax
add byte [edi + 0x47], bl
inc eax
add byte [ebx + 0x47], bh
inc eax
add byte [edx + 0x4d004049], ch
inc ecx
inc eax
add al, bh
inc edx
inc eax
add byte [eax + 0x43], dh
inc eax
add byte [ecx], dh
inc esp
inc eax
add byte [ecx + 0x44], bh
inc eax
add byte [edi + 0x46], dl
inc eax
add bl, al
inc ebx
inc eax
add ch, ah
inc eax
add ah, cl
inc edi
inc eax
add byte [esi], dl
inc ebp
inc eax
add dl, bh
inc eax
inc eax
add ah, ch
inc eax
inc eax
add byte [ebp + 0x46], ch
inc eax
add byte [esi + 0x7e004045], cl
inc esi
inc eax
add byte [edi], ah
inc ebp
inc eax
add byte [eax + eax*2 + 0x49cc0040], dl
inc eax
add byte [esi + 0x4c], dh
inc eax
add byte [eax], al
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