Function at 0x403270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x17c
mov eax, dword [0x4a6ff8]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push 0x3a8
mov dword [esp + 0x60], edx
mov ebx, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x5c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
call fcn.0046cf04
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
jne 0x4032fd
call fcn.0046ee91
push 1
push 0x3a8
call fcn.0046cf04
mov edi, eax
add esp, 8
mov dword [esp + 0x18], eax
test edi, edi
je 0x40455b
mov ecx, edi
call fcn.004029d0
mov ecx, edi
call fcn.00402940
mov ecx, dword [0x4ac9ac]
mov dword [esp + 0x60], eax
lea ecx, [ecx + 0x168]
call dword [sym.imp.MMFS2.dll_Ordinal_255]
mov eax, dword [0x4ac9ac]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0xfc], 0xffffffff
mov eax, dword [0x4ac9ac]
mov dword [esp + 0x34], 0
mov dword [eax + 0x100], 0xffffffff
mov eax, dword [0x4ac9ac]
mov dword [eax + 0x104], 0xffffffff
mov eax, dword [0x4ac9ac]
mov dword [eax + 0x108], 0xffffffff
mov eax, dword [0x4ac9ac]
mov dword [eax + 0x1f0], 0xffffffff
mov eax, dword [0x4ac9ac]
mov dword [eax + 0x1a8], esi
mov eax, dword [0x4ac9ac]
mov dword [eax + 0x380], 0
mov eax, dword [0x4ac9ac]
mov dword [eax + 0x398], 0
mov eax, dword [0x4ac9ac]
mov dword [eax + 0x39c], 3
test edx, edx
je 0x403452
mov eax, dword [0x4ac9ac]
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x1b0], ecx
mov ecx, dword [0x4ac9ac]
mov eax, dword [ecx + 0x1b0]
shr eax, 1
and eax, 1
mov dword [ecx + 0x244], eax
mov ecx, dword [0x4ac9ac]
mov eax, dword [ecx + 0x1b0]
shr eax, 2
and eax, 1
mov dword [ecx + 0x248], eax
mov ecx, dword [0x4ac9ac]
mov eax, dword [ecx + 0x1b0]
and eax, 1
mov dword [ecx + 0x24c], eax
mov ecx, dword [0x4ac9ac]
mov eax, dword [ecx + 0x1b0]
and eax, 1
mov dword [ecx + 0x250], eax
mov ecx, dword [0x4ac9ac]
mov eax, dword [ecx + 0x1b0]
shr eax, 0x13
and eax, 1
mov dword [ecx + 0x240], eax
test byte [0x4ac994], 0x10
je 0x403452
test dword [edx + 0x10], 0x4100020
jne 0x403452
mov dword [edi + 0x394], 2
mov eax, dword [0x4ac9ac]
xor edi, edi
mov dword [eax + 0x9c], 0xffffffff
test ebx, ebx
jne 0x403483
mov ebx, dword [0x4ac9c4]
mov edi, dword [0x4ab1b0]
test ebx, ebx
je 0x404549
test edi, edi
je 0x404549
mov esi, dword [sym.imp.MMFS2.dll_Ordinal_1033]
push 0
push ebx
call esi
mov ecx, eax
mov eax, dword [0x4ac9ac]
mov dword [eax + 0x9c], ecx
cmp ecx, 0xffffffff
jne 0x4034a8
lea esi, [ecx + 5]
jmp 0x40452f
test edi, edi
je 0x403548
cmp dword [esp + 0x20], 0
jne 0x403536
cmp dword [0x4ac848], 0
jne 0x403536
push 2
push 0x16e260
call fcn.0046cf04
add esp, 8
mov dword [0x4ac848], eax
push 0x104
push eax
push dword [0x4ac978]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push dword [0x4ac848]
call esi
mov esi, eax
mov dword [esp + 0x24], esi
cmp esi, 0xffffffff
je 0x403536
push pe_nt_image_headers32
push esi
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov eax, dword [sym.imp.MMFS2.dll_Ordinal_425]
push 0x16e260
push dword [0x4ac848]
push esi
call eax
push dword [esp + 0x24]
mov esi, eax
call dword [sym.imp.MMFS2.dll_Ordinal_419]
test esi, esi
je 0x403536
cmp esi, 0x40000002
jne 0x4044bc
mov eax, dword [0x4ac9ac]
push edi
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov eax, dword [0x4ac9ac]
push 0x10
mov dword [eax + 0x84], ebx
mov eax, dword [0x4ac9ac]
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_425]
mov dword [eax + 0xa0], edi
mov eax, dword [0x4ac9ac]
mov dword [eax + 0x360], 0
mov eax, dword [0x4ac9ac]
push eax
push dword [eax + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x40452d
mov eax, dword [0x4ac9ac]
mov ecx, dword [eax]
cmp ecx, 0x454d4150
jne 0x4035a5
mov byte [eax + 0x384], 0
jmp 0x4035b8
cmp ecx, 0x554d4150
jne 0x404526
mov byte [eax + 0x384], 1
mov eax, dword [0x4ac9ac]
mov ecx, 0x302
cmp word [eax + 4], cx
je 0x4035d2
mov esi, 0x13
jmp 0x40452f
cmp dword [esp + 0x20], 0
jne 0x4035e9
cmp dword [eax + 8], 2
je 0x4035e9
mov esi, 0x13
jmp 0x40452f
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_423]
xor ecx, ecx
mov word [esp + 0xc], cx
push 8
lea ecx, [esp + 0x10]
push ecx
push dword [eax + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x4044ab
cmp dword [esp + 0x10], eax
je 0x40428f
mov eax, dword [0x4ac9ac]
push dword [eax + 0x9c]
call edi
add eax, dword [esp + 0x10]
mov dword [esp + 0x64], eax
movzx eax, word [esp + 0xc]
cmp eax, 0x3333
jg 0x404238
je 0x404053
sub eax, 0x2223
cmp eax, 0x2a
ja case.0x403659.8741
movzx eax, byte [eax + 0x4045e8]
jmp dword [eax*4 + 0x404578]
mov ecx, dword [0x4ac9ac]
push 0
lea eax, [ecx + 0x360]
push eax
lea eax, [ecx + 0x10]
mov ecx, dword [ecx + 0x9c]
push 0x70
push eax
lea edx, [esp + 0x1c]
call fcn.00424280
mov ebx, dword [esp + 0x30]
mov ecx, dword [0x4ac9ac]
add esp, 0x10
mov esi, eax
test ebx, ebx
jne 0x4036ad
mov eax, 0x200
test word [ecx + 0x16], ax
je 0x4036ad
mov eax, 1
mov word [0x4acb2c], ax
lea edx, [ecx + 0xd0]
mov ecx, dword [ecx + 0x74]
shl ecx, 2
call fcn.0042c9f0
test eax, eax
je 0x4042a5
mov edi, dword [0x4ac9ac]
test byte [edi + 0x16], 4
jne 0x4036e9
mov ecx, dword [edi + 0x74]
lea edx, [edi + 0xd4]
shl ecx, 2
call fcn.0042c9f0
mov edi, dword [0x4ac9ac]
push 1
push pe_nt_image_headers32
call fcn.0046cf04
add esp, 8
mov dword [edi + 0x26c], eax
test ebx, ebx
jne 0x403720
mov ecx, dword [0x4ac840]
test ecx, ecx
je 0x403720
mov eax, dword [0x4ac9ac]
mov edx, 0x800
test word [eax + 0x16], dx
jne 0x403720
push 1
call ecx
mov ecx, dword [0x4ac9ac]
test byte [ecx + 0x14], 0x10
je 0x404266
mov byte [ecx + 0x390], 1
jmp 0x404266
mov ecx, dword [0x4ac9ac]
push 0
push 0
lea eax, [ecx + 0x380]
mov ecx, dword [ecx + 0x9c]
push 4
push eax
lea edx, [esp + 0x1c]
call fcn.00424280
add esp, 0x10
jmp 0x404264
push 0
push ecx
mov ecx, dword [0x4ac9ac]
lea eax, [ecx + 0x80]
mov ecx, dword [ecx + 0x9c]
push eax
lea edx, [esp + 0x18]
call fcn.004243f0
add esp, 0xc
jmp 0x404264
push 0
push ecx
mov ecx, dword [0x4ac9ac]
lea eax, [ecx + 0x8c]
jmp 0x403775
mov ecx, dword [0x4ac9ac]
lea edx, [esp + 0xc]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x90]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.004243f0
mov ecx, dword [0x4ac9ac]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
jne 0x404266
add ecx, 0x90
call fcn.00403040
jmp 0x404266
push 0
push ecx
mov ecx, dword [0x4ac9ac]
lea edx, [esp + 0x14]
lea eax, [ecx + 0x88]
mov ecx, dword [ecx + 0x9c]
push eax
mov dword [esp + 0x60], 1
call fcn.004243f0
mov esi, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edi, dword [eax + 0x26c]
mov dword [esp + 0x5c], esi
test edi, edi
je 0x403929
push dword [eax + 0x88]
mov edx, edi
mov ecx, eax
mov byte [esp + 0x1b], 0
xor bh, bh
call fcn.00403170
mov eax, dword [esp + 0x1c]
add esp, 4
push dword [eax + 0x80]
mov edx, edi
mov ecx, eax
call fcn.00403170
mov eax, dword [esp + 0x1c]
add esp, 4
push dword [eax + 0x8c]
mov edx, edi
mov ecx, eax
call fcn.00403170
add esp, 4
lea eax, [edi + 0x80]
push 0x80
push 0
push eax
call fcn.00470580
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
jmp 0x403890
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403890
sub ecx, edx
mov bl, 0x63
lea eax, [ecx + 1]
mov ch, byte [esp + 0x17]
mov dh, bl
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], 0
cmp eax, 2
jl 0x403900
lea esi, [eax - 2]
shr esi, 1
inc esi
lea eax, [esi + esi]
mov dword [esp + 0x24], eax
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 0x4038c2
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x24], eax
jge 0x40391f
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
mov eax, dword [esp + 0x18]
add bh, ch
add bh, dh
mov byte [edi], bh
cmp byte [eax + 0x384], 0
jne 0x404266
cmp dword [eax + 0x80], 0
lea ecx, [eax + 0x80]
je 0x40394e
call fcn.00403040
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x8c], 0
lea ecx, [eax + 0x8c]
je 0x403966
call fcn.00403040
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x88], 0
lea ecx, [eax + 0x88]
je 0x404266
call fcn.00403040
jmp 0x404266
cmp dword [esp + 0x54], 0
jne 0x4039a6
mov eax, dword [0x4ac9ac]
push dword [eax + 0x9c]
call edi
sub eax, 8
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 1
push 0
push ecx
mov ecx, dword [0x4ac9ac]
lea edx, [ecx + 0x94]
mov ecx, dword [ecx + 0x9c]
push edx
lea edx, [esp + 0x18]
call fcn.004243f0
mov ecx, dword [0x4ac9ac]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
jne 0x404266
add ecx, 0x94
call fcn.00403040
jmp 0x404266
mov ecx, dword [0x4ac9ac]
lea edx, [esp + 0xc]
push dword [ecx + 0x26c]
lea eax, [ecx + 0xa4]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.004243f0
mov ecx, dword [0x4ac9ac]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
jne 0x404266
add ecx, 0xa4
call fcn.00403040
jmp 0x404266
cmp dword [esp + 0x20], 0
je case.0x403659.8741
test dword [ebp + 0x10], 0x80000000
je case.0x403659.8741
push 0
push ecx
mov ecx, dword [0x4ac9ac]
lea edx, [esp + 0x14]
lea eax, [ecx + 0xa8]
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.004243f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4044ab
mov ecx, dword [0x4ac9ac]
mov ecx, dword [ecx + 0xa8]
call fcn.00402f70
mov ecx, dword [0x4ac9ac]
mov dword [ecx + 0xac], eax
jmp case.0x403659.8741
mov eax, dword [0x4ac9ac]
lea edx, [esp + 0xc]
mov dword [eax + 0x260], 0
mov ecx, dword [0x4ac9ac]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x260]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.004243f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4044ab
jmp case.0x403659.8741
mov eax, dword [0x4ac9ac]
lea edx, [esp + 0xc]
mov dword [eax + 0x274], 0
mov ecx, dword [0x4ac9ac]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x274]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.004243f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4044ab
mov ecx, dword [0x4ac9ac]
cmp byte [ecx + 0x384], al
jne case.0x403659.8741
mov eax, dword [ecx + 0x274]
add ecx, 0x274
test eax, eax
je case.0x403659.8741
cmp dword [eax], esi
je case.0x403659.8741
call fcn.004030a0
jmp case.0x403659.8741
cmp dword [esp + 0x20], 0
jne case.0x403659.8741
push 0
push ecx
mov ecx, dword [0x4ac9ac]
lea eax, [ecx + 0xc0]
jmp 0x403775
push 0
push ecx
mov ecx, dword [0x4ac9ac]
lea eax, [ecx + 0xbc]
jmp 0x403775
push 0
push ecx
mov ecx, dword [0x4ac9ac]
lea eax, [ecx + 0x37c]
jmp 0x403775
cmp dword [0x4acb10], 0
jne case.0x403659.8741
push 0
push ecx
mov ecx, dword [0x4ac9ac]
push 0x4acb10
mov ecx, dword [ecx + 0x9c]
lea edx, [esp + 0x18]
call fcn.004243f0
mov esi, eax
mov eax, dword [0x4ac9ac]
add esp, 0xc
cmp byte [eax + 0x384], 0
jne 0x404266
mov ecx, 0x4acb10
call fcn.00403040
jmp 0x404266
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
je case.0x403659.8741
mov eax, dword [0x4ac9ac]
push dword [eax + 0x9c]
call edi
mov ecx, dword [0x4ac9ac]
mov edi, eax
push dword [ecx + 0x26c]
mov ecx, dword [ecx + 0x9c]
mov eax, 0xfffffff8
sub eax, dword [esp + 0x30]
push 0
add edi, eax
lea eax, [esp + 0x54]
push 4
push eax
lea edx, [esp + 0x1c]
call fcn.00424280
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4044ab
push dword [esp + 0x2c]
mov eax, dword [0x4ac9ac]
xor byte [esp + 0x50], 0xd
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
push ecx
mov ecx, dword [0x4ac9ac]
mov edx, edi
mov ecx, dword [ecx + 0x9c]
call fcn.00424690
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_423]
add esp, 4
cmp eax, dword [esp + 0x4c]
je case.0x403659.8741
mov dword [esp + 0x28], 1
jmp case.0x403659.8741
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00422d00
jmp 0x404264
mov edx, 1
lea ecx, [esp + 0xc]
call fcn.00422d00
jmp 0x404264
lea ecx, [esp + 0xc]
call fcn.004321f0
jmp 0x404264
mov eax, dword [0x4ac9ac]
push 0
mov dword [eax + 0x388], 0
push ecx
mov ecx, dword [0x4ac9ac]
lea edx, [esp + 0x14]
lea eax, [ecx + 0x388]
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.004243f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4044ab
mov eax, dword [0x4ac9ac]
mov edi, dword [eax + 0x388]
test edi, edi
je 0x404274
mov ebx, dword [edi]
xor edx, edx
test ebx, ebx
je 0x40426e
lea ecx, [edi + 4]
lea ebx, [ebx]
mov eax, dword [ecx]
test byte [eax + edi + 0xc], 0xf
jne 0x403d46
inc edx
add ecx, 4
cmp edx, ebx
jb 0x403d30
jmp 0x40426e
mov eax, dword [0x4ac9ac]
mov byte [eax + 0x390], 1
jmp 0x40426e
mov eax, dword [0x4ac9ac]
test byte [eax + 0x1a], 8
je 0x403da5
test dword [eax + 0x1b0], 0x4000
jne 0x403da5
mov dword [eax + 0x250], 0
mov eax, dword [0x4ac9ac]
mov dword [eax + 0x24c], 0
mov eax, dword [0x4ac9ac]
mov dword [eax + 0x248], 0
mov eax, dword [0x4ac9ac]
mov dword [eax + 0x244], 0
call fcn.00434c60
jmp 0x404264
cmp dword [0x4ac84c], 0
je case.0x403659.8741
call fcn.004026c0
call fcn.00405bd0
jmp case.0x403659.8741
mov ecx, dword [0x4ac9ac]
lea edx, [esp + 0xc]
push dword [ecx + 0x26c]
lea eax, [ecx + 0xcc]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.004243f0
mov esi, eax
mov eax, dword [0x4ac9ac]
add esp, 0xc
push dword [eax + 0xcc]
call fcn.0046eea7
add esp, 4
shr eax, 1
movzx ecx, ax
mov eax, dword [0x4ac9ac]
mov dword [eax + 0xc8], ecx
jmp 0x404266
push 4
lea eax, [esp + 0x54]
push eax
mov eax, dword [0x4ac9ac]
push dword [eax + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x4044ab
cmp dword [esp + 0x50], eax
je case.0x403659.8741
mov ecx, dword [0x4ac9ac]
mov dword [esp + 0x24], esi
movzx eax, word [ecx + 0x1a]
mov edx, eax
and eax, 0xffbf
mov word [ecx + 0x1a], ax
mov dword [esp + 0x48], edx
cmp dword [esp + 0x50], esi
jle 0x403fda
lea ebx, [ebx]
push 2
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x4ac9ac]
push dword [eax + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x403fda
push 0x218
call fcn.0046d074
mov edi, eax
add esp, 4
test edi, edi
je 0x403fd5
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 [0x4ac9ac]
cmp byte [ecx + 0x384], al
movzx eax, word [esp + 0x1c]
jne 0x403f20
push eax
lea eax, [esp + 0x7c]
push eax
push dword [ecx + 0x9c]
mov eax, dword [sym.imp.MMFS2.dll_Ordinal_425]
call eax
mov esi, eax
movzx eax, word [esp + 0x1c]
cmp eax, 0x105
jae 0x404572
push 0x104
push edi
push 0xffffffffffffffff
mov byte [esp + eax + 0x84], 0
lea eax, [esp + 0x84]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x403f3e
add eax, eax
push eax
mov eax, dword [sym.imp.MMFS2.dll_Ordinal_425]
push edi
push dword [ecx + 0x9c]
call eax
mov esi, eax
movzx eax, word [esp + 0x1c]
xor ecx, ecx
mov word [edi + eax*2], cx
push edi
push 0
call fcn.00424940
test esi, esi
jne 0x403fbb
mov eax, dword [0x4ac9ac]
push 4
push ebx
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov esi, eax
test esi, esi
jne 0x403fbb
mov eax, dword [0x4ac9ac]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_423]
mov dword [edi + 0x210], eax
mov ecx, dword [0x4ac9ac]
push edi
lea ecx, [ecx + 0x168]
call dword [sym.imp.MMFS2.dll_Ordinal_333]
push dword [ebx]
mov eax, dword [0x4ac9ac]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_431]
mov ebx, dword [esp + 0x24]
inc ebx
mov dword [esp + 0x24], ebx
cmp ebx, dword [esp + 0x50]
jge 0x403fda
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_425]
jmp 0x403e70
push ecx
mov ecx, edi
call fcn.00404620
mov eax, dword [0x4ac9ac]
mov ecx, dword [esp + 0x48]
mov word [eax + 0x1a], cx
jmp 0x404266
mov esi, 8
mov eax, dword [0x4ac9ac]
mov ecx, dword [esp + 0x48]
mov word [eax + 0x1a], cx
jmp 0x404266
mov eax, dword [0x4ac9ac]
push dword [eax + 0x9c]
call edi
mov dword [0x4ac854], eax
mov eax, dword [esp + 0x10]
mov dword [0x4ac850], eax
jmp case.0x403659.8741
mov ecx, dword [0x4ac9ac]
push 4
lea eax, [ecx + 0x398]
push eax
push dword [ecx + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x4044ab
mov ecx, dword [0x4ac9ac]
push 4
lea eax, [ecx + 0x39c]
push eax
push dword [ecx + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x4044ab
jmp case.0x403659.8741
mov eax, dword [0x4ac9ac]
push dword [eax + 0x9c]
call edi
mov ecx, dword [0x4ac9ac]
mov edx, dword [ecx + 0xc4]
mov ecx, dword [ecx + 0xd0]
mov dword [ecx + edx*4], eax
mov eax, dword [0x4ac9ac]
cmp dword [eax + 0xd4], 0
jne 0x40408e
cmp dword [esp + 0x38], 0
jne 0x40416c
xor eax, eax
mov word [esp + 0x3c], ax
xor edi, edi
push 8
lea eax, [esp + 0x40]
push eax
mov eax, dword [0x4ac9ac]
push dword [eax + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x40416c
cmp dword [esp + 0x40], eax
je 0x40415c
mov eax, dword [0x4ac9ac]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_423]
movzx ecx, word [esp + 0x3c]
mov ebx, eax
add ebx, dword [esp + 0x40]
sub ecx, 0x3334
je 0x4041f4
sub ecx, 2
je 0x40417c
dec ecx
jne 0x404139
cmp dword [esp + 0x38], ecx
jne 0x404139
mov ecx, dword [0x4ac9ac]
lea eax, [esp + 0x30]
push dword [ecx + 0x26c]
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.004243f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40416c
mov ecx, dword [esp + 0x30]
add ecx, 4
mov edx, ecx
call fcn.00405980
mov dword [esp + 0x38], 1
test edi, edi
je 0x404144
cmp dword [esp + 0x38], 0
jne 0x40416c
mov eax, dword [0x4ac9ac]
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 [esp + 0x3c], ax
jne 0x404097
mov eax, dword [0x4ac9ac]
inc dword [eax + 0xc4]
jmp 0x404266
mov ecx, dword [0x4ac9ac]
cmp dword [ecx + 0xd4], 0
je 0x4041ea
push dword [ecx + 0x26c]
lea eax, [esp + 0x48]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
lea edx, [esp + 0x48]
call fcn.004243f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40416c
mov edx, dword [esp + 0x44]
test edx, edx
je 0x4041ea
mov eax, dword [0x4ac9ac]
cmp byte [eax + 0x384], 0
jne 0x4041d7
lea ecx, [esp + 0x44]
call fcn.00403040
mov eax, dword [0x4ac9ac]
mov edx, dword [esp + 0x44]
mov ecx, dword [eax + 0xc4]
mov eax, dword [eax + 0xd4]
inc dword [esp + 0x34]
mov dword [eax + ecx*4], edx
mov edi, 1
jmp 0x40413d
mov ecx, dword [0x4ac9ac]
lea eax, [esp + 0x68]
push dword [ecx + 0x26c]
mov ecx, dword [ecx + 0x9c]
push 0
push 0x10
push eax
lea edx, [esp + 0x4c]
call fcn.00424280
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x40416c
test byte [esp + 0x74], 0x40
jne 0x404139
lea edi, [eax + 1]
jmp 0x40413d
cmp eax, 0x6669
jg case.0x403659.8741
cmp eax, 0x6666
jge 0x40425b
add eax, 0xffffaaab
cmp eax, 3
ja case.0x403659.8741
lea ecx, [esp + 0xc]
call fcn.00433b10
jmp 0x404264
lea ecx, [esp + 0xc]
call fcn.00433ad0
mov esi, eax
test esi, esi
jne 0x4044ab
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_425]
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_423]
push dword [esp + 0x64]
mov eax, dword [0x4ac9ac]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov eax, 0x7f7f
cmp word [esp + 0xc], ax
je 0x4042b9
mov eax, dword [0x4ac9ac]
jmp 0x4035f6
mov esi, 8
jmp 0x4044ab
mov esi, 0x13
jmp 0x4044ab
test esi, esi
jne 0x4044ab
cmp dword [esp + 0x34], esi
jne 0x4042ee
mov edi, dword [0x4ac9ac]
cmp dword [edi + 0xd4], esi
je 0x4042ee
mov eax, dword [edi + 0xd4]
test eax, eax
je 0x4042ee
push eax
call fcn.0046c747
add esp, 4
mov dword [edi + 0xd4], esi
mov eax, dword [0x4ac9ac]
mov ecx, dword [esp + 0x58]
mov dword [eax + 0x1e8], ecx
mov ecx, dword [0x4ac9ac]
mov ecx, dword [ecx + 0xc0]
call fcn.00450230
cmp dword [esp + 0x20], 0
jne 0x40436c
cmp dword [esp + 0x28], 0
jne 0x40436c
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40434e
mov esi, dword [0x4ac990]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
push dword [0x4acb14]
mov dword [0x4ac990], eax
call dword [sym.imp.MMFS2.dll_Ordinal_121]
test esi, esi
je 0x40434e
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
call fcn.00454340
mov esi, eax
test esi, esi
jne 0x4044ab
call fcn.004026f0
mov esi, eax
test esi, esi
jne 0x4044ab
mov ecx, dword [0x4ac9ac]
mov eax, dword [0x4ac97c]
mov dword [ecx + 0x1c4], eax
call fcn.00402850
test eax, eax
jne 0x40438e
or esi, 0xffffffff
jmp 0x4044ab
mov eax, dword [0x4ac9ac]
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 0x4043d3
cmp dword [esp + 0x34], 0
jne 0x4043d3
push 0
push 0x3f3
push eax
call edi
cmp eax, 0xffffffff
je 0x4043d3
mov eax, dword [0x4ac9ac]
push 0
push 0x3f3
push dword [eax + 0xb0]
call ebx
mov eax, dword [0x4ac9ac]
mov eax, dword [eax + 0xb0]
test eax, eax
je 0x40442b
push 0
push 0x401
push eax
call edi
cmp eax, 0xffffffff
je 0x40442b
mov ecx, dword [0x4ac9ac]
mov eax, 0x1000
test word [ecx + 0x14], ax
jne 0x40442b
push 0
push 0x401
push dword [ecx + 0xb0]
call ebx
mov eax, dword [0x4ac9ac]
push 1
push dword [eax + 0xb0]
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, eax
call fcn.004501e0
mov ebx, dword [esp + 0x20]
test ebx, ebx
jne 0x40445f
mov eax, dword [0x4ac9ac]
test byte [eax + 0x16], 8
je 0x40445f
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_31]
push ebx
push ebx
push ebx
push 4
push dword [0x4ac980]
call edi
or eax, 4
push eax
push 2
push dword [0x4ac980]
call edi
mov ecx, dword [0x4ac988]
test ebx, ebx
je 0x40446f
mov ecx, dword [ebx + 0x1d0]
cmp dword [esp + 0x28], 0
jne 0x40448a
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
call fcn.004416b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4044ab
test ebx, ebx
jne 0x4044ab
mov eax, dword [0x4ac9ac]
mov ecx, 0x800
test word [eax + 0x14], cx
je 0x4044ab
lea ecx, [ebx + 1]
call fcn.0044f890
call fcn.00402850
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4044bc
push eax
call fcn.0046c747
add esp, 4
test esi, esi
jne 0x40452d
mov ecx, dword [0x4ac9ac]
test ecx, ecx
je 0x4044f9
mov eax, dword [ecx + 0x1d0]
mov dword [0x4ac98c], eax
mov eax, dword [ecx + 0x1d4]
mov dword [0x4ac984], eax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.0046c6a6
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
mov dword [0x4ac98c], 0
mov dword [0x4ac984], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.0046c6a6
mov esp, ebp
pop ebp
ret
mov esi, 0x14
jmp 0x40452f
jle 0x404549
test byte [0x4acb2e], 1
je 0x404549
push ecx
mov ecx, dword [0x4ac988]
mov edx, esi
call fcn.004414d0
add esp, 4
mov ecx, dword [esp + 0x18]
call fcn.00404670
mov ecx, dword [esp + 0x60]
call fcn.00402940
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0046c6a6
mov esp, ebp
pop ebp
ret
call fcn.0046d1fe
nop
pushal
inc eax
add byte [esi + 0x37], ah
inc eax
add byte [ecx + 0x3b], bl
inc eax
add byte [eax - 0x63ffbfc5], ah
cmp al, 0x40
add byte [edi + 0x3d], dl
inc eax
add byte [edi - 0x34ffbfc3], ch
cmp eax, 0x3fec0040
inc eax
add cl, ch
aaa
inc eax
add byte [ebx - 0x12ffbfc7], al
cmp dword [eax], eax
sahf
cmp al, byte [eax]
loop 0x4045e8
inc eax
add byte [esp + edi + 0x3a380040], ch
inc eax
add byte [edi + 0x1b004042], ch
inc eax
add byte [eax + 0x3b], bh
inc eax
add byte [esi - 0x72ffbfc9], bl
aaa
inc eax
add byte [edi - 0xfffbfc4], bh
cmp eax, dword [eax]
int 0x3c
inc eax
add byte [ebx + edi + 0x373c0040], cl
inc eax
add byte [eax + eax*2], cl
inc eax
add byte [edx + 0x42], bh
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
add byte [ecx], al
sbb eax, dword [edx]
add eax, dword [eax + 453510918]
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