Function at 0x4032e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x17c
mov eax, dword [0x4a7ff8]
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.0046d1e4
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
jne 0x40336d
call fcn.0046f171
push 1
push 0x3a8
call fcn.0046d1e4
mov edi, eax
add esp, 8
mov dword [esp + 0x18], eax
test edi, edi
je 0x4045cb
mov ecx, edi
call fcn.00402a40
mov ecx, edi
call fcn.004029b0
mov ecx, dword [0x4ad9ac]
mov dword [esp + 0x60], eax
lea ecx, [ecx + 0x168]
call dword [sym.imp.MMFS2.dll_Ordinal_255]
mov eax, dword [0x4ad9ac]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0xfc], 0xffffffff
mov eax, dword [0x4ad9ac]
mov dword [esp + 0x34], 0
mov dword [eax + 0x100], 0xffffffff
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x104], 0xffffffff
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x108], 0xffffffff
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x1f0], 0xffffffff
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x1a8], esi
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x380], 0
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x398], 0
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x39c], 3
test edx, edx
je 0x4034c2
mov eax, dword [0x4ad9ac]
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x1b0], ecx
mov ecx, dword [0x4ad9ac]
mov eax, dword [ecx + 0x1b0]
shr eax, 1
and eax, 1
mov dword [ecx + 0x244], eax
mov ecx, dword [0x4ad9ac]
mov eax, dword [ecx + 0x1b0]
shr eax, 2
and eax, 1
mov dword [ecx + 0x248], eax
mov ecx, dword [0x4ad9ac]
mov eax, dword [ecx + 0x1b0]
and eax, 1
mov dword [ecx + 0x24c], eax
mov ecx, dword [0x4ad9ac]
mov eax, dword [ecx + 0x1b0]
and eax, 1
mov dword [ecx + 0x250], eax
mov ecx, dword [0x4ad9ac]
mov eax, dword [ecx + 0x1b0]
shr eax, 0x13
and eax, 1
mov dword [ecx + 0x240], eax
test byte [0x4ad994], 0x10
je 0x4034c2
test dword [edx + 0x10], 0x4100020
jne 0x4034c2
mov dword [edi + 0x394], 2
mov eax, dword [0x4ad9ac]
xor edi, edi
mov dword [eax + 0x9c], 0xffffffff
test ebx, ebx
jne 0x4034f3
mov ebx, dword [0x4ad9c4]
mov edi, dword [0x4ac1b0]
test ebx, ebx
je 0x4045b9
test edi, edi
je 0x4045b9
mov esi, dword [sym.imp.MMFS2.dll_Ordinal_1033]
push 0
push ebx
call esi
mov ecx, eax
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x9c], ecx
cmp ecx, 0xffffffff
jne 0x403518
lea esi, [ecx + 5]
jmp 0x40459f
test edi, edi
je 0x4035b8
cmp dword [esp + 0x20], 0
jne 0x4035a6
cmp dword [0x4ad848], 0
jne 0x4035a6
push 2
push 0x16e260
call fcn.0046d1e4
add esp, 8
mov dword [0x4ad848], eax
push 0x104
push eax
push dword [0x4ad978]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push dword [0x4ad848]
call esi
mov esi, eax
mov dword [esp + 0x24], esi
cmp esi, 0xffffffff
je 0x4035a6
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 [0x4ad848]
push esi
call eax
push dword [esp + 0x24]
mov esi, eax
call dword [sym.imp.MMFS2.dll_Ordinal_419]
test esi, esi
je 0x4035a6
cmp esi, 0x40000002
jne 0x40452c
mov eax, dword [0x4ad9ac]
push edi
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov eax, dword [0x4ad9ac]
push 0x10
mov dword [eax + 0x84], ebx
mov eax, dword [0x4ad9ac]
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_425]
mov dword [eax + 0xa0], edi
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x360], 0
mov eax, dword [0x4ad9ac]
push eax
push dword [eax + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x40459d
mov eax, dword [0x4ad9ac]
mov ecx, dword [eax]
cmp ecx, 0x454d4150
jne 0x403615
mov byte [eax + 0x384], 0
jmp 0x403628
cmp ecx, 0x554d4150
jne 0x404596
mov byte [eax + 0x384], 1
mov eax, dword [0x4ad9ac]
mov ecx, 0x302
cmp word [eax + 4], cx
je 0x403642
mov esi, 0x13
jmp 0x40459f
cmp dword [esp + 0x20], 0
jne 0x403659
cmp dword [eax + 8], 2
je 0x403659
mov esi, 0x13
jmp 0x40459f
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 0x40451b
cmp dword [esp + 0x10], eax
je 0x4042ff
mov eax, dword [0x4ad9ac]
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 0x4042a8
je 0x4040c3
sub eax, 0x2223
cmp eax, 0x2a
ja case.0x4036c9.8741
movzx eax, byte [eax + 0x404658]
jmp dword [eax*4 + 0x4045e8]
mov ecx, dword [0x4ad9ac]
push 0
lea eax, [ecx + 0x360]
push eax
lea eax, [ecx + 0x10]
mov ecx, dword [ecx + 0x9c]
push 0x70
push eax
lea edx, [esp + 0x1c]
call fcn.00424310
mov ebx, dword [esp + 0x30]
mov ecx, dword [0x4ad9ac]
add esp, 0x10
mov esi, eax
test ebx, ebx
jne 0x40371d
mov eax, 0x200
test word [ecx + 0x16], ax
je 0x40371d
mov eax, 1
mov word [0x4adb2c], ax
lea edx, [ecx + 0xd0]
mov ecx, dword [ecx + 0x74]
shl ecx, 2
call fcn.0042ca80
test eax, eax
je 0x404315
mov edi, dword [0x4ad9ac]
test byte [edi + 0x16], 4
jne 0x403759
mov ecx, dword [edi + 0x74]
lea edx, [edi + 0xd4]
shl ecx, 2
call fcn.0042ca80
mov edi, dword [0x4ad9ac]
push 1
push 0x100
call fcn.0046d1e4
add esp, 8
mov dword [edi + 0x26c], eax
test ebx, ebx
jne 0x403790
mov ecx, dword [0x4ad840]
test ecx, ecx
je 0x403790
mov eax, dword [0x4ad9ac]
mov edx, 0x800
test word [eax + 0x16], dx
jne 0x403790
push 1
call ecx
mov ecx, dword [0x4ad9ac]
test byte [ecx + 0x14], 0x10
je 0x4042d6
mov byte [ecx + 0x390], 1
jmp 0x4042d6
mov ecx, dword [0x4ad9ac]
push 0
push 0
lea eax, [ecx + 0x380]
mov ecx, dword [ecx + 0x9c]
push 4
push eax
lea edx, [esp + 0x1c]
call fcn.00424310
add esp, 0x10
jmp 0x4042d4
push 0
push ecx
mov ecx, dword [0x4ad9ac]
lea eax, [ecx + 0x80]
mov ecx, dword [ecx + 0x9c]
push eax
lea edx, [esp + 0x18]
call fcn.00424480
add esp, 0xc
jmp 0x4042d4
push 0
push ecx
mov ecx, dword [0x4ad9ac]
lea eax, [ecx + 0x8c]
jmp 0x4037e5
mov ecx, dword [0x4ad9ac]
lea edx, [esp + 0xc]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x90]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424480
mov ecx, dword [0x4ad9ac]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
jne 0x4042d6
add ecx, 0x90
call fcn.004030b0
jmp 0x4042d6
push 0
push ecx
mov ecx, dword [0x4ad9ac]
lea edx, [esp + 0x14]
lea eax, [ecx + 0x88]
mov ecx, dword [ecx + 0x9c]
push eax
mov dword [esp + 0x60], 1
call fcn.00424480
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 0x403999
push dword [eax + 0x88]
mov edx, edi
mov ecx, eax
mov byte [esp + 0x1b], 0
xor bh, bh
call fcn.004031e0
mov eax, dword [esp + 0x1c]
add esp, 4
push dword [eax + 0x80]
mov edx, edi
mov ecx, eax
call fcn.004031e0
mov eax, dword [esp + 0x1c]
add esp, 4
push dword [eax + 0x8c]
mov edx, edi
mov ecx, eax
call fcn.004031e0
add esp, 4
lea eax, [edi + 0x80]
push 0x80
push 0
push eax
call fcn.00470860
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
jmp 0x403900
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403900
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 0x403970
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 0x403932
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x24], eax
jge 0x40398f
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 0x4042d6
cmp dword [eax + 0x80], 0
lea ecx, [eax + 0x80]
je 0x4039be
call fcn.004030b0
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x8c], 0
lea ecx, [eax + 0x8c]
je 0x4039d6
call fcn.004030b0
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x88], 0
lea ecx, [eax + 0x88]
je 0x4042d6
call fcn.004030b0
jmp 0x4042d6
cmp dword [esp + 0x54], 0
jne 0x403a16
mov eax, dword [0x4ad9ac]
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 [0x4ad9ac]
lea edx, [ecx + 0x94]
mov ecx, dword [ecx + 0x9c]
push edx
lea edx, [esp + 0x18]
call fcn.00424480
mov ecx, dword [0x4ad9ac]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
jne 0x4042d6
add ecx, 0x94
call fcn.004030b0
jmp 0x4042d6
mov ecx, dword [0x4ad9ac]
lea edx, [esp + 0xc]
push dword [ecx + 0x26c]
lea eax, [ecx + 0xa4]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424480
mov ecx, dword [0x4ad9ac]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
jne 0x4042d6
add ecx, 0xa4
call fcn.004030b0
jmp 0x4042d6
cmp dword [esp + 0x20], 0
je case.0x4036c9.8741
test dword [ebp + 0x10], 0x80000000
je case.0x4036c9.8741
push 0
push ecx
mov ecx, dword [0x4ad9ac]
lea edx, [esp + 0x14]
lea eax, [ecx + 0xa8]
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424480
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40451b
mov ecx, dword [0x4ad9ac]
mov ecx, dword [ecx + 0xa8]
call fcn.00402fe0
mov ecx, dword [0x4ad9ac]
mov dword [ecx + 0xac], eax
jmp case.0x4036c9.8741
mov eax, dword [0x4ad9ac]
lea edx, [esp + 0xc]
mov dword [eax + 0x260], 0
mov ecx, dword [0x4ad9ac]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x260]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424480
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40451b
jmp case.0x4036c9.8741
mov eax, dword [0x4ad9ac]
lea edx, [esp + 0xc]
mov dword [eax + 0x274], 0
mov ecx, dword [0x4ad9ac]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x274]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424480
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40451b
mov ecx, dword [0x4ad9ac]
cmp byte [ecx + 0x384], al
jne case.0x4036c9.8741
mov eax, dword [ecx + 0x274]
add ecx, 0x274
test eax, eax
je case.0x4036c9.8741
cmp dword [eax], esi
je case.0x4036c9.8741
call fcn.00403110
jmp case.0x4036c9.8741
cmp dword [esp + 0x20], 0
jne case.0x4036c9.8741
push 0
push ecx
mov ecx, dword [0x4ad9ac]
lea eax, [ecx + 0xc0]
jmp 0x4037e5
push 0
push ecx
mov ecx, dword [0x4ad9ac]
lea eax, [ecx + 0xbc]
jmp 0x4037e5
push 0
push ecx
mov ecx, dword [0x4ad9ac]
lea eax, [ecx + 0x37c]
jmp 0x4037e5
cmp dword [0x4adb10], 0
jne case.0x4036c9.8741
push 0
push ecx
mov ecx, dword [0x4ad9ac]
push 0x4adb10
mov ecx, dword [ecx + 0x9c]
lea edx, [esp + 0x18]
call fcn.00424480
mov esi, eax
mov eax, dword [0x4ad9ac]
add esp, 0xc
cmp byte [eax + 0x384], 0
jne 0x4042d6
mov ecx, 0x4adb10
call fcn.004030b0
jmp 0x4042d6
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
je case.0x4036c9.8741
mov eax, dword [0x4ad9ac]
push dword [eax + 0x9c]
call edi
mov ecx, dword [0x4ad9ac]
mov edi, eax
push dword [ecx + 0x26c]
mov ecx, dword [ecx + 0x9c]
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.00424310
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x40451b
push dword [esp + 0x2c]
mov eax, dword [0x4ad9ac]
xor byte [esp + 0x50], 0xd
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
push ecx
mov ecx, dword [0x4ad9ac]
mov edx, edi
mov ecx, dword [ecx + 0x9c]
call fcn.00424720
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_423]
add esp, 4
cmp eax, dword [esp + 0x4c]
je case.0x4036c9.8741
mov dword [esp + 0x28], 1
jmp case.0x4036c9.8741
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00422da0
jmp 0x4042d4
mov edx, 1
lea ecx, [esp + 0xc]
call fcn.00422da0
jmp 0x4042d4
lea ecx, [esp + 0xc]
call fcn.00432270
jmp 0x4042d4
mov eax, dword [0x4ad9ac]
push 0
mov dword [eax + 0x388], 0
push ecx
mov ecx, dword [0x4ad9ac]
lea edx, [esp + 0x14]
lea eax, [ecx + 0x388]
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424480
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40451b
mov eax, dword [0x4ad9ac]
mov edi, dword [eax + 0x388]
test edi, edi
je 0x4042e4
mov ebx, dword [edi]
xor edx, edx
test ebx, ebx
je 0x4042de
lea ecx, [edi + 4]
lea ebx, [ebx]
mov eax, dword [ecx]
test byte [eax + edi + 0xc], 0xf
jne 0x403db6
inc edx
add ecx, 4
cmp edx, ebx
jb 0x403da0
jmp 0x4042de
mov eax, dword [0x4ad9ac]
mov byte [eax + 0x390], 1
jmp 0x4042de
mov eax, dword [0x4ad9ac]
test byte [eax + 0x1a], 8
je 0x403e15
test dword [eax + 0x1b0], 0x4000
jne 0x403e15
mov dword [eax + 0x250], 0
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x24c], 0
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x248], 0
mov eax, dword [0x4ad9ac]
mov dword [eax + 0x244], 0
call fcn.00434cf0
jmp 0x4042d4
cmp dword [0x4ad84c], 0
je case.0x4036c9.8741
call fcn.00402730
call fcn.00405c40
jmp case.0x4036c9.8741
mov ecx, dword [0x4ad9ac]
lea edx, [esp + 0xc]
push dword [ecx + 0x26c]
lea eax, [ecx + 0xcc]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424480
mov esi, eax
mov eax, dword [0x4ad9ac]
add esp, 0xc
push dword [eax + 0xcc]
call fcn.0046f187
add esp, 4
shr eax, 1
movzx ecx, ax
mov eax, dword [0x4ad9ac]
mov dword [eax + 0xc8], ecx
jmp 0x4042d6
push 4
lea eax, [esp + 0x54]
push eax
mov eax, dword [0x4ad9ac]
push dword [eax + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x40451b
cmp dword [esp + 0x50], eax
je case.0x4036c9.8741
mov ecx, dword [0x4ad9ac]
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 0x40404a
lea ebx, [ebx]
push 2
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x4ad9ac]
push dword [eax + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x40404a
push 0x218
call fcn.0046d354
mov edi, eax
add esp, 4
test edi, edi
je 0x404045
xor eax, eax
lea ebx, [edi + 0x20c]
mov word [edi], ax
mov dword [edi + 0x208], eax
mov dword [edi + 0x210], eax
mov dword [ebx], eax
mov dword [edi + 0x214], eax
mov ecx, dword [0x4ad9ac]
cmp byte [ecx + 0x384], al
movzx eax, word [esp + 0x1c]
jne 0x403f90
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 0x4045e2
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 0x403fae
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.004249d0
test esi, esi
jne 0x40402b
mov eax, dword [0x4ad9ac]
push 4
push ebx
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov esi, eax
test esi, esi
jne 0x40402b
mov eax, dword [0x4ad9ac]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_423]
mov dword [edi + 0x210], eax
mov ecx, dword [0x4ad9ac]
push edi
lea ecx, [ecx + 0x168]
call dword [sym.imp.MMFS2.dll_Ordinal_333]
push dword [ebx]
mov eax, dword [0x4ad9ac]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_431]
mov ebx, dword [esp + 0x24]
inc ebx
mov dword [esp + 0x24], ebx
cmp ebx, dword [esp + 0x50]
jge 0x40404a
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_425]
jmp 0x403ee0
push ecx
mov ecx, edi
call fcn.00404690
mov eax, dword [0x4ad9ac]
mov ecx, dword [esp + 0x48]
mov word [eax + 0x1a], cx
jmp 0x4042d6
mov esi, 8
mov eax, dword [0x4ad9ac]
mov ecx, dword [esp + 0x48]
mov word [eax + 0x1a], cx
jmp 0x4042d6
mov eax, dword [0x4ad9ac]
push dword [eax + 0x9c]
call edi
mov dword [0x4ad854], eax
mov eax, dword [esp + 0x10]
mov dword [0x4ad850], eax
jmp case.0x4036c9.8741
mov ecx, dword [0x4ad9ac]
push 4
lea eax, [ecx + 0x398]
push eax
push dword [ecx + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x40451b
mov ecx, dword [0x4ad9ac]
push 4
lea eax, [ecx + 0x39c]
push eax
push dword [ecx + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x40451b
jmp case.0x4036c9.8741
mov eax, dword [0x4ad9ac]
push dword [eax + 0x9c]
call edi
mov ecx, dword [0x4ad9ac]
mov edx, dword [ecx + 0xc4]
mov ecx, dword [ecx + 0xd0]
mov dword [ecx + edx*4], eax
mov eax, dword [0x4ad9ac]
cmp dword [eax + 0xd4], 0
jne 0x4040fe
cmp dword [esp + 0x38], 0
jne 0x4041dc
xor eax, eax
mov word [esp + 0x3c], ax
xor edi, edi
push 8
lea eax, [esp + 0x40]
push eax
mov eax, dword [0x4ad9ac]
push dword [eax + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x4041dc
cmp dword [esp + 0x40], eax
je 0x4041cc
mov eax, dword [0x4ad9ac]
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 0x404264
sub ecx, 2
je 0x4041ec
dec ecx
jne 0x4041a9
cmp dword [esp + 0x38], ecx
jne 0x4041a9
mov ecx, dword [0x4ad9ac]
lea eax, [esp + 0x30]
push dword [ecx + 0x26c]
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00424480
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4041dc
mov ecx, dword [esp + 0x30]
add ecx, 4
mov edx, ecx
call fcn.004059f0
mov dword [esp + 0x38], 1
test edi, edi
je 0x4041b4
cmp dword [esp + 0x38], 0
jne 0x4041dc
mov eax, dword [0x4ad9ac]
push ebx
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_425]
mov eax, 0x7f7f
cmp word [esp + 0x3c], ax
jne 0x404107
mov eax, dword [0x4ad9ac]
inc dword [eax + 0xc4]
jmp 0x4042d6
mov ecx, dword [0x4ad9ac]
cmp dword [ecx + 0xd4], 0
je 0x40425a
push dword [ecx + 0x26c]
lea eax, [esp + 0x48]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
lea edx, [esp + 0x48]
call fcn.00424480
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4041dc
mov edx, dword [esp + 0x44]
test edx, edx
je 0x40425a
mov eax, dword [0x4ad9ac]
cmp byte [eax + 0x384], 0
jne 0x404247
lea ecx, [esp + 0x44]
call fcn.004030b0
mov eax, dword [0x4ad9ac]
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 0x4041ad
mov ecx, dword [0x4ad9ac]
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.00424310
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4041dc
test byte [esp + 0x74], 0x40
jne 0x4041a9
lea edi, [eax + 1]
jmp 0x4041ad
cmp eax, 0x6669
jg case.0x4036c9.8741
cmp eax, 0x6666
jge 0x4042cb
add eax, 0xffffaaab
cmp eax, 3
ja case.0x4036c9.8741
lea ecx, [esp + 0xc]
call fcn.00433b90
jmp 0x4042d4
lea ecx, [esp + 0xc]
call fcn.00433b50
mov esi, eax
test esi, esi
jne 0x40451b
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 [0x4ad9ac]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov eax, 0x7f7f
cmp word [esp + 0xc], ax
je 0x404329
mov eax, dword [0x4ad9ac]
jmp 0x403666
mov esi, 8
jmp 0x40451b
mov esi, 0x13
jmp 0x40451b
test esi, esi
jne 0x40451b
cmp dword [esp + 0x34], esi
jne 0x40435e
mov edi, dword [0x4ad9ac]
cmp dword [edi + 0xd4], esi
je 0x40435e
mov eax, dword [edi + 0xd4]
test eax, eax
je 0x40435e
push eax
call fcn.0046ca27
add esp, 4
mov dword [edi + 0xd4], esi
mov eax, dword [0x4ad9ac]
mov ecx, dword [esp + 0x58]
mov dword [eax + 0x1e8], ecx
mov ecx, dword [0x4ad9ac]
mov ecx, dword [ecx + 0xc0]
call fcn.00450400
cmp dword [esp + 0x20], 0
jne 0x4043dc
cmp dword [esp + 0x28], 0
jne 0x4043dc
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4043be
mov esi, dword [0x4ad990]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
push dword [0x4adb14]
mov dword [0x4ad990], eax
call dword [sym.imp.MMFS2.dll_Ordinal_121]
test esi, esi
je 0x4043be
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
call fcn.00454640
mov esi, eax
test esi, esi
jne 0x40451b
call fcn.00402760
mov esi, eax
test esi, esi
jne 0x40451b
mov ecx, dword [0x4ad9ac]
mov eax, dword [0x4ad97c]
mov dword [ecx + 0x1c4], eax
call fcn.004028c0
test eax, eax
jne 0x4043fe
or esi, 0xffffffff
jmp 0x40451b
mov eax, dword [0x4ad9ac]
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 0x404443
cmp dword [esp + 0x34], 0
jne 0x404443
push 0
push 0x3f3
push eax
call edi
cmp eax, 0xffffffff
je 0x404443
mov eax, dword [0x4ad9ac]
push 0
push 0x3f3
push dword [eax + 0xb0]
call ebx
mov eax, dword [0x4ad9ac]
mov eax, dword [eax + 0xb0]
test eax, eax
je 0x40449b
push 0
push 0x401
push eax
call edi
cmp eax, 0xffffffff
je 0x40449b
mov ecx, dword [0x4ad9ac]
mov eax, 0x1000
test word [ecx + 0x14], ax
jne 0x40449b
push 0
push 0x401
push dword [ecx + 0xb0]
call ebx
mov eax, dword [0x4ad9ac]
push 1
push dword [eax + 0xb0]
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, eax
call fcn.004503b0
mov ebx, dword [esp + 0x20]
test ebx, ebx
jne 0x4044cf
mov eax, dword [0x4ad9ac]
test byte [eax + 0x16], 8
je 0x4044cf
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_31]
push ebx
push ebx
push ebx
push 4
push dword [0x4ad980]
call edi
or eax, 4
push eax
push 2
push dword [0x4ad980]
call edi
mov ecx, dword [0x4ad988]
test ebx, ebx
je 0x4044df
mov ecx, dword [ebx + 0x1d0]
cmp dword [esp + 0x28], 0
jne 0x4044fa
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00441830
mov esi, eax
add esp, 4
test esi, esi
jne 0x40451b
test ebx, ebx
jne 0x40451b
mov eax, dword [0x4ad9ac]
mov ecx, 0x800
test word [eax + 0x14], cx
je 0x40451b
lea ecx, [ebx + 1]
call fcn.0044fa90
call fcn.004028c0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40452c
push eax
call fcn.0046ca27
add esp, 4
test esi, esi
jne 0x40459d
mov ecx, dword [0x4ad9ac]
test ecx, ecx
je 0x404569
mov eax, dword [ecx + 0x1d0]
mov dword [0x4ad98c], eax
mov eax, dword [ecx + 0x1d4]
mov dword [0x4ad984], eax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.0046c986
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
mov dword [0x4ad98c], 0
mov dword [0x4ad984], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.0046c986
mov esp, ebp
pop ebp
ret
mov esi, 0x14
jmp 0x40459f
jle 0x4045b9
test byte [0x4adb2e], 1
je 0x4045b9
push ecx
mov ecx, dword [0x4ad988]
mov edx, esi
call fcn.00441650
add esp, 4
mov ecx, dword [esp + 0x18]
call fcn.004046e0
mov ecx, dword [esp + 0x60]
call fcn.004029b0
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0046c986
mov esp, ebp
pop ebp
ret
call fcn.0046d4de
nop
sal byte [esi], 1
inc eax
add dh, dl
aaa
inc eax
add cl, cl
cmp eax, dword [eax]
adc byte [eax + eax*2], bh
add byte [edi + 1036451904], cl
inc eax
add byte [edi], bl
inc eax
add byte [ebx], bh
inc eax
add byte [eax + eax*2 + 0x40], bl
add byte [ecx + 0x38], bl
inc eax
add bl, dh
cmp dword [eax], eax
pop ebp
cmp al, byte [eax]
push cs
cmp eax, dword [eax]
push edx
cmp eax, dword [eax]
sbb al, 0x3d
inc eax
add byte [eax + 0x1f00403a], ch
inc ebx
inc eax
add byte [ebx - 0x17ffbfc2], cl
cmp eax, dword [eax]
push cs
cmp byte [eax], al
std
aaa
inc eax
add byte [edi], ch
cmp eax, 0x3c600040
inc eax
add byte [0xfc00403d], bh
cmp eax, dword [eax]
lodsb al, byte [esi]
aaa
inc eax
add byte [eax + eax*2 + 0x40], bh
add dl, ch
inc edx
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