Function at 0x403070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x17c
mov eax, dword [0x4a2ff8]
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 + 0x2c], esi
mov dword [esp + 0x5c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
call fcn.00468684
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
jne 0x4030fd
call fcn.0046a611
push 1
push 0x3a8
call fcn.00468684
mov edi, eax
add esp, 8
mov dword [esp + 0x18], eax
test edi, edi
je 0x4042c1
mov ecx, edi
call fcn.00402990
mov ecx, edi
call fcn.00402900
mov ecx, dword [0x4a8b6c]
mov dword [esp + 0x60], eax
lea ecx, [ecx + 0x168]
call dword [sym.imp.MMFS2.dll_Ordinal_255]
mov eax, dword [0x4a8b6c]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0xfc], 0xffffffff
mov eax, dword [0x4a8b6c]
mov dword [eax + 0x100], 0xffffffff
mov eax, dword [0x4a8b6c]
mov dword [eax + 0x104], 0xffffffff
mov eax, dword [0x4a8b6c]
mov dword [eax + 0x108], 0xffffffff
xor eax, eax
mov dword [esp + 0x40], eax
mov eax, dword [0x4a8b6c]
mov dword [eax + 0x1f0], 0xffffffff
mov eax, dword [0x4a8b6c]
mov dword [eax + 0x1a8], esi
mov eax, dword [0x4a8b6c]
mov dword [eax + 0x380], 0
mov eax, dword [0x4a8b6c]
mov dword [eax + 0x398], 0
mov eax, dword [0x4a8b6c]
mov dword [eax + 0x39c], 3
test edx, edx
je 0x403250
mov eax, dword [0x4a8b6c]
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x1b0], ecx
mov ecx, dword [0x4a8b6c]
mov eax, dword [ecx + 0x1b0]
shr eax, 1
and eax, 1
mov dword [ecx + 0x244], eax
mov ecx, dword [0x4a8b6c]
mov eax, dword [ecx + 0x1b0]
shr eax, 2
and eax, 1
mov dword [ecx + 0x248], eax
mov ecx, dword [0x4a8b6c]
mov eax, dword [ecx + 0x1b0]
and eax, 1
mov dword [ecx + 0x24c], eax
mov ecx, dword [0x4a8b6c]
mov eax, dword [ecx + 0x1b0]
and eax, 1
mov dword [ecx + 0x250], eax
mov ecx, dword [0x4a8b6c]
mov eax, dword [ecx + 0x1b0]
shr eax, 0x13
and eax, 1
mov dword [ecx + 0x240], eax
test byte [0x4a8b54], 0x10
je 0x403250
test dword [edx + 0x10], 0x4100020
jne 0x403250
mov dword [edi + 0x394], 2
mov eax, dword [0x4a8b6c]
xor edi, edi
mov dword [eax + 0x9c], 0xffffffff
test ebx, ebx
jne 0x403281
mov ebx, dword [0x4a8b84]
mov edi, dword [0x4a73c0]
test ebx, ebx
je 0x4042af
test edi, edi
je 0x4042af
mov esi, dword [sym.imp.MMFS2.dll_Ordinal_1033]
push 0
push ebx
call esi
mov ecx, eax
mov eax, dword [0x4a8b6c]
mov dword [eax + 0x9c], ecx
cmp ecx, 0xffffffff
jne 0x4032a6
lea esi, [ecx + 5]
jmp 0x404295
test edi, edi
je 0x403346
cmp dword [esp + 0x24], 0
jne 0x403334
cmp dword [0x4a8a08], 0
jne 0x403334
push 2
push 0x16e260
call fcn.00468684
add esp, 8
mov dword [0x4a8a08], eax
push 0x104
push eax
push dword [0x4a8b38]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push dword [0x4a8a08]
call esi
mov esi, eax
mov dword [esp + 0x20], esi
cmp esi, 0xffffffff
je 0x403334
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 [0x4a8a08]
push esi
call eax
push dword [esp + 0x20]
mov esi, eax
call dword [sym.imp.MMFS2.dll_Ordinal_419]
test esi, esi
je 0x403334
cmp esi, 0x40000002
jne 0x404222
mov eax, dword [0x4a8b6c]
push edi
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov eax, dword [0x4a8b6c]
push 0x10
mov dword [eax + 0x84], ebx
mov eax, dword [0x4a8b6c]
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_425]
mov dword [eax + 0xa0], edi
mov eax, dword [0x4a8b6c]
mov dword [eax + 0x360], 0
mov eax, dword [0x4a8b6c]
push eax
push dword [eax + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x404293
mov eax, dword [0x4a8b6c]
mov ecx, dword [eax]
cmp ecx, 0x454d4150
jne 0x4033a3
mov byte [eax + 0x384], 0
jmp 0x4033b6
cmp ecx, 0x554d4150
jne 0x40428c
mov byte [eax + 0x384], 1
mov eax, dword [0x4a8b6c]
mov ecx, 0x302
cmp word [eax + 4], cx
je 0x4033d0
mov esi, 0x13
jmp 0x404295
cmp dword [esp + 0x24], 0
jne 0x4033e7
cmp dword [eax + 8], 3
je 0x4033e7
mov esi, 0x13
jmp 0x404295
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 0x404211
cmp dword [esp + 0x10], eax
je 0x40408f
mov eax, dword [0x4a8b6c]
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 0x404038
je 0x403e53
sub eax, 0x2223
cmp eax, 0x2a
ja case.0x403457.8741
movzx eax, byte [eax + 0x404350]
jmp dword [eax*4 + 0x4042e0]
mov ecx, dword [0x4a8b6c]
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.00423d90
mov ebx, dword [esp + 0x34]
mov ecx, dword [0x4a8b6c]
add esp, 0x10
mov esi, eax
test ebx, ebx
jne 0x4034ab
mov eax, 0x200
test word [ecx + 0x16], ax
je 0x4034ab
mov eax, 1
mov word [0x4a8cec], ax
lea edx, [ecx + 0xd0]
mov ecx, dword [ecx + 0x74]
shl ecx, 2
call fcn.0042c020
test eax, eax
je 0x4040a5
mov edi, dword [0x4a8b6c]
test byte [edi + 0x16], 4
jne 0x4034e7
mov ecx, dword [edi + 0x74]
lea edx, [edi + 0xd4]
shl ecx, 2
call fcn.0042c020
mov edi, dword [0x4a8b6c]
push 1
push pe_nt_image_headers32
call fcn.00468684
add esp, 8
mov dword [edi + 0x26c], eax
test ebx, ebx
jne 0x40351e
mov ecx, dword [0x4a8a00]
test ecx, ecx
je 0x40351e
mov eax, dword [0x4a8b6c]
mov edx, 0x800
test word [eax + 0x16], dx
jne 0x40351e
push 1
call ecx
mov ecx, dword [0x4a8b6c]
test byte [ecx + 0x14], 0x10
je 0x404066
mov byte [ecx + 0x390], 1
jmp 0x404066
mov ecx, dword [0x4a8b6c]
push 0
push 0
lea eax, [ecx + 0x380]
mov ecx, dword [ecx + 0x9c]
push 4
push eax
lea edx, [esp + 0x1c]
call fcn.00423d90
add esp, 0x10
jmp 0x404064
push 0
push ecx
mov ecx, dword [0x4a8b6c]
lea eax, [ecx + 0x80]
mov ecx, dword [ecx + 0x9c]
push eax
lea edx, [esp + 0x18]
call fcn.00423f00
add esp, 0xc
jmp 0x404064
push 0
push ecx
mov ecx, dword [0x4a8b6c]
lea eax, [ecx + 0x8c]
jmp 0x403573
mov ecx, dword [0x4a8b6c]
lea edx, [esp + 0xc]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x90]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00423f00
mov ecx, dword [0x4a8b6c]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
jne 0x404066
add ecx, 0x90
call fcn.00402e50
jmp 0x404066
push 0
push ecx
mov ecx, dword [0x4a8b6c]
lea edx, [esp + 0x14]
lea eax, [ecx + 0x88]
mov ecx, dword [ecx + 0x9c]
push eax
mov dword [esp + 0x60], 1
call fcn.00423f00
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 0x403729
push dword [eax + 0x88]
mov edx, edi
mov ecx, eax
mov byte [esp + 0x1b], 0
xor bh, bh
call fcn.00402f80
mov eax, dword [esp + 0x1c]
add esp, 4
push dword [eax + 0x80]
mov edx, edi
mov ecx, eax
call fcn.00402f80
mov eax, dword [esp + 0x1c]
add esp, 4
push dword [eax + 0x8c]
mov edx, edi
mov ecx, eax
call fcn.00402f80
add esp, 4
lea eax, [edi + 0x80]
push 0x80
push 0
push eax
call fcn.0046bd00
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403690
sub ecx, edx
mov bl, 0x63
lea eax, [ecx + 1]
mov ch, byte [esp + 0x17]
mov dh, bl
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], 0
cmp eax, 2
jl 0x403700
lea esi, [eax - 2]
shr esi, 1
inc esi
lea eax, [esi + esi]
mov dword [esp + 0x20], 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 0x4036c2
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x20], eax
jge 0x40371f
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 0x404066
cmp dword [eax + 0x80], 0
lea ecx, [eax + 0x80]
je 0x40374e
call fcn.00402e50
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x8c], 0
lea ecx, [eax + 0x8c]
je 0x403766
call fcn.00402e50
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x88], 0
lea ecx, [eax + 0x88]
je 0x404066
call fcn.00402e50
jmp 0x404066
cmp dword [esp + 0x54], 0
jne 0x4037a6
mov eax, dword [0x4a8b6c]
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 [0x4a8b6c]
lea edx, [ecx + 0x94]
mov ecx, dword [ecx + 0x9c]
push edx
lea edx, [esp + 0x18]
call fcn.00423f00
mov ecx, dword [0x4a8b6c]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
jne 0x404066
add ecx, 0x94
call fcn.00402e50
jmp 0x404066
mov ecx, dword [0x4a8b6c]
lea edx, [esp + 0xc]
push dword [ecx + 0x26c]
lea eax, [ecx + 0xa4]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00423f00
mov ecx, dword [0x4a8b6c]
add esp, 0xc
cmp byte [ecx + 0x384], 0
mov esi, eax
jne 0x404066
add ecx, 0xa4
call fcn.00402e50
jmp 0x404066
cmp dword [esp + 0x24], 0
je case.0x403457.8741
test dword [ebp + 0x10], 0x80000000
je case.0x403457.8741
push 0
push ecx
mov ecx, dword [0x4a8b6c]
lea edx, [esp + 0x14]
lea eax, [ecx + 0xa8]
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00423f00
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x404211
mov ecx, dword [0x4a8b6c]
mov ecx, dword [ecx + 0xa8]
call fcn.00402d80
mov ecx, dword [0x4a8b6c]
mov dword [ecx + 0xac], eax
jmp case.0x403457.8741
mov eax, dword [0x4a8b6c]
lea edx, [esp + 0xc]
mov dword [eax + 0x260], 0
mov ecx, dword [0x4a8b6c]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x260]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00423f00
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x404211
jmp case.0x403457.8741
mov eax, dword [0x4a8b6c]
lea edx, [esp + 0xc]
mov dword [eax + 0x274], 0
mov ecx, dword [0x4a8b6c]
push dword [ecx + 0x26c]
lea eax, [ecx + 0x274]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00423f00
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x404211
mov ecx, dword [0x4a8b6c]
cmp byte [ecx + 0x384], al
jne case.0x403457.8741
mov eax, dword [ecx + 0x274]
add ecx, 0x274
test eax, eax
je case.0x403457.8741
cmp dword [eax], esi
je case.0x403457.8741
call fcn.00402eb0
jmp case.0x403457.8741
cmp dword [esp + 0x24], 0
jne case.0x403457.8741
push 0
push ecx
mov ecx, dword [0x4a8b6c]
lea eax, [ecx + 0xc0]
jmp 0x403573
push 0
push ecx
mov ecx, dword [0x4a8b6c]
lea eax, [ecx + 0xbc]
jmp 0x403573
push 0
push ecx
mov ecx, dword [0x4a8b6c]
lea eax, [ecx + 0x37c]
jmp 0x403573
cmp dword [0x4a8cd0], 0
jne case.0x403457.8741
push 0
push ecx
mov ecx, dword [0x4a8b6c]
push 0x4a8cd0
mov ecx, dword [ecx + 0x9c]
lea edx, [esp + 0x18]
call fcn.00423f00
mov esi, eax
mov eax, dword [0x4a8b6c]
add esp, 0xc
cmp byte [eax + 0x384], 0
jne 0x404066
mov ecx, 0x4a8cd0
call fcn.00402e50
jmp 0x404066
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
je case.0x403457.8741
mov eax, dword [0x4a8b6c]
push dword [eax + 0x9c]
call edi
mov ecx, dword [0x4a8b6c]
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 + 0x50]
push 4
push eax
lea edx, [esp + 0x1c]
call fcn.00423d90
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x404211
push dword [esp + 0x2c]
mov eax, dword [0x4a8b6c]
xor byte [esp + 0x4c], 0xd
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
push ecx
mov ecx, dword [0x4a8b6c]
mov edx, edi
mov ecx, dword [ecx + 0x9c]
call fcn.004241a0
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_423]
add esp, 4
cmp eax, dword [esp + 0x48]
je case.0x403457.8741
mov dword [esp + 0x28], 1
jmp case.0x403457.8741
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00422820
jmp 0x404064
mov edx, 1
lea ecx, [esp + 0xc]
call fcn.00422820
jmp 0x404064
lea ecx, [esp + 0xc]
call fcn.00431810
jmp 0x404064
mov eax, dword [0x4a8b6c]
push 0
mov dword [eax + 0x388], 0
push ecx
mov ecx, dword [0x4a8b6c]
lea edx, [esp + 0x14]
lea eax, [ecx + 0x388]
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00423f00
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x404211
mov eax, dword [0x4a8b6c]
mov edi, dword [eax + 0x388]
test edi, edi
je 0x404074
mov ebx, dword [edi]
xor edx, edx
test ebx, ebx
je 0x40406e
lea ecx, [edi + 4]
lea ebx, [ebx]
mov eax, dword [ecx]
test byte [edi + eax + 0xc], 0xf
jne 0x403b46
inc edx
add ecx, 4
cmp edx, ebx
jb 0x403b30
jmp 0x40406e
mov eax, dword [0x4a8b6c]
mov byte [eax + 0x390], 1
jmp 0x40406e
mov eax, dword [0x4a8b6c]
test byte [eax + 0x1a], 8
je 0x403ba5
test dword [eax + 0x1b0], 0x4000
jne 0x403ba5
mov dword [eax + 0x250], 0
mov eax, dword [0x4a8b6c]
mov dword [eax + 0x24c], 0
mov eax, dword [0x4a8b6c]
mov dword [eax + 0x248], 0
mov eax, dword [0x4a8b6c]
mov dword [eax + 0x244], 0
call fcn.00434280
jmp 0x404064
cmp dword [0x4a8a0c], 0
je case.0x403457.8741
call fcn.00402640
call fcn.00405970
jmp case.0x403457.8741
mov ecx, dword [0x4a8b6c]
lea edx, [esp + 0xc]
push dword [ecx + 0x26c]
lea eax, [ecx + 0xcc]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00423f00
mov esi, eax
mov eax, dword [0x4a8b6c]
add esp, 0xc
push dword [eax + 0xcc]
call fcn.0046a627
add esp, 4
shr eax, 1
movzx ecx, ax
mov eax, dword [0x4a8b6c]
mov dword [eax + 0xc8], ecx
jmp 0x404066
push 4
lea eax, [esp + 0x50]
push eax
mov eax, dword [0x4a8b6c]
push dword [eax + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x404211
cmp dword [esp + 0x4c], eax
je case.0x403457.8741
mov ecx, dword [0x4a8b6c]
mov dword [esp + 0x20], esi
movzx eax, word [ecx + 0x1a]
mov edx, eax
and eax, 0xffbf
mov word [ecx + 0x1a], ax
mov dword [esp + 0x44], edx
cmp dword [esp + 0x4c], esi
jle 0x403dda
lea ebx, [ebx]
push 2
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x4a8b6c]
push dword [eax + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x403dda
push 0x218
call fcn.004687f4
mov edi, eax
add esp, 4
test edi, edi
je 0x403dd5
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 [0x4a8b6c]
cmp byte [ecx + 0x384], al
movzx eax, word [esp + 0x1c]
jne 0x403d20
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 0x4042d8
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 0x403d3e
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.00424450
test esi, esi
jne 0x403dbb
mov eax, dword [0x4a8b6c]
push 4
push ebx
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov esi, eax
test esi, esi
jne 0x403dbb
mov eax, dword [0x4a8b6c]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_423]
mov dword [edi + 0x210], eax
mov ecx, dword [0x4a8b6c]
push edi
lea ecx, [ecx + 0x168]
call dword [sym.imp.MMFS2.dll_Ordinal_333]
push dword [ebx]
mov eax, dword [0x4a8b6c]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_431]
mov ebx, dword [esp + 0x20]
inc ebx
mov dword [esp + 0x20], ebx
cmp ebx, dword [esp + 0x4c]
jge 0x403dda
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_425]
jmp 0x403c70
push ecx
mov ecx, edi
call fcn.00404380
mov eax, dword [0x4a8b6c]
mov ecx, dword [esp + 0x44]
mov word [eax + 0x1a], cx
jmp 0x404066
mov esi, 8
mov eax, dword [0x4a8b6c]
mov ecx, dword [esp + 0x44]
mov word [eax + 0x1a], cx
jmp 0x404066
mov eax, dword [0x4a8b6c]
push dword [eax + 0x9c]
call edi
mov dword [0x4a8a14], eax
mov eax, dword [esp + 0x10]
mov dword [0x4a8a10], eax
jmp case.0x403457.8741
mov ecx, dword [0x4a8b6c]
push 4
lea eax, [ecx + 0x398]
push eax
push dword [ecx + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x404211
mov ecx, dword [0x4a8b6c]
push 4
lea eax, [ecx + 0x39c]
push eax
push dword [ecx + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x404211
jmp case.0x403457.8741
mov eax, dword [0x4a8b6c]
push dword [eax + 0x9c]
call edi
mov ecx, dword [0x4a8b6c]
mov edx, dword [ecx + 0xc4]
mov ecx, dword [ecx + 0xd0]
mov dword [ecx + edx*4], eax
mov eax, dword [0x4a8b6c]
cmp dword [eax + 0xd4], 0
jne 0x403e8e
cmp dword [esp + 0x30], 0
jne 0x403f6c
xor eax, eax
mov word [esp + 0x38], ax
xor edi, edi
push 8
lea eax, [esp + 0x3c]
push eax
mov eax, dword [0x4a8b6c]
push dword [eax + 0x9c]
call ebx
mov esi, eax
test esi, esi
jne 0x403f6c
cmp dword [esp + 0x3c], eax
je 0x403f5c
mov eax, dword [0x4a8b6c]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_423]
movzx ecx, word [esp + 0x38]
mov ebx, eax
add ebx, dword [esp + 0x3c]
sub ecx, 0x3334
je 0x403ff4
sub ecx, 2
je 0x403f7c
dec ecx
jne 0x403f39
cmp dword [esp + 0x30], ecx
jne 0x403f39
mov ecx, dword [0x4a8b6c]
lea eax, [esp + 0x34]
push dword [ecx + 0x26c]
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
call fcn.00423f00
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x403f6c
mov ecx, dword [esp + 0x34]
add ecx, 4
mov edx, ecx
call fcn.00405720
mov dword [esp + 0x30], 1
test edi, edi
je 0x403f44
cmp dword [esp + 0x30], 0
jne 0x403f6c
mov eax, dword [0x4a8b6c]
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 + 0x38], ax
jne 0x403e97
mov eax, dword [0x4a8b6c]
inc dword [eax + 0xc4]
jmp 0x404066
mov ecx, dword [0x4a8b6c]
cmp dword [ecx + 0xd4], 0
je 0x403fea
push dword [ecx + 0x26c]
lea eax, [esp + 0x54]
push ecx
mov ecx, dword [ecx + 0x9c]
push eax
lea edx, [esp + 0x44]
call fcn.00423f00
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x403f6c
mov edx, dword [esp + 0x50]
test edx, edx
je 0x403fea
mov eax, dword [0x4a8b6c]
cmp byte [eax + 0x384], 0
jne 0x403fd7
lea ecx, [esp + 0x50]
call fcn.00402e50
mov eax, dword [0x4a8b6c]
mov edx, dword [esp + 0x50]
mov ecx, dword [eax + 0xc4]
mov eax, dword [eax + 0xd4]
inc dword [esp + 0x40]
mov dword [eax + ecx*4], edx
mov edi, 1
jmp 0x403f3d
mov ecx, dword [0x4a8b6c]
lea eax, [esp + 0x68]
push dword [ecx + 0x26c]
mov ecx, dword [ecx + 0x9c]
push 0
push 0x10
push eax
lea edx, [esp + 0x48]
call fcn.00423d90
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x403f6c
test byte [esp + 0x74], 0x40
jne 0x403f39
lea edi, [eax + 1]
jmp 0x403f3d
cmp eax, 0x6669
jg case.0x403457.8741
cmp eax, 0x6666
jge 0x40405b
add eax, 0xffffaaab
cmp eax, 3
ja case.0x403457.8741
lea ecx, [esp + 0xc]
call fcn.00433130
jmp 0x404064
lea ecx, [esp + 0xc]
call fcn.004330f0
mov esi, eax
test esi, esi
jne 0x404211
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 [0x4a8b6c]
push dword [eax + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov eax, 0x7f7f
cmp word [esp + 0xc], ax
je 0x4040b9
mov eax, dword [0x4a8b6c]
jmp 0x4033f4
mov esi, 8
jmp 0x404211
mov esi, 0x13
jmp 0x404211
test esi, esi
jne 0x404211
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x4040f0
mov edi, dword [0x4a8b6c]
cmp dword [edi + 0xd4], eax
je 0x4040f0
mov eax, dword [edi + 0xd4]
test eax, eax
je 0x4040f0
push eax
call fcn.00467ec7
add esp, 4
mov dword [edi + 0xd4], esi
mov eax, dword [0x4a8b6c]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x58]
mov dword [eax + 0x1e8], ecx
test ebx, ebx
jne 0x40417e
cmp dword [esp + 0x28], ebx
jne 0x40417e
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40413f
mov esi, dword [0x4a8b50]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
push dword [0x4a8cd4]
mov dword [0x4a8b50], eax
call dword [sym.imp.MMFS2.dll_Ordinal_121]
test esi, esi
je 0x40413f
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [0x4a8b48]
push dword [0x4a8cd4]
call dword [sym.imp.MMFS2.dll_Ordinal_1079]
mov dword [0x4a8b40], eax
cmp eax, 0x20
ja 0x40416f
mov dword [0x4a8b40], 0
mov esi, 2
jmp 0x404211
call fcn.00402670
mov esi, eax
test esi, esi
jne 0x404211
mov ecx, dword [0x4a8b6c]
mov eax, dword [0x4a8b3c]
mov dword [ecx + 0x1c4], eax
call fcn.00402810
test eax, eax
jne 0x40419d
or esi, 0xffffffff
jmp 0x404211
test ebx, ebx
jne 0x4041cd
mov eax, dword [0x4a8b6c]
test byte [eax + 0x16], 8
je 0x4041cd
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_31]
push ebx
push ebx
push ebx
push 4
push dword [0x4a8b40]
call edi
or eax, 4
push eax
push 2
push dword [0x4a8b40]
call edi
mov ecx, dword [0x4a8b48]
test ebx, ebx
je 0x4041dd
mov ecx, dword [ebx + 0x1d0]
cmp dword [esp + 0x28], 0
jne 0x4041f8
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00440230
mov esi, eax
add esp, 4
test esi, esi
jne 0x404211
test ebx, ebx
jne 0x404211
mov eax, dword [0x4a8b6c]
mov ecx, 0x800
test word [eax + 0x14], cx
je 0x404211
call fcn.00402810
mov eax, dword [esp + 0x34]
test eax, eax
je 0x404222
push eax
call fcn.00467ec7
add esp, 4
test esi, esi
jne 0x404293
mov ecx, dword [0x4a8b6c]
test ecx, ecx
je 0x40425f
mov eax, dword [ecx + 0x1d0]
mov dword [0x4a8b4c], eax
mov eax, dword [ecx + 0x1d4]
mov dword [0x4a8b44], eax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.00467e26
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
mov dword [0x4a8b4c], 0
mov dword [0x4a8b44], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.00467e26
mov esp, ebp
pop ebp
ret
mov esi, 0x14
jmp 0x404295
jle 0x4042af
test byte [0x4a8cee], 1
je 0x4042af
push ecx
mov ecx, dword [0x4a8b48]
mov edx, esi
call fcn.0043ffc0
add esp, 4
mov ecx, dword [esp + 0x18]
call fcn.004043d0
mov ecx, dword [esp + 0x60]
call fcn.00402900
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00467e26
mov esp, ebp
pop ebp
ret
call fcn.0046897e
lea ecx, [ecx]
pop esi
xor al, 64
add byte [ebp + esi + 0x40], ah
add byte [ecx + 0x39], bl
inc eax
add byte [eax - 0x63ffbfc7], ah
cmp al, byte [eax]
push edi
cmp eax, dword [eax]
scasd eax, dword es:[edi]
cmp eax, dword [eax]
retf