Function at 0x401970
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 0x482160
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x210
mov eax, dword [0x49e014]
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 - 0x180], edx
mov edi, ecx
mov dword [ebp - 0x188], ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x15c], eax
xor al, al
push 1
push 0x440
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1a4], 0
mov byte [ebp - 0x179], 0
mov byte [ebp - 0x15e], 0
mov byte [ebp - 0x15d], 0
mov byte [ebp - 0x17a], al
mov dword [ebp - 0x1a8], 0
call fcn.004643e4
mov esi, eax
add esp, 8
mov dword [ebp - 0x184], esi
test esi, esi
je 0x40398d
mov ecx, dword [0x4a05e0]
test ecx, ecx
jne 0x401a57
push 1
push 0x28
call fcn.004643e4
add esp, 8
mov dword [0x4a05e8], eax
test eax, eax
je 0x401a9c
mov ecx, dword [0x4a05e0]
mov dword [0x4a05e4], 0xa
jmp 0x401a93
mov eax, dword [0x4a05e4]
cmp ecx, eax
jl 0x401a8e
lea eax, [eax*4 + 0x28]
push eax
push dword [0x4a05e8]
call fcn.004643ef
add esp, 8
test eax, eax
je 0x401a9c
add dword [0x4a05e4], 0xa
mov ecx, dword [0x4a05e0]
mov dword [0x4a05e8], eax
jmp 0x401a93
mov eax, dword [0x4a05e8]
mov dword [eax + ecx*4], esi
inc dword [0x4a05e0]
mov ecx, esi
call fcn.004013e0
mov dword [ebp - 0x1c4], eax
lea eax, [esi + 0x168]
mov ecx, eax
mov dword [ebp - 0x18c], eax
call dword [sym.imp.MMFS2.dll_Ordinal_255]
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp - 0x15c]
mov dword [esi + 0xfc], 0xffffffff
mov dword [esi + 0x100], 0xffffffff
mov dword [esi + 0x104], 0xffffffff
mov dword [esi + 0x108], 0xffffffff
mov dword [ebp - 0x1ac], 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], 0x409320
test edx, edx
je 0x401b98
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 [0x4a05ac], 0x10
je 0x401b98
test dword [edx + 0x10], 0x4100020
jne 0x401b98
mov dword [esi + 0x3d4], 2
cmp dword [ebp - 0x15c], 0
xorps xmm0, xmm0
mov dword [esi + 0x424], 0
mov byte [esi + 0x428], 0
mov dword [esi + 0x9c], 0xffffffff
movlpd qword [ebp - 0x1a0], xmm0
je 0x401bf2
test edi, edi
je 0x401bf2
push dword [0x4a05dc]
push edi
call fcn.00465538
add esp, 8
test eax, eax
je 0x401bf2
mov ecx, dword [ebp - 0x19c]
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x154], ecx
jmp 0x401c01
mov eax, dword [0x4a0560]
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], eax
test edi, edi
jne 0x401c1f
mov edi, dword [0x4a05dc]
mov dword [ebp - 0x188], edi
test edi, edi
je 0x403977
push 0
push edi
call dword [sym.imp.MMFS2.dll_Ordinal_1033]
mov ecx, eax
mov dword [esi + 0x9c], ecx
cmp ecx, 0xffffffff
jne 0x401c4a
mov eax, dword [ebp - 0x188]
mov edi, 0xc2
mov dword [0x4a0754], eax
jmp 0x40395d
mov edx, dword [ebp - 0x150]
mov eax, edx
or eax, dword [ebp - 0x154]
je 0x401c74
push dword [ebp - 0x154]
push edx
push ecx
call dword [sym.imp.MMFS2.dll_Ordinal_1145]
mov ecx, dword [esi + 0x9c]
mov edx, dword [ebp - 0x150]
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 0x40395b
mov eax, dword [esi]
cmp eax, 0x454d4150
jne 0x401cb1
mov edi, 0xc9
jmp 0x40395d
cmp eax, 0x554d4150
jne 0x401ca7
mov eax, 0x302
mov byte [esi + 0x3c4], 1
cmp word [esi + 4], ax
je 0x401cd4
mov edi, 0xc8
jmp 0x40395d
cmp dword [ebp - 0x15c], 0
jne 0x401cf2
mov eax, dword [esi + 8]
cmp eax, dword [0x4a0564]
je 0x401cf2
mov edi, 0xc8
jmp 0x40395d
xor eax, eax
mov word [ebp - 0x168], ax
nop dword [eax + eax]
push 8
lea eax, [ebp - 0x168]
push eax
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov edi, eax
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], edi
test edi, edi
jne 0x40390c
cmp dword [ebp - 0x164], eax
je 0x4032a4
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_1144]
mov ecx, eax
mov dword [ebp - 0x188], edx
add ecx, dword [ebp - 0x164]
mov dword [ebp - 0x18c], ecx
movzx ecx, word [ebp - 0x168]
adc dword [ebp - 0x188], edi
mov dword [ebp - 0x158], ecx
cmp ecx, 0x3333
ja 0x403034
je 0x402e21
sub ecx, 0x2223
cmp ecx, 0x3a
ja case.0x401d92.8741
movzx eax, byte [ecx + 0x403a44]
jmp dword [eax*4 + 0x4039ac]
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x3a0]
push 0
push eax
lea eax, [esi + 0x10]
push 0x70
push eax
lea edx, [ebp - 0x168]
call fcn.0045be40
mov edi, eax
add esp, 0x10
cmp dword [ebp - 0x15c], 0
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], edi
jne 0x401df0
mov eax, 0x200
mov ecx, 1
test word [esi + 0x16], ax
movzx eax, byte [0x4a0589]
cmovne eax, ecx
mov byte [0x4a0589], al
mov ecx, dword [esi + 0x74]
lea edx, [esi + 0xd0]
shl ecx, 2
call fcn.00405980
test eax, eax
je 0x401e6b
test byte [esi + 0x16], 4
jne 0x401e1c
mov ecx, dword [esi + 0x74]
lea edx, [esi + 0xd4]
shl ecx, 2
call fcn.00405980
push 1
push pe_nt_image_headers32
call fcn.004643e4
add esp, 8
mov dword [esi + 0x26c], eax
cmp dword [ebp - 0x15c], 0
jne 0x401e55
mov eax, dword [0x4a0390]
mov eax, dword [eax + 4]
test eax, eax
je 0x401e55
mov ecx, 0x800
test word [esi + 0x16], cx
jne 0x401e55
push 1
call eax
test byte [esi + 0x14], 0x10
je 0x4020af
mov byte [esi + 0x3d0], 1
jmp 0x4020af
mov edi, 0xc3
jmp 0x40390c
mov byte [ebp - 0x17a], 1
jmp case.0x401d92.8741
push 0
push ecx
mov ecx, dword [esi + 0x9c]
lea eax, [ebp - 0x1b8]
push 0
push eax
lea edx, [ebp - 0x168]
call fcn.0045bff0
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], edi
test edi, edi
jne 0x40390c
mov ecx, dword [ebp - 0x1b8]
cmp dword [ebp - 0x15c], eax
jne 0x401ee0
mov eax, dword [0x4a0568]
and eax, 0xfffffffd
mov dword [0x4a0568], eax
test byte [ecx + 8], 4
je 0x401ee0
or eax, 2
mov dword [0x4a0568], eax
cmp dword [ecx], 0x124
jb 0x401ef0
jne 0x401f01
cmp dword [ecx + 4], 0x1e
jae 0x401f01
mov edi, 0xc9
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], edi
push ecx
call fcn.004643fa
add esp, 4
jmp 0x4020af
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x3c0]
push 0
push 0
push 4
push eax
lea edx, [ebp - 0x168]
call fcn.0045be40
jmp 0x40209e
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x3e8]
push 0
push 0
push 4
push eax
lea edx, [ebp - 0x168]
call fcn.0045be40
mov edi, eax
add esp, 0x10
cmp byte [esi + 0x3ec], 0
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], edi
je 0x401f7f
push dword [esi + 0x3f0]
call fcn.00464a69
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 0x402046
push ecx
push ecx
movzx eax, ax
push 0x59
push eax
mov dword [ebp - 0x154], eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 0x63
jge 0x402046
push eax
lea eax, [ebp - 0x100]
push eax
push 0x59
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea edi, [ebp - 0x100]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x401fd2
mov eax, dword [0x48a160]
mov dword [edi], eax
lea edi, [ebp - 0x100]
lea ecx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401ff0
push 0
push 0
push 0x5a
push dword [ebp - 0x154]
sub edi, ecx
sar edi, 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, 0x63
sub ecx, edi
cmp eax, ecx
jge 0x402037
push eax
lea eax, [ebp - 0x100]
lea eax, [eax + edi*2]
push eax
push 0x5a
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x402040
xor eax, eax
mov word [ebp - 0x100], ax
mov edi, dword [ebp - 0x14c]
lea ecx, [ebp - 0x100]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402050
sub ecx, edx
sar ecx, 1
je 0x4020af
lea eax, [ebp - 0x100]
push eax
push 0
call fcn.00464b21
add esp, 8
mov dword [esi + 0x3f0], eax
mov byte [esi + 0x3ec], 1
jmp 0x4020af
lea eax, [esi + 0x438]
push 0
push ecx
push 0
push eax
mov ecx, dword [esi + 0x9c]
lea edx, [ebp - 0x168]
call fcn.0045bff0
add esp, 0x10
mov edi, eax
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], edi
test edi, edi
je case.0x401d92.8741
jmp 0x40390c
lea eax, [esi + 0x80]
jmp 0x402087
lea eax, [esi + 0x8c]
jmp 0x402087
push dword [esi + 0x26c]
lea eax, [esi + 0x90]
jmp 0x402089
push 0
push ecx
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x88]
push 0
push eax
lea edx, [ebp - 0x168]
mov byte [ebp - 0x179], 1
call fcn.0045bff0
mov edi, eax
add esp, 0x10
mov eax, dword [esi + 0x26c]
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x154], eax
test eax, eax
je 0x4020af
push dword [esi + 0x80]
mov edx, eax
mov byte [ebp - 0x16e], 0
mov byte [ebp - 0x16d], 0
call fcn.004018d0
mov edx, dword [ebp - 0x154]
add esp, 4
push dword [esi + 0x8c]
call fcn.004018d0
mov edx, dword [ebp - 0x154]
add esp, 4
push dword [esi + 0x88]
call fcn.004018d0
mov eax, dword [ebp - 0x154]
add esp, 4
sub eax, 0xffffff80
push 0x80
push 0
push eax
call fcn.00462280
mov ecx, dword [ebp - 0x154]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402187
sub ecx, edx
mov dh, 0x36
mov byte [ebp - 0x1bc], dh
lea eax, [ecx + 1]
xor ecx, ecx
mov dword [ebp - 0x174], eax
cmp eax, 2
jl 0x40222d
mov esi, dword [ebp - 0x154]
lea edi, [eax - 2]
shr edi, 1
inc edi
lea eax, [edi + edi]
mov dword [ebp - 0x158], 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 - 0x16e], 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 - 0x16d], cl
sub edi, 1
jne 0x4021c1
mov edi, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x174]
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x154], esi
mov esi, dword [ebp - 0x184]
cmp ecx, eax
jge 0x402268
mov cl, dh
shr dh, 1
shl cl, 7
add cl, dh
mov edx, dword [ebp - 0x154]
xor byte [edx], cl
and cl, 1
movzx eax, byte [edx]
add cl, 2
movzx ecx, cl
inc edx
imul ecx, eax
add cl, 0x36
add cl, byte [ebp - 0x16d]
add cl, byte [ebp - 0x16e]
mov byte [edx], cl
jmp 0x4020af
mov ecx, dword [ebp - 0x1bc]
mov edx, dword [ebp - 0x154]
add cl, byte [ebp - 0x16d]
add cl, byte [ebp - 0x16e]
mov byte [edx], cl
jmp 0x4020af
cmp byte [ebp - 0x179], 0
jne 0x4022ac
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_423]
sub eax, 8
mov byte [ebp - 0x15d], 1
mov dword [ebp - 0x1a4], eax
push 0
push ecx
lea edx, [esi + 0x94]
push 0
push edx
jmp 0x40208d
push dword [esi + 0x26c]
lea eax, [esi + 0xa4]
jmp 0x402089
cmp dword [ebp - 0x15c], 0
je case.0x401d92.8741
cmp dword [ebx + 0x10], 0
jge case.0x401d92.8741
push 0
push ecx
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0xa8]
push 0
push eax
lea edx, [ebp - 0x168]
call fcn.0045bff0
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], edi
test edi, edi
jne 0x40390c
mov ecx, dword [esi + 0xa8]
call fcn.00401800
mov dword [esi + 0xac], eax
jmp case.0x401d92.8741
push dword [esi + 0x26c]
lea eax, [esi + 0x260]
mov dword [eax], 0
jmp 0x4025fc
push dword [esi + 0x26c]
lea eax, [esi + 0x274]
mov dword [eax], 0
jmp 0x4025fc
cmp dword [ebp - 0x15c], 0
jne case.0x401d92.8741
lea eax, [esi + 0xc0]
jmp 0x402087
lea eax, [esi + 0xbc]
jmp 0x402087
lea eax, [esi + 0x3bc]
jmp 0x402087
cmp dword [ebp - 0x1a4], 0
mov byte [ebp - 0x15d], 0
je case.0x401d92.8741
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_423]
push dword [esi + 0x26c]
sub eax, dword [ebp - 0x1a4]
lea edx, [ebp - 0x168]
mov ecx, dword [esi + 0x9c]
sub eax, 8
push 0
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x1b4]
push 4
push eax
call fcn.0045be40
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], edi
test edi, edi
jne 0x40390c
push dword [ebp - 0x1a4]
xor byte [ebp - 0x1b4], 0xd
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov eax, dword [esi + 0x9c]
push 0x8000
mov dword [ebp - 0x174], eax
call fcn.00460b4b
mov ecx, dword [ebp - 0x158]
add esp, 4
mov edx, eax
mov dword [ebp - 0x154], edx
test ecx, ecx
je 0x4024e2
nop
mov eax, 0x8000
cmp ecx, eax
cmovb eax, ecx
push eax
push edx
push dword [ebp - 0x174]
mov dword [ebp - 0x16c], eax
call dword [sym.imp.MMFS2.dll_Ordinal_425]
test eax, eax
jne 0x4024d6
mov eax, dword [ebp - 0x16c]
mov edx, eax
mov esi, dword [ebp - 0x154]
shr edx, 2
test edx, edx
je 0x402491
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 0x402477
mov eax, dword [ebp - 0x16c]
and eax, 3
mov edx, 0
mov dword [ebp - 0x178], eax
jbe 0x4024b8
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 - 0x178]
jb 0x4024a1
mov ecx, dword [ebp - 0x158]
sub ecx, dword [ebp - 0x16c]
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x158], ecx
jne 0x402440
mov esi, dword [ebp - 0x184]
mov edx, dword [ebp - 0x154]
push 0x8000
push 0
push edx
call fcn.00462280
add esp, 0xc
push dword [ebp - 0x154]
call fcn.00460b54
add esp, 4
cmp edi, dword [ebp - 0x1b4]
mov edi, dword [ebp - 0x14c]
je case.0x401d92.8741
mov byte [ebp - 0x15d], 1
jmp case.0x401d92.8741
xor edx, edx
lea ecx, [ebp - 0x168]
call fcn.00449a40
jmp 0x4020a1
mov edx, 1
lea ecx, [ebp - 0x168]
call fcn.00449a40
jmp 0x4020a1
lea ecx, [ebp - 0x168]
call fcn.00449250
jmp 0x4020a1
push 0
push ecx
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x3c8]
push 0
push eax
lea edx, [ebp - 0x168]
mov dword [eax], 0
call fcn.0045bff0
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], edi
test edi, edi
jne 0x40390c
mov ecx, dword [esi + 0x3c8]
test ecx, ecx
je case.0x401d92.8741
mov eax, dword [ecx]
mov dword [ebp - 0x178], eax
test eax, eax
je case.0x401d92.8741
lea edx, [ecx + 4]
mov edi, eax
mov eax, dword [edx]
test eax, eax
je 0x4025e1
add ecx, eax
mov eax, dword [ecx + 0xc]
test al, 0xf
je 0x4025cd
mov byte [esi + 0x3d0], 1
mov eax, dword [ecx + 0xc]
mov ecx, dword [esi + 0x3c8]
test eax, 0x100
je 0x4025e1
mov byte [esi + 0x3f8], 1
add edx, 4
sub edi, 1
jne 0x4025b4
mov edi, dword [ebp - 0x14c]
jmp case.0x401d92.8741
push 0
lea eax, [ebp - 0x1a8]
push ecx
mov ecx, dword [esi + 0x9c]
lea edx, [ebp - 0x168]
push 0
push eax
call fcn.0045bff0
add esp, 0x10
jmp 0x402e06
cmp dword [ebp - 0x15c], 0
jne 0x402629
and dword [0x4a0568], 0xfffffffd
test byte [esi + 0x1a], 8
je 0x402663
test dword [esi + 0x1b0], 0x4000
jne 0x402663
mov dword [esi + 0x250], 0
mov dword [esi + 0x24c], 0
mov dword [esi + 0x248], 0
mov dword [esi + 0x244], 0
call fcn.0044b6b0
jmp 0x4020a1
cmp dword [ebp - 0x15c], 0
jne 0x40267d
or dword [0x4a0568], 2
test byte [esi + 0x1a], 8
je 0x4026b7
test dword [esi + 0x1b0], 0x4000
jne 0x4026b7
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 - 0x158]
push eax
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x16c], 0
push eax
lea edx, [ebp - 0x168]
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x150], 0
mov dword [esi + 0x3fc], 1
call fcn.0045bff0
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x14c], edi
test edi, edi
jne 0x402867
mov eax, dword [ebp - 0x158]
shr eax, 4
mov dword [esi + 0x190], eax
test eax, eax
jne 0x402735
or edi, 0xffffffff
mov dword [ebp - 0x14c], edi
jmp 0x402867
push 0x30
push eax
call fcn.004643e4
add esp, 8
mov dword [esi + 0x400], eax
test eax, eax
jne 0x40275a
mov edi, 0xc3
mov dword [ebp - 0x14c], edi
jmp 0x402867
mov eax, dword [esi + 0x190]
shl eax, 2
push 1
push eax
call fcn.004643e4
add esp, 8
mov dword [esi + 0x19c], eax
test eax, eax
jne 0x402788
mov edi, 0xc3
mov dword [ebp - 0x14c], edi
jmp 0x402867
cmp dword [esi + 0x190], 0
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x158], eax
jle 0x402801
xor eax, eax
mov dword [ebp - 0x154], 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 - 0x158]
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movzx eax, word [ecx]
cmp eax, edx
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x154]
cmovb ecx, edx
add dword [ebp - 0x158], 0x10
inc edi
add eax, 0x30
mov dword [ebp - 0x154], eax
cmp edi, dword [esi + 0x190]
jl 0x4027b0
mov edi, dword [ebp - 0x14c]
jmp 0x402807
mov ecx, dword [ebp - 0x150]
push 2
push ecx
mov dword [esi + 0x194], ecx
call fcn.004643e4
add esp, 8
mov dword [esi + 0x198], eax
test eax, eax
jne 0x40282f
mov edi, 0xc3
mov dword [ebp - 0x14c], edi
jmp 0x402867
xor edx, edx
cmp dword [esi + 0x190], edx
jle 0x402867
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 0x402840
mov edi, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x16c]
test eax, eax
je 0x40287a
push eax
call fcn.004643fa
add esp, 4
test edi, edi
je 0x4020a9
call fcn.0044b990
jmp 0x4020a9
cmp dword [ebp - 0x15c], 0
jne 0x40289c
or dword [0x4a0568], 2
push 0
push ecx
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x40c]
push 0
push eax
lea edx, [ebp - 0x168]
call fcn.0045bff0
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x14c], edi
test edi, edi
jne 0x402882
mov edx, dword [esi + 0x40c]
mov dword [ebp - 0x158], eax
cmp dword [esi + 0x190], eax
jle 0x4020a9
mov eax, dword [esi + 0x400]
mov ecx, edx
mov dword [eax + edi + 0x10], edx
lea eax, [ecx + 2]
mov dword [ebp - 0x178], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4028f5
sub ecx, dword [ebp - 0x178]
add edi, 0x30
mov eax, dword [ebp - 0x158]
sar ecx, 1
inc eax
mov dword [ebp - 0x158], eax
lea edx, [edx + ecx*2]
add edx, 2
cmp eax, dword [esi + 0x190]
jl 0x4028e0
mov edi, dword [ebp - 0x14c]
jmp 0x4020a9
cmp dword [ebp - 0x15c], 0
jne 0x402941
or dword [0x4a0568], 2
push 0
push ecx
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x410]
push 0
push eax
lea edx, [ebp - 0x168]
call fcn.0045bff0
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x14c], edi
test edi, edi
jne 0x402882
mov eax, dword [esi + 0x410]
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x174], edi
cmp dword [esi + 0x190], edi
jle 0x4020a9
xor ecx, ecx
mov edi, eax
mov dword [ebp - 0x150], ecx
nop dword [eax]
mov edx, dword [edi]
add edi, 4
mov eax, dword [esi + 0x400]
mov dword [ebp - 0x154], edx
test edx, edx
je 0x402a4d
mov dword [eax + ecx + 0x28], edi
test edi, edi
je 0x402a4b
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [ebp - 0x16c], eax
test eax, eax
je 0x402a45
cmp ecx, 0xffffffff
je 0x402a45
mov eax, dword [0x4a05c4]
mov eax, dword [eax + 0x3c8]
test eax, eax
je 0x402a45
cmp ecx, dword [eax]
jae 0x402a45
mov ecx, dword [eax + ecx*4 + 4]
test ecx, ecx
je 0x402a45
add eax, ecx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x402a45
add eax, ecx
lea edx, [edi + 8]
mov ecx, dword [eax + 4]
add ecx, eax
mov dword [ebp - 0x158], ecx
xor ecx, ecx
cmp dword [ebp - 0x16c], ecx
jbe 0x402a3f
mov eax, dword [ebp - 0x158]
nop dword [eax]
cmp byte [ecx + eax], 3
jne 0x402a33
mov ax, word [edx]
mov word [edx + 2], ax
mov eax, dword [ebp - 0x158]
inc ecx
add edx, 4
cmp ecx, dword [ebp - 0x16c]
jb 0x402a20
mov edx, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x150]
add edi, edx
mov eax, dword [ebp - 0x174]
add ecx, 0x30
inc eax
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x174], eax
cmp eax, dword [esi + 0x190]
jl 0x4029a0
mov edi, dword [ebp - 0x14c]
jmp 0x4020a9
cmp dword [ebp - 0x15c], 0
jne 0x402a8a
or dword [0x4a0568], 2
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_423]
mov dword [esi + 0x404], eax
jmp case.0x401d92.8741
cmp dword [ebp - 0x15c], 0
jne 0x402ab1
or dword [0x4a0568], 2
push 0
push ecx
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x408]
push 0
push eax
lea edx, [ebp - 0x168]
call fcn.0045bff0
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x14c], edi
test edi, edi
jne 0x4020a9
xor edx, edx
cmp dword [esi + 0x190], edx
jle 0x4020a9
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 0x402af0
mov edi, dword [ebp - 0x14c]
jmp 0x4020a9
cmp dword [esi + 0x1a8], 0
je 0x402b3a
test dword [esi + 0x1b0], 0x4000
je case.0x401d92.8741
push 0
lea eax, [esi + 0x414]
push ecx
push eax
lea eax, [esi + 0x41c]
jmp 0x40208c
cmp dword [esi + 0x1a8], 0
je 0x402b68
test dword [esi + 0x1b0], 0x4000
je case.0x401d92.8741
push 0
lea eax, [esi + 0x418]
push ecx
push eax
lea eax, [esi + 0x420]
jmp 0x40208c
push dword [esi + 0x26c]
lea edi, [esi + 0xcc]
push ecx
mov ecx, dword [esi + 0x9c]
lea edx, [ebp - 0x168]
push 0
push edi
call fcn.0045bff0
push dword [edi]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], eax
call fcn.004656ad
mov edi, dword [ebp - 0x14c]
add esp, 0x14
shr eax, 1
movzx eax, ax
mov dword [esi + 0xc8], eax
jmp 0x4020af
push 4
lea eax, [ebp - 0x194]
push eax
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov edi, eax
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], edi
test edi, edi
jne 0x40390c
mov ecx, dword [ebp - 0x194]
test ecx, ecx
je case.0x401d92.8741
movzx eax, word [esi + 0x1a]
mov edx, eax
mov dword [ebp - 0x174], edi
and eax, 0xffbf
mov dword [ebp - 0x178], edx
mov word [esi + 0x1a], ax
test ecx, ecx
jle 0x402da2
push 2
lea eax, [ebp - 0x190]
push eax
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov edi, eax
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], edi
test edi, edi
jne 0x402da2
push 0x220
call fcn.00460912
mov edi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x158], 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 - 0x190]
add eax, eax
push eax
push edi
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov dword [ebp - 0x14c], eax
xor ecx, ecx
mov dword [ebp - 0x150], eax
movzx eax, word [ebp - 0x190]
push edi
push ecx
mov word [edi + eax*2], cx
call fcn.0045c450
cmp dword [ebp - 0x14c], 0
jne 0x402d59
push 4
lea eax, [edi + 0x20c]
push eax
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], eax
test eax, eax
jne 0x402d59
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 - 0x174]
inc eax
mov dword [ebp - 0x174], eax
cmp eax, dword [ebp - 0x194]
jl 0x402c26
mov eax, dword [ebp - 0x178]
mov edi, dword [ebp - 0x14c]
mov word [esi + 0x1a], ax
jmp 0x4020af
mov eax, dword [edi + 0x208]
test eax, eax
je 0x402d8e
push eax
call fcn.004656e0
add esp, 4
push dword [edi + 0x208]
call fcn.004643fa
mov dword [edi + 0x218], 0
add esp, 4
mov dword [edi + 0x208], 0
push 0x220
push edi
call fcn.00460942
mov edi, dword [ebp - 0x14c]
add esp, 8
mov eax, dword [ebp - 0x178]
mov word [esi + 0x1a], ax
jmp 0x4020af
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_423]
mov dword [0x4a0398], eax
mov eax, dword [ebp - 0x164]
mov dword [0x4a0394], eax
jmp case.0x401d92.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 0x40390c
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 - 0x14c], edi
mov dword [ebp - 0x150], edi
test edi, edi
jne 0x40390c
jmp case.0x401d92.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 0x402e52
cmp byte [ebp - 0x15e], 0
jne 0x402f6b
xor eax, eax
mov word [ebp - 0x1a0], ax
mov dword [ebp - 0x158], eax
push 8
lea eax, [ebp - 0x1a0]
push eax
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_425]
mov edi, eax
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], edi
test edi, edi
jne 0x402f6b
cmp dword [ebp - 0x19c], eax
je 0x402f59
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_1144]
add eax, dword [ebp - 0x19c]
mov ecx, edx
mov dword [ebp - 0x174], eax
adc ecx, edi
mov dword [ebp - 0x178], ecx
movzx ecx, word [ebp - 0x1a0]
sub ecx, 0x3334
je 0x402fe3
sub ecx, 2
je 0x402f76
sub ecx, 1
jne 0x402f2f
cmp byte [ebp - 0x15e], cl
jne 0x402f2f
push dword [esi + 0x26c]
lea eax, [ebp - 0x1b0]
push ecx
push ecx
mov ecx, dword [esi + 0x9c]
lea edx, [ebp - 0x1a0]
push eax
call fcn.0045bff0
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], edi
test edi, edi
jne 0x402f6b
mov ecx, dword [ebp - 0x1b0]
add ecx, 4
mov edx, ecx
call fcn.00404f20
mov byte [ebp - 0x15e], 1
cmp dword [ebp - 0x158], 0
je 0x402f41
cmp byte [ebp - 0x15e], 0
jne 0x402f6b
push dword [ebp - 0x178]
push dword [ebp - 0x174]
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_1145]
mov eax, 0x7f7f
cmp word [ebp - 0x1a0], ax
jne 0x402e61
inc dword [esi + 0xc4]
jmp 0x4020af
cmp dword [esi + 0xd4], 0
je 0x402fd4
push dword [esi + 0x26c]
lea eax, [ebp - 0x1c0]
push ecx
mov ecx, dword [esi + 0x9c]
lea edx, [ebp - 0x1a0]
push 0
push eax
call fcn.0045bff0
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], edi
test edi, edi
jne 0x402f6b
mov edx, dword [ebp - 0x1c0]
test edx, edx
je 0x402fd4
mov ecx, dword [esi + 0xc4]
mov eax, dword [esi + 0xd4]
inc dword [ebp - 0x1ac]
mov dword [eax + ecx*4], edx
mov dword [ebp - 0x158], 1
jmp 0x402f38
push dword [esi + 0x26c]
mov ecx, dword [esi + 0x9c]
lea eax, [ebp - 0x2c]
push 0
push 0x10
push eax
lea edx, [ebp - 0x1a0]
call fcn.0045be40
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], edi
test edi, edi
jne 0x402f6b
test byte [ebp - 0x20], 0x40
jne 0x402f2f
mov dword [ebp - 0x158], 1
jmp 0x402f38
cmp ecx, 0x6669
ja case.0x401d92.8741
cmp ecx, 0x6666
jae 0x403252
lea eax, [ecx - 0x5555]
cmp eax, 3
ja case.0x401d92.8741
mov eax, dword [0x4a05c4]
lea edx, [ebp - 0x168]
push 0
push ecx
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x174], eax
push 0
push ecx
mov ecx, dword [eax + 0x9c]
mov dword [ebp - 0x154], 0
call fcn.0045bff0
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x14c], edi
test edi, edi
jne 0x4020a9
mov edi, dword [ebp - 0x154]
push edi
call fcn.004656ad
and eax, 0xfffffffc
add esp, 4
cmp eax, 0x3fffc
jbe 0x4030c0
mov eax, 0xffff
jmp 0x4030cc
push edi
call fcn.004656ad
add esp, 4
shr eax, 2
mov ecx, dword [ebp - 0x158]
mov edi, dword [ebp - 0x174]
lea ecx, [ecx*2 - 0xa99a]
movzx eax, ax
push 8
push eax
mov dword [ebp - 0x150], ecx
mov word [edi + ecx], ax
call fcn.004643e4
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x158]
mov dword [edi + eax*4 - 0x1543c], ecx
test ecx, ecx
je 0x40323d
mov eax, dword [ebp - 0x150]
xor esi, esi
xor edx, edx
mov dword [ebp - 0x16c], edx
cmp si, word [edi + eax]
mov esi, dword [ebp - 0x184]
jae 0x403198
mov esi, edi
nop dword [eax]
mov eax, dword [ebp - 0x154]
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 0x403174
cmp dword [esi + 0xc], 0x11b
jbe 0x403163
cmp word [esi + 0x14], di
jge 0x403163
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 - 0x150]
add ecx, 8
mov edx, dword [ebp - 0x16c]
inc edx
mov dword [ebp - 0x16c], edx
movzx eax, word [esi + eax]
cmp edx, eax
jb 0x403130
mov esi, dword [ebp - 0x184]
push dword [ebp - 0x154]
call fcn.004643fa
mov eax, dword [0x4a05c4]
add esp, 4
mov edi, dword [ebp - 0x158]
mov ecx, pe_nt_image_headers32
mov dword [ebp - 0x16c], eax
push 0x200
mov word [eax + edi*2 - 0xa982], cx
call fcn.00465708
mov ecx, dword [ebp - 0x16c]
add esp, 4
mov dword [ecx + edi*4 - 0x15424], eax
test eax, eax
jne 0x4031ec
mov edi, 0xc3
jmp 0x4020a3
push 0x200
push 0xff
push eax
call fcn.00462280
mov eax, dword [ebp - 0x16c]
add esp, 0xc
movzx eax, word [eax + edi*2 - 0xa99a]
push 1
lea eax, [eax*2 + 2]
push eax
call fcn.004643e4
mov ecx, dword [ebp - 0x16c]
add esp, 8
mov dword [ecx + edi*4 - 0x15414], eax
xor edi, edi
test eax, eax
mov eax, 0xc3
cmove edi, eax
jmp 0x4020a3
push dword [ebp - 0x154]
call fcn.004643fa
mov edi, 0xc3
jmp 0x403909
mov edi, dword [0x4a05c4]
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 - 0x14c], edi
mov dword [ebp - 0x150], edi
mov edx, dword [ebp - 0x188]
push edx
push dword [ebp - 0x18c]
push dword [esi + 0x9c]
call dword [sym.imp.MMFS2.dll_Ordinal_1145]
mov eax, 0x7f7f
cmp word [ebp - 0x168], ax
jne 0x401d00
test edi, edi
jne 0x40390c
cmp byte [ebp - 0x17a], 0
jne 0x4032d1
mov edi, 0xc8
jmp 0x40390c
cmp dword [ebp - 0x1ac], 0
jne 0x4032f7
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x4032f7
push eax
call fcn.004643fa
add esp, 4
mov dword [esi + 0xd4], 0
mov eax, dword [ebp - 0x180]
mov ecx, dword [esi + 0xc0]
mov dword [esi + 0x1e8], eax
call fcn.004573b0
mov eax, dword [esi + 0x3bc]
test dword [eax], 0x8000000
je 0x403394
lea eax, [ebp - 0x148]
mov dword [ebp - 0x148], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403394
cmp dword [ebp - 0x138], 2
jne 0x403394
cmp dword [ebp - 0x144], 5
jb 0x403394
push 0
push 0
push 0x48a164
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x180], eax
test eax, eax
je 0x40338d
push str.ImmDisableIME
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403381
push 0
call eax
push dword [ebp - 0x180]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x15c]
test eax, eax
jne 0x403600
cmp byte [ebp - 0x15d], al
jne 0x403600
mov eax, dword [ebp - 0x1b0]
test eax, eax
je 0x4033e2
mov edi, dword [0x4a05a8]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
push dword [0x4a0550]
mov dword [0x4a05a8], eax
call dword [sym.imp.MMFS2.dll_Ordinal_121]
test edi, edi
je 0x4033e2
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x4a0590]
mov edx, dword [0x4a05c4]
mov edi, dword [0x4a0728]
mov dword [ebp - 0x218], eax
mov eax, dword [0x4a057c]
mov dword [ebp - 0x194], edx
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 0x4c
mov dword [ebp - 0x1e4], 1
mov dword [ebp - 0x1f4], str.Mf2MainClassTh
test eax, eax
je 0x403487
mov dword [ebp - 0x210], eax
mov eax, dword [0x4a058c]
mov dword [ebp - 0x200], 0
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x1fc], 0x42000000
jmp 0x4034dd
mov eax, edi
mov dword [ebp - 0x210], 0
cdq
and edx, 3
mov dword [ebp - 0x1fc], 0x2cf0000
add eax, edx
sar eax, 2
mov dword [ebp - 0x200], eax
mov eax, dword [0x4a058c]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x204], eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x208], eax
mov eax, dword [0x4a058c]
cdq
sub eax, edx
mov edx, dword [ebp - 0x194]
sar eax, 1
xor ecx, ecx
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x1f8], 0x48f5e4
mov dword [ebp - 0x1f0], ecx
mov eax, dword [edx + 0x3bc]
test eax, eax
je 0x403527
test byte [eax], 0x20
mov eax, 0x2000
cmovne ecx, eax
mov dword [ebp - 0x1f0], ecx
mov eax, dword [edx + 0x3bc]
test byte [eax], 0x80
je 0x403527
or ecx, 0x500000
mov dword [ebp - 0x1f0], ecx
lea eax, [edi + 0x10]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x21
mov dword [ebp - 0x1ec], eax
call edi
push 4
lea eax, [eax*2 + 0x10]
mov dword [ebp - 0x180], eax
call edi
add eax, dword [0x4a058c]
add eax, dword [ebp - 0x180]
push 4
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1dc], 2
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, dword [ebp - 0x194]
mov edx, 0x4000
mov dword [ebp - 0x1e0], eax
xor eax, eax
mov dword [ebp - 0x1d8], eax
test word [ecx + 0x16], dx
mov ecx, 0x200
cmovne eax, ecx
mov dword [ebp - 0x1d8], eax
lea eax, [ebp - 0x220]
push eax
push dword [0x4a0550]
call dword [sym.imp.MMFS2.dll_Ordinal_1080]
mov dword [0x4a0598], eax
cmp eax, 0x20
ja 0x4035cb
mov dword [0x4a0598], 0
mov edi, 0xc1
jmp 0x40390c
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_18]
push 0x7f00
push 0
mov dword [0x4a05a0], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.00401070
mov edi, eax
mov dword [ebp - 0x14c], edi
test edi, edi
jne 0x40390c
mov eax, 0xc000
test word [esi + 0x1a], ax
je 0x40363e
test byte [0x4a05ac], 0x40
jne 0x40363e
cmp dword [ebp - 0x1a8], 0
je 0x40364c
mov eax, dword [esi + 0x3c8]
test eax, eax
je 0x403630
push eax
call fcn.004643fa
add esp, 4
mov eax, dword [ebp - 0x1a8]
mov dword [esi + 0x3c8], eax
jmp 0x40364c
push dword [ebp - 0x1a8]
call fcn.004643fa
add esp, 4
mov eax, dword [0x4a0594]
mov dword [esi + 0x1c4], eax
call fcn.004012a0
test eax, eax
jne 0x403668
or edi, 0xffffffff
jmp 0x40390c
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x4036a1
cmp dword [ebp - 0x1ac], 0
jne 0x4036a1
push 0
push 0x3f3
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x4036a1
push 0
push 0x3f3
push dword [esi + 0xb0]
call dword [sym.imp.USER32.dll_DeleteMenu]
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x403755
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x403755
mov eax, 0x1000
test word [esi + 0x14], ax
jne 0x403755
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 - 0x18c], eax
test eax, eax
je 0x403755
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov dword [ebp - 0x180], eax
test eax, eax
jle 0x403755
mov edi, dword [ebp - 0x18c]
mov esi, eax
nop dword [eax]
push 0x400
lea ecx, [esi - 1]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetMenuState]
test eax, 0x800
je 0x403749
push 0x400
dec esi
push esi
push edi
call dword [sym.imp.USER32.dll_DeleteMenu]
test esi, esi
jg 0x403720
mov esi, dword [ebp - 0x184]
mov edi, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x15c]
test eax, eax
jne 0x403793
test byte [esi + 0x16], 8
je 0x403793
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_31]
push eax
push eax
push 4
push dword [0x4a0598]
call edi
push 0
or eax, 4
push eax
push 2
push dword [0x4a0598]
call edi
mov edi, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x15c]
mov ecx, dword [0x4a05a0]
test eax, eax
je 0x4037a3
mov ecx, dword [eax + 0x1d0]
cmp byte [ebp - 0x15d], 0
jne 0x4037ca
push dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
call fcn.00455bc0
mov edi, eax
add esp, 4
test edi, edi
jne 0x40390c
mov eax, dword [ebp - 0x15c]
test eax, eax
jne 0x4037e8
mov eax, 0x800
test word [esi + 0x14], ax
je 0x4037e8
mov ecx, 1
call fcn.00456930
call fcn.004012a0
test byte [0x4a05ac], 0x40
je 0x40390c
cmp dword [esi + 0x41c], 0
je 0x40390c
mov ecx, dword [esi + 0x420]
test ecx, ecx
je 0x40390c
mov eax, dword [esi + 0x418]
add eax, dword [esi + 0x414]
push eax
push ecx
call fcn.004643ef
add esp, 8
mov dword [ebp - 0x180], eax
test eax, eax
je 0x4038dc
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.00463e70
mov ecx, dword [esi + 0x418]
mov eax, 0xaaaaaaab
mul ecx
add esp, 0xc
shr edx, 6
mov dword [ebp - 0x18c], edx
test edx, edx
jle 0x40389d
mov ecx, dword [ebp - 0x180]
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 0x403880
mov ecx, dword [esi + 0x418]
mov edx, dword [ebp - 0x18c]
cmp dword [esi + 0x1a8], 0
mov eax, ecx
je 0x4038b8
test dword [esi + 0x1b0], 0x4000
jne 0x4038b8
xor eax, eax
jmp 0x4038bf
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 [0x4a0594]
call dword [sym.imp.MMFS2.dll_Ordinal_1105]
push dword [esi + 0x41c]
call fcn.004643fa
add esp, 4
mov dword [esi + 0x41c], 0
push dword [esi + 0x420]
call fcn.004643fa
mov dword [esi + 0x420], 0
add esp, 4
mov eax, dword [ebp - 0x1b0]
test eax, eax
je 0x40391f
push eax
call fcn.004643fa
add esp, 4
test edi, edi
jne 0x40395b
mov ecx, dword [0x4a05c4]
test ecx, ecx
je 0x403945
mov eax, dword [ecx + 0x1d0]
mov dword [0x4a05a4], eax
mov eax, dword [ecx + 0x1d4]
mov dword [0x4a059c], eax
jmp 0x40398b
mov dword [0x4a05a4], 0
mov dword [0x4a059c], 0
jmp 0x40398b
jle 0x403977
test byte [0x4a0580], 1
je 0x403977
push ecx
mov ecx, dword [0x4a05a0]
mov edx, edi
call fcn.004551f0
add esp, 4
mov ecx, esi
call fcn.00403a80
mov ecx, dword [ebp - 0x1c4]
call fcn.004013e0
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.00460901
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret