Function at 0x4019a0
Capabilities:
Authenticate hmac
Check os version
Encode data using xor
Get geographical location

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482460
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x328
mov eax, dword [0x49b014]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x298], edx
mov edi, ecx
mov dword [ebp - 0x2a8], ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x274], eax
xor al, al
push 1
push 0x470
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2bc], 0
mov byte [ebp - 0x291], 0
mov byte [ebp - 0x276], 0
mov byte [ebp - 0x275], 0
mov byte [ebp - 0x292], al
mov dword [ebp - 0x2c0], 0
call fcn.004646b4
mov esi, eax
add esp, 8
mov dword [ebp - 0x29c], esi
test esi, esi
je 0x403b4d
mov ecx, dword [0x49d5e8]
test ecx, ecx
jne 0x401a87
push 1
push 0x28
call fcn.004646b4
add esp, 8
mov dword [0x49d5f0], eax
test eax, eax
je 0x401acc
mov ecx, dword [0x49d5e8]
mov dword [0x49d5ec], 0xa
jmp 0x401ac3
mov eax, dword [0x49d5ec]
cmp ecx, eax
jl 0x401abe
lea eax, [eax*4 + 0x28]
push eax
push dword [0x49d5f0]
call fcn.004646bf
add esp, 8
test eax, eax
je 0x401acc
add dword [0x49d5ec], 0xa
mov ecx, dword [0x49d5e8]
mov dword [0x49d5f0], eax
jmp 0x401ac3
mov eax, dword [0x49d5f0]
mov dword [eax + ecx*4], esi
inc dword [0x49d5e8]
mov ecx, esi
call fcn.00401410
mov dword [ebp - 0x2e0], eax
lea eax, [esi + 0x168]
mov ecx, eax
mov dword [ebp - 0x2a4], eax
call dword [sym.imp.MMFS2.dll_Ordinal_255]
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp - 0x274]
mov dword [esi + 0xfc], 0xffffffff
mov dword [esi + 0x100], 0xffffffff
mov dword [esi + 0x104], 0xffffffff
mov dword [esi + 0x108], 0xffffffff
mov dword [ebp - 0x2c4], 0
mov dword [esi + 0x1f0], 0xffffffff
mov dword [esi + 0x1a8], eax
mov dword [esi + 0x3c0], 0
mov byte [esi + 0x3ec], 0
mov dword [esi + 0x3d8], 0
mov dword [esi + 0x3dc], 3
mov dword [esi + 0x3f4], 0x4095b0
test edx, edx
je 0x401bc8
mov ecx, dword [edx + 0x10]
mov eax, ecx
shr eax, 1
and eax, 1
mov dword [esi + 0x1b0], ecx
mov dword [esi + 0x244], eax
mov eax, ecx
shr eax, 2
and eax, 1
mov dword [esi + 0x248], eax
mov eax, ecx
shr ecx, 0x13
and eax, 1
and ecx, 1
mov dword [esi + 0x24c], eax
mov dword [esi + 0x250], eax
mov dword [esi + 0x240], ecx
test byte [0x49d5b4], 0x10
je 0x401bc8
test dword [edx + 0x10], 0x4100020
jne 0x401bc8
mov dword [esi + 0x3d4], 2
push 4
mov dword [esi + 0x424], 0
mov byte [esi + 0x428], 0
mov byte [esi + 0x45c], 0
mov dword [esi + 0x460], 0
call dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
mov dword [esi + 0x43c], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov dword [esi + 0x440], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x11
mov dword [esi + 0x444], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0xe
mov dword [esi + 0x448], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0xd
mov dword [esi + 0x450], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov dword [esi + 0x44c], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x10
mov dword [esi + 0x454], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esi + 0x458], eax
lea eax, [ebp - 0x260]
push eax
mov dword [ebp - 0x260], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401cd5
cmp dword [ebp - 0x250], 2
jne 0x401cd5
cmp dword [ebp - 0x25c], 5
jb 0x401cd5
cmp dword [ebp - 0x258], 0
je 0x401cd5
push 0
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x2a0], 0
push eax
push 0
push 0x1022
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp dword [ebp - 0x2a0], 0
je 0x401cd5
push 0x1d
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x1e
mov dword [esi + 0x44c], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esi + 0x440], eax
cmp dword [ebp - 0x274], 0
xorps xmm0, xmm0
mov dword [esi + 0x9c], 0xffffffff
movlpd qword [ebp - 0x2b8], xmm0
je 0x401d1e
test edi, edi
je 0x401d1e
push dword [0x49d5e4]
push edi
call fcn.00465808
add esp, 8
test eax, eax
je 0x401d1e
mov ecx, dword [ebp - 0x2b4]
mov eax, dword [ebp - 0x2b8]
mov dword [ebp - 0x26c], ecx
jmp 0x401d2d
mov eax, dword [0x49d568]
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], eax
test edi, edi
jne 0x401d4b
mov edi, dword [0x49d5e4]
mov dword [ebp - 0x2a8], edi
test edi, edi
je 0x403b37
push 0
push edi
call dword [sym.imp.MMFS2.dll_Ordinal_1033]
mov ecx, eax
mov dword [esi + 0x9c], ecx
cmp ecx, 0xffffffff
jne 0x401d76
mov eax, dword [ebp - 0x2a8]
mov edi, 0xc2
mov dword [0x49d768], eax
jmp 0x403b1d
mov edx, dword [ebp - 0x268]
mov eax, edx
or eax, dword [ebp - 0x26c]
je 0x401da0
push dword [ebp - 0x26c]
push edx
push ecx
call dword [sym.imp.MMFS2.dll_Ordinal_1145]
mov ecx, dword [esi + 0x9c]
mov edx, dword [ebp - 0x268]
push 0x10
push esi
push ecx
mov dword [esi + 0x84], edi
mov dword [esi + 0xa0], edx
mov dword [esi + 0x3a0], 0
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov edi, eax
test edi, edi
jne 0x403b1b
mov eax, dword [esi]
cmp eax, 0x454d4150
jne 0x401ddd
mov edi, 0xc9
jmp 0x403b1d
cmp eax, 0x554d4150
jne 0x401dd3
mov eax, 0x302
mov byte [esi + 0x3c4], 1
cmp word [esi + 4], ax
je 0x401e00
mov edi, 0xc8
jmp 0x403b1d
cmp dword [ebp - 0x274], 0
jne 0x401e1e
mov eax, dword [esi + 8]
cmp eax, dword [0x49d56c]
je 0x401e1e
mov edi, 0xc8
jmp 0x403b1d
xor eax, eax
mov word [ebp - 0x280], ax
push 8
lea eax, [ebp - 0x280]
push eax
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov edi, eax
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], edi
test edi, edi
jne 0x403acc
cmp dword [ebp - 0x27c], eax
je 0x403464
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_1144]
mov ecx, eax
mov dword [ebp - 0x2a0], edx
add ecx, dword [ebp - 0x27c]
mov dword [ebp - 0x2a4], ecx
movzx ecx, word [ebp - 0x280]
adc dword [ebp - 0x2a0], edi
mov dword [ebp - 0x270], ecx
cmp ecx, 0x3333
ja 0x4031f4
je 0x402fe1
sub ecx, 0x2223
cmp ecx, 0x3b
ja case.0x401eb9.8741
movzx eax, byte [ecx + 0x403c08]
jmp dword [eax*4 + 0x403b6c]
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x3a0]
push 0
push eax
lea eax, [esi + 0x10]
push 0x70
push eax
lea edx, [ebp - 0x280]
call fcn.0045e790
mov edi, eax
add esp, 0x10
cmp dword [ebp - 0x274], 0
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], edi
jne 0x401f17
mov eax, 0x200
mov ecx, 1
test word [esi + 0x16], ax
movzx eax, byte [0x49d591]
cmovne eax, ecx
mov byte [0x49d591], al
mov ecx, dword [esi + 0x74]
lea edx, [esi + 0xd0]
shl ecx, 2
call fcn.00405b60
test eax, eax
je 0x401f92
test byte [esi + 0x16], 4
jne 0x401f43
mov ecx, dword [esi + 0x74]
lea edx, [esi + 0xd4]
shl ecx, 2
call fcn.00405b60
push 1
push 0x100
call fcn.004646b4
add esp, 8
mov dword [esi + 0x26c], eax
cmp dword [ebp - 0x274], 0
jne 0x401f7c
mov eax, dword [0x49d3a0]
mov eax, dword [eax + 4]
test eax, eax
je 0x401f7c
mov ecx, 0x800
test word [esi + 0x16], cx
jne 0x401f7c
push 1
call eax
test byte [esi + 0x14], 0x10
je 0x4021df
mov byte [esi + 0x3d0], 1
jmp 0x4021df
mov edi, 0xc3
jmp 0x403acc
mov byte [ebp - 0x292], 1
jmp case.0x401eb9.8741
push 0
push ecx
mov ecx, dword [esi + 0x9c]
lea eax, [ebp - 0x2cc]
push 0
push eax
lea edx, [ebp - 0x280]
call fcn.0045e940
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], edi
test edi, edi
jne 0x403acc
mov ecx, dword [ebp - 0x2cc]
cmp dword [ebp - 0x274], eax
jne 0x402007
mov eax, dword [0x49d570]
and eax, 0xfffffffd
mov dword [0x49d570], eax
test byte [ecx + 8], 4
je 0x402007
or eax, 2
mov dword [0x49d570], eax
cmp dword [ecx], 0x124
jb 0x402017
jne 0x402028
cmp dword [ecx + 4], 0x1e
jae 0x402028
mov edi, 0xc9
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], edi
push ecx
call fcn.004646ca
add esp, 4
jmp 0x4021df
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x3c0]
push 0
push 0
push 4
push eax
lea edx, [ebp - 0x280]
call fcn.0045e790
jmp 0x4021ce
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x3e8]
push 0
push 0
push 4
push eax
lea edx, [ebp - 0x280]
call fcn.0045e790
mov edi, eax
add esp, 0x10
cmp byte [esi + 0x3ec], 0
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], edi
je 0x4020a6
push dword [esi + 0x3f0]
call fcn.00464d39
add esp, 4
mov byte [esi + 0x3ec], 0
mov eax, dword [esi + 0x3e8]
xor ecx, ecx
mov word [ebp - 0x100], cx
test eax, eax
je 0x402176
push ecx
push ecx
movzx eax, ax
push 0x59
push eax
mov dword [ebp - 0x26c], eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 0x63
jge 0x402176
push eax
lea eax, [ebp - 0x100]
push eax
push 0x59
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea edi, [ebp - 0x100]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x402100
mov eax, dword [0x48a180]
mov dword [edi], eax
lea edi, [ebp - 0x100]
lea ecx, [edi + 2]
nop dword [eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x402120
push 0
push 0
push 0x5a
push dword [ebp - 0x26c]
sub edi, ecx
sar edi, 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, 0x63
sub ecx, edi
cmp eax, ecx
jge 0x402167
push eax
lea eax, [ebp - 0x100]
lea eax, [eax + edi*2]
push eax
push 0x5a
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x402170
xor eax, eax
mov word [ebp - 0x100], ax
mov edi, dword [ebp - 0x264]
lea ecx, [ebp - 0x100]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402180
sub ecx, edx
sar ecx, 1
je 0x4021df
lea eax, [ebp - 0x100]
push eax
push 0
call fcn.00464df1
add esp, 8
mov dword [esi + 0x3f0], eax
mov byte [esi + 0x3ec], 1
jmp 0x4021df
lea eax, [esi + 0x438]
push 0
push ecx
push 0
push eax
mov ecx, dword [esi + 0x9c]
lea edx, [ebp - 0x280]
call fcn.0045e940
add esp, 0x10
mov edi, eax
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], edi
test edi, edi
je case.0x401eb9.8741
jmp 0x403acc
lea eax, [esi + 0x80]
jmp 0x4021b7
lea eax, [esi + 0x8c]
jmp 0x4021b7
push dword [esi + 0x26c]
lea eax, [esi + 0x90]
jmp 0x4021b9
push 0
push ecx
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x88]
push 0
push eax
lea edx, [ebp - 0x280]
mov byte [ebp - 0x291], 1
call fcn.0045e940
mov edi, eax
add esp, 0x10
mov eax, dword [esi + 0x26c]
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x26c], eax
test eax, eax
je 0x4021df
push dword [esi + 0x80]
mov edx, eax
mov byte [ebp - 0x28a], 0
mov byte [ebp - 0x289], 0
call fcn.00401900
mov edx, dword [ebp - 0x26c]
add esp, 4
push dword [esi + 0x8c]
call fcn.00401900
mov edx, dword [ebp - 0x26c]
add esp, 4
push dword [esi + 0x88]
call fcn.00401900
mov eax, dword [ebp - 0x26c]
add esp, 4
sub eax, 0xffffff80
push 0x80
push 0
push eax
call fcn.00462550
mov ecx, dword [ebp - 0x26c]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4022b7
sub ecx, edx
mov dh, 0x36
mov byte [ebp - 0x2d0], dh
lea eax, [ecx + 1]
xor ecx, ecx
mov dword [ebp - 0x288], eax
cmp eax, 2
jl 0x40235d
mov esi, dword [ebp - 0x26c]
lea edi, [eax - 2]
shr edi, 1
inc edi
lea eax, [edi + edi]
mov dword [ebp - 0x270], eax
mov dl, dh
shr dh, 1
shl dl, 7
add dl, dh
xor byte [esi], dl
mov cl, dl
movzx eax, byte [esi]
and cl, 1
add cl, 2
mov dh, dl
movzx ecx, cl
imul ecx, eax
shl dh, 7
shr dl, 1
add dh, dl
xor byte [esi + 1], dh
add byte [ebp - 0x28a], cl
mov cl, dh
movzx eax, byte [esi + 1]
and cl, 1
add cl, 2
add esi, 2
movzx ecx, cl
imul ecx, eax
add byte [ebp - 0x289], cl
sub edi, 1
jne 0x4022f1
mov edi, dword [ebp - 0x264]
mov eax, dword [ebp - 0x288]
mov ecx, dword [ebp - 0x270]
mov dword [ebp - 0x26c], esi
mov esi, dword [ebp - 0x29c]
cmp ecx, eax
jge 0x40239a
mov cl, dh
shr dh, 1
shl cl, 7
add cl, dh
mov edx, dword [ebp - 0x26c]
xor byte [edx], cl
and cl, 1
movzx eax, byte [edx]
add cl, 2
movzx ecx, cl
inc edx
imul ecx, eax
mov al, byte [ebp - 0x289]
add al, byte [ebp - 0x28a]
add cl, 0x36
add al, cl
mov byte [edx], al
jmp 0x4021df
mov al, byte [ebp - 0x289]
mov edx, dword [ebp - 0x26c]
add al, byte [ebp - 0x28a]
mov ecx, dword [ebp - 0x2d0]
add al, cl
mov byte [edx], al
jmp 0x4021df
cmp byte [ebp - 0x291], 0
jne 0x4023e0
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_423]
sub eax, 8
mov byte [ebp - 0x275], 1
mov dword [ebp - 0x2bc], eax
push 0
push ecx
lea edx, [esi + 0x94]
push 0
push edx
jmp 0x4021bd
push dword [esi + 0x26c]
lea eax, [esi + 0xa4]
jmp 0x4021b9
cmp dword [ebp - 0x274], 0
je case.0x401eb9.8741
cmp dword [ebx + 0x10], 0
jge case.0x401eb9.8741
push 0
push ecx
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0xa8]
push 0
push eax
lea edx, [ebp - 0x280]
call fcn.0045e940
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], edi
test edi, edi
jne 0x403acc
mov ecx, dword [esi + 0xa8]
call fcn.00401830
mov dword [esi + 0xac], eax
jmp case.0x401eb9.8741
push dword [esi + 0x26c]
lea eax, [esi + 0x260]
mov dword [eax], 0
jmp 0x4027bc
push dword [esi + 0x26c]
lea eax, [esi + 0x274]
mov dword [eax], 0
jmp 0x4027bc
cmp dword [ebp - 0x274], 0
jne case.0x401eb9.8741
lea eax, [esi + 0xc0]
jmp 0x4021b7
lea eax, [esi + 0xbc]
jmp 0x4021b7
push 0
push ecx
mov ecx, dword [esi + 0x9c]
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x2d8]
push eax
lea edx, [ebp - 0x280]
call fcn.0045e940
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], edi
test edi, edi
jne 0x403acc
mov eax, dword [ebp - 0x2d4]
xor ecx, ecx
shr eax, 2
mov dword [ebp - 0x288], eax
test eax, eax
je case.0x401eb9.8741
lea edx, [esi + 0x43c]
cmp ecx, 8
jge case.0x401eb9.8741
mov eax, dword [ebp - 0x2d8]
mov eax, dword [eax + ecx*4]
inc ecx
mov dword [edx], eax
add edx, 4
mov byte [esi + 0x45c], 1
cmp ecx, dword [ebp - 0x288]
jl 0x402510
jmp case.0x401eb9.8741
lea eax, [esi + 0x3bc]
jmp 0x4021b7
cmp dword [ebp - 0x2bc], 0
mov byte [ebp - 0x275], 0
je case.0x401eb9.8741
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_423]
push dword [esi + 0x26c]
sub eax, dword [ebp - 0x2bc]
lea edx, [ebp - 0x280]
mov ecx, dword [esi + 0x9c]
sub eax, 8
push 0
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x2a8]
push 4
push eax
call fcn.0045e790
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], edi
test edi, edi
jne 0x403acc
push dword [ebp - 0x2bc]
xor byte [ebp - 0x2a8], 0xd
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov eax, dword [esi + 0x9c]
push 0x8000
mov dword [ebp - 0x288], eax
call fcn.00460e26
mov ecx, dword [ebp - 0x270]
add esp, 4
mov edx, eax
mov dword [ebp - 0x26c], edx
test ecx, ecx
je 0x4026a2
nop dword [eax]
mov eax, 0x8000
cmp ecx, eax
cmovb eax, ecx
push eax
push edx
push dword [ebp - 0x288]
mov dword [ebp - 0x284], eax
call dword [sym.imp.MMFS2.dll_Ordinal_425]
test eax, eax
jne 0x402696
mov eax, dword [ebp - 0x284]
mov edx, eax
mov esi, dword [ebp - 0x26c]
shr edx, 2
test edx, edx
je 0x402651
mov ecx, dword [esi]
mov eax, edi
shr eax, 0x1f
add esi, 4
add eax, ecx
lea edi, [eax + edi*2]
sub edx, 1
jne 0x402637
mov eax, dword [ebp - 0x284]
and eax, 3
mov edx, 0
mov dword [ebp - 0x290], eax
jbe 0x402678
movzx ecx, byte [edx + esi]
mov eax, edi
shr eax, 0x1f
inc edx
add eax, ecx
lea edi, [eax + edi*2]
cmp edx, dword [ebp - 0x290]
jb 0x402661
mov ecx, dword [ebp - 0x270]
sub ecx, dword [ebp - 0x284]
mov edx, dword [ebp - 0x26c]
mov dword [ebp - 0x270], ecx
jne 0x402600
mov esi, dword [ebp - 0x29c]
mov edx, dword [ebp - 0x26c]
push 0x8000
push 0
push edx
call fcn.00462550
add esp, 0xc
push dword [ebp - 0x26c]
call fcn.00460e2f
add esp, 4
cmp edi, dword [ebp - 0x2a8]
mov edi, dword [ebp - 0x264]
je case.0x401eb9.8741
mov byte [ebp - 0x275], 1
jmp case.0x401eb9.8741
xor edx, edx
lea ecx, [ebp - 0x280]
call fcn.0044beb0
jmp 0x4021d1
mov edx, 1
lea ecx, [ebp - 0x280]
call fcn.0044beb0
jmp 0x4021d1
lea ecx, [ebp - 0x280]
call fcn.0044b6c0
jmp 0x4021d1
push 0
push ecx
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x3c8]
push 0
push eax
lea edx, [ebp - 0x280]
mov dword [eax], 0
call fcn.0045e940
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], edi
test edi, edi
jne 0x403acc
mov ecx, dword [esi + 0x3c8]
test ecx, ecx
je case.0x401eb9.8741
mov eax, dword [ecx]
mov dword [ebp - 0x290], eax
test eax, eax
je case.0x401eb9.8741
lea edx, [ecx + 4]
mov edi, eax
mov eax, dword [edx]
test eax, eax
je 0x4027a1
add ecx, eax
mov eax, dword [ecx + 0xc]
test al, 0xf
je 0x40278d
mov byte [esi + 0x3d0], 1
mov eax, dword [ecx + 0xc]
mov ecx, dword [esi + 0x3c8]
test eax, 0x100
je 0x4027a1
mov byte [esi + 0x3f8], 1
add edx, 4
sub edi, 1
jne 0x402774
mov edi, dword [ebp - 0x264]
jmp case.0x401eb9.8741
push 0
lea eax, [ebp - 0x2c0]
push ecx
mov ecx, dword [esi + 0x9c]
lea edx, [ebp - 0x280]
push 0
push eax
call fcn.0045e940
add esp, 0x10
jmp 0x402fc6
cmp dword [ebp - 0x274], 0
jne 0x4027e9
and dword [0x49d570], 0xfffffffd
test byte [esi + 0x1a], 8
je 0x402823
test dword [esi + 0x1b0], 0x4000
jne 0x402823
mov dword [esi + 0x250], 0
mov dword [esi + 0x24c], 0
mov dword [esi + 0x248], 0
mov dword [esi + 0x244], 0
call fcn.0044db40
jmp 0x4021d1
cmp dword [ebp - 0x274], 0
jne 0x40283d
or dword [0x49d570], 2
test byte [esi + 0x1a], 8
je 0x402877
test dword [esi + 0x1b0], 0x4000
jne 0x402877
mov dword [esi + 0x250], 0
mov dword [esi + 0x24c], 0
mov dword [esi + 0x248], 0
mov dword [esi + 0x244], 0
push 0
push ecx
mov ecx, dword [esi + 0x9c]
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], 0
push eax
lea edx, [ebp - 0x280]
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x268], 0
mov dword [esi + 0x3fc], 1
call fcn.0045e940
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x264], edi
test edi, edi
jne 0x402a27
mov eax, dword [ebp - 0x270]
shr eax, 4
mov dword [esi + 0x190], eax
test eax, eax
jne 0x4028f5
or edi, 0xffffffff
mov dword [ebp - 0x264], edi
jmp 0x402a27
push 0x30
push eax
call fcn.004646b4
add esp, 8
mov dword [esi + 0x400], eax
test eax, eax
jne 0x40291a
mov edi, 0xc3
mov dword [ebp - 0x264], edi
jmp 0x402a27
mov eax, dword [esi + 0x190]
shl eax, 2
push 1
push eax
call fcn.004646b4
add esp, 8
mov dword [esi + 0x19c], eax
test eax, eax
jne 0x402948
mov edi, 0xc3
mov dword [ebp - 0x264], edi
jmp 0x402a27
cmp dword [esi + 0x190], 0
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x270], eax
jle 0x4029c1
xor eax, eax
mov dword [ebp - 0x26c], eax
mov edi, eax
mov ecx, eax
nop dword [eax]
mov edx, ecx
mov ecx, dword [esi + 0x400]
add ecx, eax
mov eax, dword [esi + 0x19c]
mov dword [eax + edi*4], ecx
mov eax, dword [ebp - 0x270]
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movzx eax, word [ecx]
cmp eax, edx
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x26c]
cmovb ecx, edx
add dword [ebp - 0x270], 0x10
inc edi
add eax, 0x30
mov dword [ebp - 0x26c], eax
cmp edi, dword [esi + 0x190]
jl 0x402970
mov edi, dword [ebp - 0x264]
jmp 0x4029c7
mov ecx, dword [ebp - 0x268]
push 2
push ecx
mov dword [esi + 0x194], ecx
call fcn.004646b4
add esp, 8
mov dword [esi + 0x198], eax
test eax, eax
jne 0x4029ef
mov edi, 0xc3
mov dword [ebp - 0x264], edi
jmp 0x402a27
xor edx, edx
cmp dword [esi + 0x190], edx
jle 0x402a27
xor edi, edi
nop dword [eax + eax]
mov eax, dword [esi + 0x400]
lea edi, [edi + 0x30]
movzx ecx, word [eax + edi - 0x30]
mov eax, dword [esi + 0x198]
mov word [eax + ecx*2], dx
inc edx
cmp edx, dword [esi + 0x190]
jl 0x402a00
mov edi, dword [ebp - 0x264]
mov eax, dword [ebp - 0x284]
test eax, eax
je 0x402a3a
push eax
call fcn.004646ca
add esp, 4
test edi, edi
je 0x4021d9
call fcn.0044de20
jmp 0x4021d9
cmp dword [ebp - 0x274], 0
jne 0x402a5c
or dword [0x49d570], 2
push 0
push ecx
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x40c]
push 0
push eax
lea edx, [ebp - 0x280]
call fcn.0045e940
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x264], edi
test edi, edi
jne 0x402a42
mov edx, dword [esi + 0x40c]
mov dword [ebp - 0x270], eax
cmp dword [esi + 0x190], eax
jle 0x4021d9
mov eax, dword [esi + 0x400]
mov ecx, edx
mov dword [eax + edi + 0x10], edx
lea eax, [ecx + 2]
mov dword [ebp - 0x290], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402ab5
sub ecx, dword [ebp - 0x290]
add edi, 0x30
mov eax, dword [ebp - 0x270]
sar ecx, 1
inc eax
mov dword [ebp - 0x270], eax
lea edx, [edx + ecx*2]
add edx, 2
cmp eax, dword [esi + 0x190]
jl 0x402aa0
mov edi, dword [ebp - 0x264]
jmp 0x4021d9
cmp dword [ebp - 0x274], 0
jne 0x402b01
or dword [0x49d570], 2
push 0
push ecx
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x410]
push 0
push eax
lea edx, [ebp - 0x280]
call fcn.0045e940
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x264], edi
test edi, edi
jne 0x402a42
mov eax, dword [esi + 0x410]
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x288], edi
cmp dword [esi + 0x190], edi
jle 0x4021d9
xor ecx, ecx
mov edi, eax
mov dword [ebp - 0x268], ecx
nop dword [eax]
mov edx, dword [edi]
add edi, 4
mov eax, dword [esi + 0x400]
mov dword [ebp - 0x26c], edx
test edx, edx
je 0x402c0d
mov dword [eax + ecx + 0x28], edi
test edi, edi
je 0x402c0b
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [ebp - 0x284], eax
test eax, eax
je 0x402c05
cmp ecx, 0xffffffff
je 0x402c05
mov eax, dword [0x49d5cc]
mov eax, dword [eax + 0x3c8]
test eax, eax
je 0x402c05
cmp ecx, dword [eax]
jae 0x402c05
mov ecx, dword [eax + ecx*4 + 4]
test ecx, ecx
je 0x402c05
add eax, ecx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x402c05
add eax, ecx
lea edx, [edi + 8]
mov ecx, dword [eax + 4]
add ecx, eax
mov dword [ebp - 0x270], ecx
xor ecx, ecx
cmp dword [ebp - 0x284], ecx
jbe 0x402bff
mov eax, dword [ebp - 0x270]
nop dword [eax]
cmp byte [ecx + eax], 3
jne 0x402bf3
mov ax, word [edx]
mov word [edx + 2], ax
mov eax, dword [ebp - 0x270]
inc ecx
add edx, 4
cmp ecx, dword [ebp - 0x284]
jb 0x402be0
mov edx, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x268]
add edi, edx
mov eax, dword [ebp - 0x288]
add ecx, 0x30
inc eax
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x288], eax
cmp eax, dword [esi + 0x190]
jl 0x402b60
mov edi, dword [ebp - 0x264]
jmp 0x4021d9
cmp dword [ebp - 0x274], 0
jne 0x402c4a
or dword [0x49d570], 2
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_423]
mov dword [esi + 0x404], eax
jmp case.0x401eb9.8741
cmp dword [ebp - 0x274], 0
jne 0x402c71
or dword [0x49d570], 2
push 0
push ecx
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x408]
push 0
push eax
lea edx, [ebp - 0x280]
call fcn.0045e940
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x264], edi
test edi, edi
jne 0x4021d9
xor edx, edx
cmp dword [esi + 0x190], edx
jle 0x4021d9
nop
mov eax, dword [esi + 0x408]
mov ecx, dword [esi + 0x400]
add ecx, edi
add edi, 0x30
mov eax, dword [eax + edx*4]
inc edx
add eax, dword [esi + 0x404]
mov dword [ecx + 0x1c], eax
cmp edx, dword [esi + 0x190]
jl 0x402cb0
mov edi, dword [ebp - 0x264]
jmp 0x4021d9
cmp dword [esi + 0x1a8], 0
je 0x402cfa
test dword [esi + 0x1b0], 0x4000
je case.0x401eb9.8741
push 0
lea eax, [esi + 0x414]
push ecx
push eax
lea eax, [esi + 0x41c]
jmp 0x4021bc
cmp dword [esi + 0x1a8], 0
je 0x402d28
test dword [esi + 0x1b0], 0x4000
je case.0x401eb9.8741
push 0
lea eax, [esi + 0x418]
push ecx
push eax
lea eax, [esi + 0x420]
jmp 0x4021bc
push dword [esi + 0x26c]
lea edi, [esi + 0xcc]
push ecx
mov ecx, dword [esi + 0x9c]
lea edx, [ebp - 0x280]
push 0
push edi
call fcn.0045e940
push dword [edi]
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x268], eax
call fcn.0046597d
mov edi, dword [ebp - 0x264]
add esp, 0x14
shr eax, 1
movzx eax, ax
mov dword [esi + 0xc8], eax
jmp 0x4021df
push 4
lea eax, [ebp - 0x2b0]
push eax
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov edi, eax
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], edi
test edi, edi
jne 0x403acc
mov ecx, dword [ebp - 0x2b0]
test ecx, ecx
je case.0x401eb9.8741
movzx eax, word [esi + 0x1a]
mov edx, eax
mov dword [ebp - 0x288], edi
and eax, 0xffbf
mov dword [ebp - 0x290], edx
mov word [esi + 0x1a], ax
test ecx, ecx
jle 0x402f62
push 2
lea eax, [ebp - 0x2ac]
push eax
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov edi, eax
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], edi
test edi, edi
jne 0x402f62
push 0x220
call fcn.00460bed
mov edi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x270], edi
mov word [edi], ax
mov dword [edi + 0x208], eax
mov dword [edi + 0x20c], eax
mov dword [edi + 0x210], eax
mov dword [edi + 0x214], eax
mov dword [edi + 0x218], eax
movzx eax, word [ebp - 0x2ac]
add eax, eax
push eax
push edi
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov dword [ebp - 0x264], eax
xor ecx, ecx
mov dword [ebp - 0x268], eax
movzx eax, word [ebp - 0x2ac]
push edi
push ecx
mov word [edi + eax*2], cx
call fcn.0045eda0
cmp dword [ebp - 0x264], 0
jne 0x402f19
push 4
lea eax, [edi + 0x20c]
push eax
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x268], eax
test eax, eax
jne 0x402f19
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_1144]
push edi
lea ecx, [esi + 0x168]
mov dword [edi + 0x210], eax
mov dword [edi + 0x214], edx
call dword [sym.imp.MMFS2.dll_Ordinal_333]
push 0
push dword [edi + 0x20c]
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_1146]
mov eax, dword [ebp - 0x288]
inc eax
mov dword [ebp - 0x288], eax
cmp eax, dword [ebp - 0x2b0]
jl 0x402de6
mov eax, dword [ebp - 0x290]
mov edi, dword [ebp - 0x264]
mov word [esi + 0x1a], ax
jmp 0x4021df
mov eax, dword [edi + 0x208]
test eax, eax
je 0x402f4e
push eax
call fcn.004659b0
add esp, 4
push dword [edi + 0x208]
call fcn.004646ca
mov dword [edi + 0x218], 0
add esp, 4
mov dword [edi + 0x208], 0
push 0x220
push edi
call fcn.00460c1d
mov edi, dword [ebp - 0x264]
add esp, 8
mov eax, dword [ebp - 0x290]
mov word [esi + 0x1a], ax
jmp 0x4021df
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_423]
mov dword [0x49d3a8], eax
mov eax, dword [ebp - 0x27c]
mov dword [0x49d3a4], eax
jmp case.0x401eb9.8741
push 4
lea eax, [esi + 0x3d8]
push eax
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov edi, eax
test edi, edi
jne 0x403acc
push 4
lea eax, [esi + 0x3dc]
push eax
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov edi, eax
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], edi
test edi, edi
jne 0x403acc
jmp case.0x401eb9.8741
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_423]
mov edx, dword [esi + 0xc4]
mov ecx, dword [esi + 0xd0]
mov dword [ecx + edx*4], eax
cmp dword [esi + 0xd4], 0
jne 0x403012
cmp byte [ebp - 0x276], 0
jne 0x40312b
xor eax, eax
mov word [ebp - 0x2b8], ax
mov dword [ebp - 0x270], eax
push 8
lea eax, [ebp - 0x2b8]
push eax
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov edi, eax
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], edi
test edi, edi
jne 0x40312b
cmp dword [ebp - 0x2b4], eax
je 0x403119
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_1144]
add eax, dword [ebp - 0x2b4]
mov ecx, edx
mov dword [ebp - 0x288], eax
adc ecx, edi
mov dword [ebp - 0x290], ecx
movzx ecx, word [ebp - 0x2b8]
sub ecx, 0x3334
je 0x4031a3
sub ecx, 2
je 0x403136
sub ecx, 1
jne 0x4030ef
cmp byte [ebp - 0x276], cl
jne 0x4030ef
push dword [esi + 0x26c]
lea eax, [ebp - 0x2c8]
push ecx
push ecx
mov ecx, dword [esi + 0x9c]
lea edx, [ebp - 0x2b8]
push eax
call fcn.0045e940
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], edi
test edi, edi
jne 0x40312b
mov ecx, dword [ebp - 0x2c8]
add ecx, 4
mov edx, ecx
call fcn.00405100
mov byte [ebp - 0x276], 1
cmp dword [ebp - 0x270], 0
je 0x403101
cmp byte [ebp - 0x276], 0
jne 0x40312b
push dword [ebp - 0x290]
push dword [ebp - 0x288]
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_1145]
mov eax, 0x7f7f
cmp word [ebp - 0x2b8], ax
jne 0x403021
inc dword [esi + 0xc4]
jmp 0x4021df
cmp dword [esi + 0xd4], 0
je 0x403194
push dword [esi + 0x26c]
lea eax, [ebp - 0x2dc]
push ecx
mov ecx, dword [esi + 0x9c]
lea edx, [ebp - 0x2b8]
push 0
push eax
call fcn.0045e940
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], edi
test edi, edi
jne 0x40312b
mov edx, dword [ebp - 0x2dc]
test edx, edx
je 0x403194
mov ecx, dword [esi + 0xc4]
mov eax, dword [esi + 0xd4]
inc dword [ebp - 0x2c4]
mov dword [eax + ecx*4], edx
mov dword [ebp - 0x270], 1
jmp 0x4030f8
push dword [esi + 0x26c]
mov ecx, dword [esi + 0x9c]
lea eax, [ebp - 0x2c]
push 0
push 0x10
push eax
lea edx, [ebp - 0x2b8]
call fcn.0045e790
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], edi
test edi, edi
jne 0x40312b
test byte [ebp - 0x20], 0x40
jne 0x4030ef
mov dword [ebp - 0x270], 1
jmp 0x4030f8
cmp ecx, 0x6669
ja case.0x401eb9.8741
cmp ecx, 0x6666
jae 0x403412
lea eax, [ecx - 0x5555]
cmp eax, 3
ja case.0x401eb9.8741
mov eax, dword [0x49d5cc]
lea edx, [ebp - 0x280]
push 0
push ecx
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x288], eax
push 0
push ecx
mov ecx, dword [eax + 0x9c]
mov dword [ebp - 0x26c], 0
call fcn.0045e940
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x264], edi
test edi, edi
jne 0x4021d9
mov edi, dword [ebp - 0x26c]
push edi
call fcn.0046597d
and eax, 0xfffffffc
add esp, 4
cmp eax, 0x3fffc
jbe 0x403280
mov eax, 0xffff
jmp 0x40328c
push edi
call fcn.0046597d
add esp, 4
shr eax, 2
mov ecx, dword [ebp - 0x270]
mov edi, dword [ebp - 0x288]
lea ecx, [ecx*2 - 0xa99a]
movzx eax, ax
push 8
push eax
mov dword [ebp - 0x268], ecx
mov word [edi + ecx], ax
call fcn.004646b4
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x270]
mov dword [edi + eax*4 - 0x1543c], ecx
test ecx, ecx
je 0x4033fd
mov eax, dword [ebp - 0x268]
xor esi, esi
xor edx, edx
mov dword [ebp - 0x284], edx
cmp si, word [edi + eax]
mov esi, dword [ebp - 0x29c]
jae 0x403358
mov esi, edi
nop dword [eax]
mov eax, dword [ebp - 0x26c]
xor edi, edi
mov edx, dword [eax + edx*4]
mov eax, edx
or eax, edi
mov dword [ecx], edx
mov dword [ecx + 4], edi
je 0x403334
cmp dword [esi + 0xc], 0x11b
jbe 0x403323
cmp word [esi + 0x14], di
jge 0x403323
add edx, 0xffffff00
mov dword [ecx], edx
adc edi, 0xffffffff
mov dword [ecx + 4], edi
mov eax, dword [esi + 0x430]
add dword [ecx], eax
mov eax, dword [esi + 0x434]
adc dword [ecx + 4], eax
mov eax, dword [ebp - 0x268]
add ecx, 8
mov edx, dword [ebp - 0x284]
inc edx
mov dword [ebp - 0x284], edx
movzx eax, word [esi + eax]
cmp edx, eax
jb 0x4032f0
mov esi, dword [ebp - 0x29c]
push dword [ebp - 0x26c]
call fcn.004646ca
mov eax, dword [0x49d5cc]
add esp, 4
mov edi, dword [ebp - 0x270]
mov ecx, 0x100
mov dword [ebp - 0x284], eax
push 0x200
mov word [eax + edi*2 - 0xa982], cx
call fcn.004659d8
mov ecx, dword [ebp - 0x284]
add esp, 4
mov dword [ecx + edi*4 - 0x15424], eax
test eax, eax
jne 0x4033ac
mov edi, 0xc3
jmp 0x4021d3
push 0x200
push 0xff
push eax
call fcn.00462550
mov eax, dword [ebp - 0x284]
add esp, 0xc
movzx eax, word [eax + edi*2 - 0xa99a]
push 1
lea eax, [eax*2 + 2]
push eax
call fcn.004646b4
mov ecx, dword [ebp - 0x284]
add esp, 8
mov dword [ecx + edi*4 - 0x15414], eax
xor edi, edi
test eax, eax
mov eax, 0xc3
cmove edi, eax
jmp 0x4021d3
push dword [ebp - 0x26c]
call fcn.004646ca
mov edi, 0xc3
jmp 0x403ac9
mov edi, dword [0x49d5cc]
mov eax, dword [edi + 0x9c]
mov dword [edi + ecx*4 - 0x1989c], eax
push dword [edi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_1144]
mov dword [edi + 0x430], eax
mov dword [edi + 0x434], edx
xor edi, edi
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], edi
mov edx, dword [ebp - 0x2a0]
push edx
push dword [ebp - 0x2a4]
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_1145]
mov eax, 0x7f7f
cmp word [ebp - 0x280], ax
jne 0x401e27
test edi, edi
jne 0x403acc
cmp byte [ebp - 0x292], 0
jne 0x403491
mov edi, 0xc8
jmp 0x403acc
cmp dword [ebp - 0x2c4], 0
jne 0x4034b7
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x4034b7
push eax
call fcn.004646ca
add esp, 4
mov dword [esi + 0xd4], 0
mov eax, dword [ebp - 0x298]
mov ecx, dword [esi + 0xc0]
mov dword [esi + 0x1e8], eax
call fcn.00459970
mov eax, dword [esi + 0x3bc]
test dword [eax], 0x8000000
je 0x403554
lea eax, [ebp - 0x148]
mov dword [ebp - 0x148], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403554
cmp dword [ebp - 0x138], 2
jne 0x403554
cmp dword [ebp - 0x144], 5
jb 0x403554
push 0
push 0
push 0x48a184
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x298], eax
test eax, eax
je 0x40354d
push str.ImmDisableIME
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403541
push 0
call eax
push dword [ebp - 0x298]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x274]
test eax, eax
jne 0x4037c5
cmp byte [ebp - 0x275], al
jne 0x4037c5
mov eax, dword [ebp - 0x2c8]
test eax, eax
je 0x4035a2
mov edi, dword [0x49d5b0]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
push dword [0x49d558]
mov dword [0x49d5b0], eax
call dword [sym.imp.MMFS2.dll_Ordinal_121]
test edi, edi
je 0x4035a2
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x49d598]
mov edx, dword [0x49d5cc]
mov edi, dword [0x49d734]
mov dword [ebp - 0x330], eax
mov eax, dword [0x49d584]
mov dword [ebp - 0x2b0], edx
mov dword [ebp - 0x32c], 0
mov dword [ebp - 0x338], 0x4c
mov dword [ebp - 0x2fc], 1
mov dword [ebp - 0x30c], str.Mf2MainClassTh
test eax, eax
je 0x403647
mov dword [ebp - 0x328], eax
mov eax, dword [0x49d730]
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x320], edi
mov dword [ebp - 0x314], 0x42000000
jmp 0x40369d
mov eax, edi
mov dword [ebp - 0x328], 0
cdq
and edx, 3
mov dword [ebp - 0x314], 0x2cf0000
add eax, edx
sar eax, 2
mov dword [ebp - 0x318], eax
mov eax, dword [0x49d730]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x31c], eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x320], eax
mov eax, dword [0x49d730]
cdq
sub eax, edx
mov edx, dword [ebp - 0x2b0]
sar eax, 1
xor ecx, ecx
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x310], 0x48cc90
mov dword [ebp - 0x308], ecx
mov eax, dword [edx + 0x3bc]
test eax, eax
je 0x4036e7
test byte [eax], 0x20
mov eax, 0x2000
cmovne ecx, eax
mov dword [ebp - 0x308], ecx
mov eax, dword [edx + 0x3bc]
test byte [eax], 0x80
je 0x4036e7
or ecx, 0x500000
mov dword [ebp - 0x308], ecx
lea eax, [edi + 0x10]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x21
mov dword [ebp - 0x304], eax
call edi
push 4
lea eax, [eax*2 + 0x10]
mov dword [ebp - 0x298], eax
call edi
add eax, dword [0x49d730]
add eax, dword [ebp - 0x298]
push 4
mov dword [ebp - 0x300], eax
mov dword [ebp - 0x2f4], 2
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, dword [ebp - 0x2b0]
mov edx, 0x4000
mov dword [ebp - 0x2f8], eax
xor eax, eax
mov dword [ebp - 0x2f0], eax
test word [ecx + 0x16], dx
mov ecx, 0x200
cmovne eax, ecx
mov dword [ebp - 0x2f0], eax
lea eax, [ebp - 0x338]
push eax
push dword [0x49d558]
call dword [sym.imp.MMFS2.dll_Ordinal_1080]
mov dword [0x49d5a0], eax
cmp eax, 0x20
ja 0x40378b
mov dword [0x49d5a0], 0
mov edi, 0xc1
jmp 0x403acc
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_18]
mov dword [0x49d5a8], eax
call fcn.004570b0
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.00401090
mov edi, eax
mov dword [ebp - 0x264], edi
test edi, edi
jne 0x403acc
mov eax, 0xc000
test word [esi + 0x1a], ax
je 0x403803
test byte [0x49d5b4], 0x40
jne 0x403803
cmp dword [ebp - 0x2c0], 0
je 0x403811
mov eax, dword [esi + 0x3c8]
test eax, eax
je 0x4037f5
push eax
call fcn.004646ca
add esp, 4
mov eax, dword [ebp - 0x2c0]
mov dword [esi + 0x3c8], eax
jmp 0x403811
push dword [ebp - 0x2c0]
call fcn.004646ca
add esp, 4
mov eax, dword [0x49d59c]
mov dword [esi + 0x1c4], eax
call fcn.004012c0
test eax, eax
jne 0x40382d
or edi, 0xffffffff
jmp 0x403acc
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x403866
cmp dword [ebp - 0x2c4], 0
jne 0x403866
push 0
push 0x3f3
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x403866
push 0
push 0x3f3
push dword [esi + 0xb0]
call dword [sym.imp.USER32.dll_DeleteMenu]
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x403915
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x403915
mov eax, 0x1000
test word [esi + 0x14], ax
jne 0x403915
push 0
push 0x401
push dword [esi + 0xb0]
call dword [sym.imp.USER32.dll_DeleteMenu]
push 1
push dword [esi + 0xb0]
call dword [sym.imp.USER32.dll_GetSubMenu]
mov dword [ebp - 0x2a4], eax
test eax, eax
je 0x403915
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov dword [ebp - 0x298], eax
test eax, eax
jle 0x403915
mov edi, dword [ebp - 0x2a4]
mov esi, eax
nop
push 0x400
lea ecx, [esi - 1]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetMenuState]
test eax, 0x800
je 0x403909
push 0x400
dec esi
push esi
push edi
call dword [sym.imp.USER32.dll_DeleteMenu]
test esi, esi
jg 0x4038e0
mov esi, dword [ebp - 0x29c]
mov edi, dword [ebp - 0x264]
mov eax, dword [ebp - 0x274]
test eax, eax
jne 0x403953
test byte [esi + 0x16], 8
je 0x403953
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_31]
push eax
push eax
push 4
push dword [0x49d5a0]
call edi
push 0
or eax, 4
push eax
push 2
push dword [0x49d5a0]
call edi
mov edi, dword [ebp - 0x264]
mov eax, dword [ebp - 0x274]
mov ecx, dword [0x49d5a8]
test eax, eax
je 0x403963
mov ecx, dword [eax + 0x1d0]
cmp byte [ebp - 0x275], 0
jne 0x40398a
push dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
call fcn.004581b0
mov edi, eax
add esp, 4
test edi, edi
jne 0x403acc
mov eax, dword [ebp - 0x274]
test eax, eax
jne 0x4039a8
mov eax, 0x800
test word [esi + 0x14], ax
je 0x4039a8
mov ecx, 1
call fcn.00458ee0
call fcn.004012c0
test byte [0x49d5b4], 0x40
je 0x403acc
cmp dword [esi + 0x41c], 0
je 0x403acc
mov ecx, dword [esi + 0x420]
test ecx, ecx
je 0x403acc
mov eax, dword [esi + 0x414]
add eax, dword [esi + 0x418]
push eax
push ecx
call fcn.004646bf
add esp, 8
mov dword [ebp - 0x298], eax
test eax, eax
je 0x403a9c
push dword [esi + 0x414]
mov ecx, dword [esi + 0x418]
push dword [esi + 0x41c]
add ecx, eax
mov dword [esi + 0x420], eax
push ecx
call fcn.00464140
mov ecx, dword [esi + 0x418]
mov eax, 0xaaaaaaab
mul ecx
add esp, 0xc
shr edx, 6
mov dword [ebp - 0x2a4], edx
test edx, edx
jle 0x403a5d
mov ecx, dword [ebp - 0x298]
add ecx, 0x5c
nop word [eax + eax]
mov eax, dword [esi + 0x418]
lea ecx, [ecx + 0x60]
add dword [ecx - 0x60], eax
sub edx, 1
jne 0x403a40
mov ecx, dword [esi + 0x418]
mov edx, dword [ebp - 0x2a4]
cmp dword [esi + 0x1a8], 0
mov eax, ecx
je 0x403a78
test dword [esi + 0x1b0], 0x4000
jne 0x403a78
xor eax, eax
jmp 0x403a7f
mov ecx, eax
mov eax, 1
push eax
mov eax, dword [esi + 0x414]
add eax, ecx
push eax
push dword [esi + 0x420]
push edx
push dword [0x49d59c]
call dword [sym.imp.MMFS2.dll_Ordinal_1105]
push dword [esi + 0x41c]
call fcn.004646ca
add esp, 4
mov dword [esi + 0x41c], 0
push dword [esi + 0x420]
call fcn.004646ca
mov dword [esi + 0x420], 0
add esp, 4
mov eax, dword [ebp - 0x2c8]
test eax, eax
je 0x403adf
push eax
call fcn.004646ca
add esp, 4
test edi, edi
jne 0x403b1b
mov ecx, dword [0x49d5cc]
test ecx, ecx
je 0x403b05
mov eax, dword [ecx + 0x1d0]
mov dword [0x49d5ac], eax
mov eax, dword [ecx + 0x1d4]
mov dword [0x49d5a4], eax
jmp 0x403b4b
mov dword [0x49d5ac], 0
mov dword [0x49d5a4], 0
jmp 0x403b4b
jle 0x403b37
test byte [0x49d588], 1
je 0x403b37
push ecx
mov ecx, dword [0x49d5a8]
mov edx, edi
call fcn.004577e0
add esp, 4
mov ecx, esi
call fcn.00403c50
mov ecx, dword [ebp - 0x2e0]
call fcn.00401410
xor esi, esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00460bdc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret